bug: harddelete
command can fail to remove users due to foreign key on story map model
#1541
Labels
harddelete
command can fail to remove users due to foreign key on story map model
#1541
Description
See title.
Steps To Reproduce
See failing job: https://dashboard.render.com/web/srv-cclqgbirrk007qgqoml0
Additional context
StoryMap
'screated_by
field is a non-nullable foreign key to the user's table with anon_delete
policy ofDO_NOTHING
, which causes the underlying DB constraint to fail. We need to consult with product about how to handle this:DO_NOTHING
toSET_NULL
and ensure that the rest of the system is equipped to handle this case (it probably isn't)Size will depend on which of these two options we go with, first is very easy, second is probably easy-medium but hard to say without having touched the story maps code.
We can do a temporary fix without consulting product by just not hard deleting users for now.
The text was updated successfully, but these errors were encountered: