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: delete identity overrides from environments_v2 table on feature delete #5080

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

matthewelwell
Copy link
Contributor

Changes

Adds logic to delete identity override documents from flagsmith_environments_v2 table when a feature is deleted.

How did you test this code?

Added an end-to-end style test to delete a feature from the view.

Note: the test isn't passing and I can't understand why - I can see that the code is being hit in the task, but the item is still in the table when we query it in the test code

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

vercel bot commented Feb 6, 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) Visit Preview Feb 6, 2025 2:48pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 2:48pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 2:48pm

@matthewelwell matthewelwell marked this pull request as draft February 6, 2025 14:23
@matthewelwell matthewelwell removed the request for review from khvn26 February 6, 2025 14:23
@github-actions github-actions bot added the api Issue related to the REST API label Feb 6, 2025
Copy link
Contributor

github-actions bot commented Feb 6, 2025

Docker builds report

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

Copy link
Contributor

github-actions bot commented Feb 6, 2025

Uffizzi Preview deployment-60690 was deleted.

@matthewelwell matthewelwell changed the title Delete identity overrides from environments_v2 table on feature delete fix: delete identity overrides from environments_v2 table on feature delete Feb 6, 2025
@github-actions github-actions bot added the fix label Feb 6, 2025
@matthewelwell matthewelwell marked this pull request as ready for review February 6, 2025 14:44
@matthewelwell matthewelwell requested a review from khvn26 February 6, 2025 14:44
@github-actions github-actions bot added fix and removed fix labels Feb 6, 2025
api/edge_api/identities/tasks.py Outdated Show resolved Hide resolved
Co-authored-by: Kim Gustyr <[email protected]>
@github-actions github-actions bot added fix and removed fix labels Feb 6, 2025
@github-actions github-actions bot added fix and removed fix labels Feb 6, 2025
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.43%. Comparing base (895e5b8) to head (cee838f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5080   +/-   ##
=======================================
  Coverage   97.43%   97.43%           
=======================================
  Files        1214     1214           
  Lines       42277    42308   +31     
=======================================
+ Hits        41193    41224   +31     
  Misses       1084     1084           

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

@matthewelwell matthewelwell merged commit 3f7c9da into main Feb 7, 2025
37 checks passed
@matthewelwell matthewelwell deleted the fix/delete-identity-overrides-on-feature-delete branch February 7, 2025 11:51
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