Skip to content
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

fs-4642 adding cascade deletes #47

Merged
merged 2 commits into from
Sep 18, 2024
Merged

fs-4642 adding cascade deletes #47

merged 2 commits into from
Sep 18, 2024

Conversation

srh-sloan
Copy link
Contributor

Change description

When editing an application round, the following now happens:

  • If you delete a form from a section, the DB rows for that form, it's pages and components are also deleted

  • If you delete a section from the application, then the forms within that section, and all their children are also deleted

  • Unit tests and other appropriate tests added or updated

  • README and other documentation has been updated / added (if needed)

  • Commit messages are meaningful and follow good commit message guidelines (e.g. "FS-XXXX: Add margin to nav items preventing overlapping of logo")

How to test

Create a round with multiple sections and forms within those sections
Delete a form and check it and its pages are deleted from the db
Delete a section and check it and it's forms are removed from the db

Screenshots of UI changes (if applicable)

No UI changes as the behaviour was already present in the frontend but it was doing a soft delete so this change is backend only

NarenderRajuB
NarenderRajuB previously approved these changes Sep 18, 2024
Copy link
Contributor

@NarenderRajuB NarenderRajuB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@NarenderRajuB NarenderRajuB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@srh-sloan srh-sloan merged commit 0e7f934 into main Sep 18, 2024
13 checks passed
@srh-sloan srh-sloan deleted the fs-4642-deletes branch September 18, 2024 15:02
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.

2 participants