-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add number of queries guard in public dags list endpoints #57506
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
Add number of queries guard in public dags list endpoints #57506
Conversation
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.
Pull Request Overview
This PR adds database query count assertions to the test_get_dags parameterized test to ensure performance regression prevention by verifying that the endpoint consistently executes exactly 4 database queries.
- Added
assert_queries_countimport from test utilities - Wrapped the API call in
test_get_dagswith a query count assertion expecting 4 queries
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c23d5b7 to
70f277c
Compare
Backport failed to create: v3-1-test. View the failure log Run details
You can attempt to backport this manually by running: cherry_picker dc73d38 v3-1-testThis should apply the commit to the v3-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continue |
(cherry picked from commit dc73d38)
|
Manual backport #57556 |
(cherry picked from commit dc73d38)
(cherry picked from commit dc73d38)
Add number of db queries guard in list endpoint, preventing further N+1 queries problem
No N+1 queries problem detected.