Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flexible-backend] handle object already exists error #5225

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Apr 30, 2024

Context

Currently we have an unicity constraint in the DB but we don't return a clear error to the frontend before reaching the DB (which then throws a 500). This PR adds a validation check similar to what we have with field creation

@Weiko Weiko merged commit bc0d30f into main Apr 30, 2024
5 checks passed
@Weiko Weiko deleted the c--fix-object-already-exists-during-creation branch April 30, 2024 14:36
arnavsaxena17 pushed a commit to arnavsaxena17/twenty that referenced this pull request Oct 6, 2024
## Context
Currently we have an unicity constraint in the DB but we don't return a
clear error to the frontend before reaching the DB (which then throws a
500). This PR adds a validation check similar to what we have with field
creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants