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

fix: prevent cascade deletes from users deleting change requests #3580

Conversation

matthewelwell
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Prevent cascade deletes on both feature states (from change requests) and change requests (from users). This prevents issues where users are deleted causing (potentially live) feature states from being deleted.

How did you test this code?

Ran the API locally with the workflows module integrated and manually generated a change request which had no user and verified that the FE handles the scenario well.

@matthewelwell matthewelwell requested review from a team and novakzaballa and removed request for a team March 7, 2024 18:26
Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 10:35am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 10:35am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 10:35am

@matthewelwell matthewelwell removed the request for review from novakzaballa March 7, 2024 18:26
@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard api Issue related to the REST API labels Mar 7, 2024
@matthewelwell matthewelwell changed the title Prevent cascade delete on FeatureState when change request is deleted fix: prevent cascade delete on FeatureState when change request is deleted Mar 7, 2024
Copy link
Contributor

github-actions bot commented Mar 7, 2024

Uffizzi Preview deployment-48047 was deleted.

@matthewelwell matthewelwell changed the title fix: prevent cascade delete on FeatureState when change request is deleted fix: prevent cascade deletes from users deleting change requests Mar 7, 2024
@matthewelwell matthewelwell added this pull request to the merge queue Mar 8, 2024
Merged via the queue into main with commit b961790 Mar 8, 2024
23 checks passed
@matthewelwell matthewelwell deleted the fix(change-request)/prevent-fs-cascade-delete-for-change-request branch March 8, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants