vsima opened a new pull request, #73992:
URL: https://github.com/apache/airflow/pull/73992

   `GET /dags` can filter by `is_favorite` but doesn't return it, so API 
clients need an extra call per Dag. The private `/ui/dags` already returns it.
   
   This moves `is_favorite` onto `DAGResponse` and sets it on every endpoint 
that returns one (`GET /dags`, `GET /dags/{dag_id}`, `PATCH /dags/{dag_id}`, 
`PATCH /dags`), so it is never a wrong default. One batched query per page; 
query counts go from 4 to 5.
   
   Tests: one per endpoint, each failing without the change.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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