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: cascade delete versions when corresponding change request is deleted #4152

Merged
merged 1 commit into from
Jun 12, 2024

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

This PR ensures that versions associated with a change request are deleted when a change request is deleted. Although there is technically no harm in not deleting these versions since they won't have been published, it is still data that should realistically be cleaned up.

Note that there are 2 somewhat related PRs to this as well:

  1. Prevent invalid deletion of change requests and cascade delete feature states #1999
  2. fix: prevent cascade deletes from users deleting change requests #3580

How did you test this code?

N/a - django built in functionality

Copy link

vercel bot commented Jun 12, 2024

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

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Jun 12, 2024 2:46pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Jun 12, 2024 2:46pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Jun 12, 2024 2:46pm

@matthewelwell matthewelwell requested review from a team and khvn26 and removed request for a team June 12, 2024 14:47
@github-actions github-actions bot added api Issue related to the REST API fix labels Jun 12, 2024
Copy link
Contributor

github-actions bot commented Jun 12, 2024

Uffizzi Preview deployment-52960 was deleted.

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (c0f373a) to head (01f3674).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4152   +/-   ##
=======================================
  Coverage   96.49%   96.49%           
=======================================
  Files        1174     1175    +1     
  Lines       38119    38124    +5     
=======================================
+ Hits        36784    36789    +5     
  Misses       1335     1335           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matthewelwell matthewelwell added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit baf8ddb Jun 12, 2024
21 checks passed
@matthewelwell matthewelwell deleted the fix/cascade-delete-versions-from-crs branch June 12, 2024 15:07
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 fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants