You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently any integrity error that occurs when trying to save a model to the database is reported as a unique constraint violation, when it could be for other reasons (one I have encountered is supplying NULL to a non-nullable field). Relevant code here:
Description
Currently any integrity error that occurs when trying to save a model to the database is reported as a unique constraint violation, when it could be for other reasons (one I have encountered is supplying NULL to a non-nullable field). Relevant code here:
terraso-backend/terraso_backend/apps/graphql/schema/commons.py
Lines 211 to 231 in f16af3e
Expected behavior
Integrity errors report the actual error which occurred.
Actual behavior
We always report a unique constraint violation.
The text was updated successfully, but these errors were encountered: