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
In model_save.py the various _dict_save functions check for the existence of a row with the same id before deciding whether to create or update the row. This is something we should already know at the action level, not need to detect in model_save.py, and detecting this way means postgres can't help us prevent mistakes.
Steps to reproduce
Expected behavior
Create actions should only ever create not update existing rows. Update actions should only update not create rows.
CKAN version
all
Describe the bug
In
model_save.py
the various_dict_save
functions check for the existence of a row with the same id before deciding whether to create or update the row. This is something we should already know at the action level, not need to detect inmodel_save.py
, and detecting this way means postgres can't help us prevent mistakes.Steps to reproduce
Expected behavior
Create actions should only ever create not update existing rows. Update actions should only update not create rows.
Additional details
#8069 (comment)
The text was updated successfully, but these errors were encountered: