-
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
feat: Add metadata fields to core entities (API) #3315
feat: Add metadata fields to core entities (API) #3315
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3315 +/- ##
==========================================
+ Coverage 95.99% 96.00% +0.01%
==========================================
Files 1135 1135
Lines 36185 36361 +176
==========================================
+ Hits 34735 34909 +174
- Misses 1450 1452 +2 ☔ View full report in Codecov by Sentry. |
@@ -2878,7 +3011,7 @@ def test_feature_list_last_modified_values( | |||
Feature.objects.create(name=f"feature_{i}", project=project) | |||
|
|||
# When | |||
with django_assert_num_queries(16): # TODO: reduce this number of queries! | |||
with django_assert_num_queries(19): # TODO: reduce this number of queries! |
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.
What are the extra queries we're adding here, and have we confirmed that we don't have any N+1 issues?
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.
You're right, I found an N+1 problem. I've fixed it by adding metadata to the prefetch_related used in the queryset.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
FE changes:
BE changes:
How did you test this code?
Tests added