-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
New item with manually entered string primary key does not show "Field has to be unique" error message #15033
Comments
This issue applies when a conflicting manual primary key is sent. The However when it's for the primary key, the field is directus/api/src/exceptions/database/record-not-unique.ts Lines 11 to 15 in 55ec5f8
|
Some database errors don't always return the field that was the one conflicting (very annoying). The app should show some sort of fallback warning for those (even though it's not as helpful). |
Ref #15063 (comment) for additional context on a similar situation but with composite unique constraint. |
Linear: ENG-211 |
Describe the Bug
When I create a new collection with the primary key field and select "manually entered string", it does not show a duplication message when I enter the same number - it does not allow only to save. I can not select the uniqueness field because a database error pops up.
To Reproduce
Data-Model.mp4
Errors Shown
No response
What version of Directus are you using?
9.15.1
What version of Node.js are you using?
16.14.1
What database are you using?
MySQL
What browser are you using?
Edge
How are you deploying Directus?
locally
The text was updated successfully, but these errors were encountered: