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(versioning): fix issue creating duplicate priority segment overrides #4603

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Sep 9, 2024

Changes

This tightens up the API to avoid situations where existing segment overrides are sent as updates even though nothing actually changes. Previously this caused an issue where 2 segments would end up with the same priority.

Related issue #4604

How did you test this code?

Added a specific test for the issue found by a customer, ensured that the test failed as seen in the behaviour reported by the customer, and subsequently fixed the test.

@matthewelwell matthewelwell requested a review from a team as a code owner September 9, 2024 14:15
@matthewelwell matthewelwell requested review from gagantrivedi and removed request for a team September 9, 2024 14:15
Copy link

vercel bot commented Sep 9, 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) Sep 9, 2024 2:15pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Sep 9, 2024 2:15pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Sep 9, 2024 2:15pm

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

github-actions bot commented Sep 9, 2024

Docker builds report

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

Copy link
Contributor

github-actions bot commented Sep 9, 2024

Uffizzi Preview deployment-56033 was deleted.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.16%. Comparing base (6714384) to head (b43dacd).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4603   +/-   ##
=======================================
  Coverage   97.16%   97.16%           
=======================================
  Files        1160     1160           
  Lines       40107    40126   +19     
=======================================
+ Hits        38970    38989   +19     
  Misses       1137     1137           

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

@matthewelwell
Copy link
Contributor Author

API component of #4604

@matthewelwell matthewelwell added this pull request to the merge queue Sep 10, 2024
Merged via the queue into main with commit 1e357b8 Sep 10, 2024
35 checks passed
@matthewelwell matthewelwell deleted the fix/segment-priority-override-issues branch September 10, 2024 10:23
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