Skip to content

Delete dependent questions & clearances before removing a project#416

Open
hychoe0 wants to merge 5 commits into
involveMINT:developfrom
hychoe0:develop
Open

Delete dependent questions & clearances before removing a project#416
hychoe0 wants to merge 5 commits into
involveMINT:developfrom
hychoe0:develop

Conversation

@hychoe0
Copy link
Copy Markdown
Collaborator

@hychoe0 hychoe0 commented Apr 25, 2025

When we tried to delete a project that still had child records in questions or clearances, the database would reject the delete with a foreign‐key violation. This change updates our server-side delete() so that we:
Remove all enrollments for that project
Remove all questions for that project
Remove all clearances for that project
Finally delete the project itself

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.

1 participant