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): prevent task from deleting all unrelated feature states / feature segments #3955

Merged
merged 1 commit into from
May 15, 2024

Conversation

matthewelwell
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Previously the endpoint to revert feature versioning attempted to delete all feature states in the platform. This PR resolves that by ensuring that we filter everything on the environment.

How did you test this code?

Updated the unit test after first confirming that it failed with the current code.

Copy link

vercel bot commented May 15, 2024

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:42am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:42am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 10:42am

@matthewelwell matthewelwell requested review from a team and novakzaballa and removed request for a team May 15, 2024 10:38
@github-actions github-actions bot added the api Issue related to the REST API label May 15, 2024
Copy link
Contributor

github-actions bot commented May 15, 2024

Uffizzi Preview deployment-51752 was deleted.

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.01%. Comparing base (bf67b1d) to head (b7c7a74).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3955   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files        1135     1135           
  Lines       36396    36401    +5     
=======================================
+ Hits        34945    34950    +5     
  Misses       1451     1451           

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

@matthewelwell matthewelwell added this pull request to the merge queue May 15, 2024
Merged via the queue into main with commit 0ed5148 May 15, 2024
24 checks passed
@matthewelwell matthewelwell deleted the fix/revert-versioning-v2 branch May 15, 2024 10:57
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants