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: add migration to clean up corrupt data caused by feature versioning #4873

Merged

Conversation

matthewelwell
Copy link
Contributor

Changes

Related to #4872. This PR adds the migration which retrospectively cleans the data up.

How did you test this code?

We have tested these steps by manually implementing them on current data which was corrupted. I have also written a long and comprehensive migration test to try and (a) illustrate what we're trying to fix, and (b) test that the fix is correct.

@matthewelwell matthewelwell requested a review from a team as a code owner November 28, 2024 16:00
@matthewelwell matthewelwell requested review from zachaysan and removed request for a team November 28, 2024 16:00
Copy link

vercel bot commented Nov 28, 2024

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Nov 28, 2024 4:00pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Nov 28, 2024 4:00pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Nov 28, 2024 4:00pm

@github-actions github-actions bot added api Issue related to the REST API fix labels Nov 28, 2024
Copy link
Contributor

github-actions bot commented Nov 28, 2024

Docker builds report

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

Copy link
Contributor

github-actions bot commented Nov 28, 2024

Uffizzi Preview deployment-58663 was deleted.

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.38%. Comparing base (15cf98f) to head (79e8454).
Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4873   +/-   ##
=======================================
  Coverage   97.37%   97.38%           
=======================================
  Files        1186     1188    +2     
  Lines       41261    41340   +79     
=======================================
+ Hits        40179    40258   +79     
  Misses       1082     1082           

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

@matthewelwell matthewelwell merged commit e17f92d into main Dec 3, 2024
34 checks passed
@matthewelwell matthewelwell deleted the fix/add-migration-to-fix-existing-versioning-data-issues branch December 3, 2024 10:53
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