fix: /api/v1/environment-document N+1 query issue related to the number of segment overrides in a version#6865
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Docker builds report
|
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
|
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
|
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
|
/api/v1/environment-document has an N+1 query issue proportional to the number of versions with segment overrides/api/v1/environment-document has an N+1 query issue related to the number of segment overrides in a version
/api/v1/environment-document has an N+1 query issue related to the number of segment overrides in a version/api/v1/environment-document N+1 query issue related to the number of segment overrides in a version
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6865 +/- ##
=======================================
Coverage 98.33% 98.33%
=======================================
Files 1336 1336
Lines 49629 49634 +5
=======================================
+ Hits 48804 48809 +5
Misses 825 825 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
khvn26
left a comment
There was a problem hiding this comment.
Given that the issue is not related to EFVs after all, we need a better test.
The thing is, that it is related to versioning. The issue with this test was that, while it enabled versioning, it then created all of the feature states without caring about that versioning. So the test previously was not testing what we thought it was. By moving the Edit: I left the additional versions there as a bonus in case we ever do accidentally add an N+1 issue related to the number of versions. |
…mber of segment overrides in a version (#6865)
Changes
Fixes an N+1 issue in the SDK environment document endpoint.
How did you test this code?
Updated an existing test case.