BI-2283 - Modify the experiment_program_user_role.program_user_role_id FK to use ON DELETE CASCADE#393
Merged
BI-2283 - Modify the experiment_program_user_role.program_user_role_id FK to use ON DELETE CASCADE#393
Conversation
make foreign key constraint cascade on delete
7 tasks
HMS17
approved these changes
Aug 24, 2024
Contributor
HMS17
left a comment
There was a problem hiding this comment.
Passed, experiments table is filtered only to the experiment the user was assigned as a collaborator to, and the row the sql script inserted into experiment_program_user_role was deleted when the program role of the user was changed from Experimental Collaborator to another role
dmeidlin
approved these changes
Aug 26, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Story: BI-2283
This migration gives the
experiment_program_user_role.program_user_role_idforeign key constraint theON DELETE CASCADEbehavior. From the end user perspective, when a program user in the "Experimental Collaborator" role is assigned to a different role, this operation will not result in an error, and any record of the experiments they were given access to as an "Experimental Collaborator" will be lost.Testing
experiment_program_user_rolehas been deleted.Checklist: