-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cascade delete interaction step #10
Cascade delete interaction step #10
Conversation
@@ -635,14 +638,13 @@ describe("CampaignInteractionStepsForm", () => { | |||
beforeEach(async () => { | |||
await setupTest(); | |||
|
|||
const startedCampaign = await createStartedCampaign(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interaction steps of campaigns that have already started are unable to be deleted, so I changed the test to use a campaign that hasn't started yet.
This branch was previously approved and merged into the now inactive community-branches-qa branch, and has been successfully running on MoveOn's prod website for months. |
|
Fixes StateVoicesNational#1673
Description
Currently, we are unable to delete interaction steps with children. The solution is to change the foreign key constraint of
parent_interaction_id
in theinteraction_step
table to cascade delete.Checklist: