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: replace alter field with adding a new field #4817

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Nov 6, 2024

Changes

Alternate implementation of #4816

How did you test this code?

To test the updates to migration 0039, I ran the migration locally. Verified that python manage.py makemigrations users doesn't think there are any new migrations to make.

To test the new migration 0040, I ran it in an environment which had run both implementations of 0039 and observed that the behaviour was correct.

In both cases, I ran the API locally post migration and verified that the application runs as expected.

Note that I was able to also add a migration test for 0039 but this would be quite challenging to achieve for 0040.

Copy link

vercel bot commented Nov 6, 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) Visit Preview Nov 12, 2024 6:57pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Nov 12, 2024 6:57pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Nov 12, 2024 6:57pm

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

github-actions bot commented Nov 6, 2024

Uffizzi Preview deployment-58040 was deleted.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.33%. Comparing base (e6f1bac) to head (57118b5).
Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4817   +/-   ##
=======================================
  Coverage   97.33%   97.33%           
=======================================
  Files        1180     1182    +2     
  Lines       41223    41267   +44     
=======================================
+ Hits        40123    40167   +44     
  Misses       1100     1100           

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

@github-actions github-actions bot added fix and removed fix labels Nov 12, 2024
@matthewelwell matthewelwell marked this pull request as ready for review November 12, 2024 17:55
@matthewelwell matthewelwell requested a review from a team as a code owner November 12, 2024 17:55
@matthewelwell matthewelwell requested review from zachaysan and removed request for a team November 12, 2024 17:55
Copy link
Contributor

github-actions bot commented Nov 12, 2024

Docker builds report

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

@github-actions github-actions bot added fix and removed fix labels Nov 12, 2024
@github-actions github-actions bot added fix and removed fix labels Nov 12, 2024
@github-actions github-actions bot added fix and removed fix labels Nov 12, 2024
@matthewelwell matthewelwell requested a review from khvn26 November 12, 2024 18:59
@matthewelwell matthewelwell merged commit 0d1c64a into main Nov 13, 2024
34 checks passed
@matthewelwell matthewelwell deleted the fix/long-running-migration branch November 13, 2024 08:33
gagantrivedi added a commit that referenced this pull request Nov 20, 2024
gagantrivedi added a commit that referenced this pull request Nov 20, 2024
gagantrivedi added a commit that referenced this pull request Nov 20, 2024
gagantrivedi added a commit that referenced this pull request Nov 21, 2024
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