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(organisation): allow Organisation delete when committed change request present #5101

Merged

Conversation

matthewelwell
Copy link
Contributor

Changes

Fixes an issue deleting an organisation when a committed change request exists in any project / environment in that organisation.

This was previously not an issue because of the line which checked if the environment was deleted but, now that we've linked the project, the cascade delete is triggered from the project, before it deletes the environment, and hence the check failed and the exception was raised.

How did you test this code?

Added unit test.

@matthewelwell matthewelwell requested a review from a team as a code owner February 13, 2025 13:00
@matthewelwell matthewelwell requested review from khvn26 and removed request for a team February 13, 2025 13:00
Copy link

vercel bot commented Feb 13, 2025

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Feb 13, 2025 1:00pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Feb 13, 2025 1:00pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Feb 13, 2025 1:00pm

@github-actions github-actions bot added api Issue related to the REST API fix labels Feb 13, 2025
Copy link
Contributor

github-actions bot commented Feb 13, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-5101 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-5101 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-5101 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-5101 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-5101 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5101 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Feb 13, 2025

Uffizzi Preview deployment-60890 was deleted.

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.43%. Comparing base (03261dd) to head (df3eb02).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5101   +/-   ##
=======================================
  Coverage   97.43%   97.43%           
=======================================
  Files        1214     1214           
  Lines       42312    42327   +15     
=======================================
+ Hits        41228    41243   +15     
  Misses       1084     1084           

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

@matthewelwell matthewelwell merged commit 2a13d81 into main Feb 13, 2025
37 checks passed
@matthewelwell matthewelwell deleted the fix/allow-change-request-delete-for-deleted-project branch February 13, 2025 13:36
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