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): handle mapping of environment to engine post v2 versioning migration #3913

Merged

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

Fixes issue mapping environment to engine environment post v2 versioning merge.

Note that another option here would be to change the mapping function to use e.g. the versioning_service.get_environment_feature_states function, but this would result in database query issues.

How did you test this code?

Added a specific unit test to replicate the issue seen in production.

@matthewelwell matthewelwell requested review from a team and novakzaballa and removed request for a team May 10, 2024 09:30
Copy link

vercel bot commented May 10, 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 10, 2024 11:32am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:32am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 11:32am

Copy link
Contributor

github-actions bot commented May 10, 2024

Uffizzi Preview deployment-51549 was deleted.

Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.98%. Comparing base (da9e051) to head (5c587bc).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3913      +/-   ##
==========================================
+ Coverage   95.94%   95.98%   +0.04%     
==========================================
  Files        1135     1135              
  Lines       36087    36170      +83     
==========================================
+ Hits        34624    34719      +95     
+ Misses       1463     1451      -12     

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

Copy link
Contributor

@novakzaballa novakzaballa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matthewelwell matthewelwell added this pull request to the merge queue May 10, 2024
Merged via the queue into main with commit 75acd12 May 10, 2024
24 checks passed
@matthewelwell matthewelwell deleted the fix(versioning)/fix-issue-mapping-environment-to-engine branch May 10, 2024 12:29
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