-
Notifications
You must be signed in to change notification settings - Fork 429
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: resolve environment N+1 caused by feature versioning v2 #3040
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3040 +/- ##
=======================================
Coverage 95.73% 95.73%
=======================================
Files 1046 1044 -2
Lines 30859 30866 +7
=======================================
+ Hits 29544 29551 +7
Misses 1315 1315 ☔ View full report in Codecov by Sentry. |
ca17054
to
0d7a33d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome fix!
Changes
Caused by the addition of this line in the feature versioning V2, this PR resolves an N+1 query issue retrieving the environment.
Note, this adds a test to the old location to keep things grouped for now but should be moved to the new location asap.
How did you test this code?
Added a test to reproduce the N+1 error before resolving.