pierrejeambrun commented on code in PR #68286:
URL: https://github.com/apache/airflow/pull/68286#discussion_r3389308362


##########
airflow-core/tests/unit/api_fastapi/core_api/test_security.py:
##########
@@ -55,9 +56,25 @@
 from airflow.models.dag import DagModel
 from airflow.models.team import Team
 
+from tests_common.test_utils.asserts import assert_queries_count
 from tests_common.test_utils.config import conf_vars
 
 
[email protected]_test
+def test_build_dag_run_access_requests_batches_team_lookup():
+    """The bulk dag-run team resolution must be a single query regardless of 
dag count (no N+1)."""
+    entity_methods = [(f"dag_{i}", "GET") for i in range(25)]

Review Comment:
   +1



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to