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

   
   <details><summary>AI Summary</summary>
   With `hide_paused_dags_by_default` enabled, the Dags list fetched `/ui/dags` 
twice on every page load: `usePausedDefault` wrote `paused=false` into the URL 
from a `useEffect`, after `DagsList` had already issued the first request 
unfiltered. Paused Dags flashed into the list until the second response 
replaced them, and `DagsFilters.test.tsx > defaults to showing only active 
dags` raced that second request in CI and failed intermittently with 
`paused_dag` still in the DOM.
   
   The list now derives the pending default during render, so the first request 
already carries `paused=false` and the URL seed produces the same query key 
(one request, no flash). The `usePausedDefault` call moved from `DagsFilters` 
to `DagsList`, which owns the query. The seeded flag now also flips when the 
page is opened with a `paused` or `scheduling_state` param already in the URL, 
so removing that pill shows all Dags instead of re-seeding the default.
   
   A new test records every `/ui/dags` request and asserts each one carries 
`paused=false`; it fails without the fix and does not depend on timing.
   
   Checks run locally: `DagsFilters.test.tsx` 21/21 three times, 
`src/pages/DagsList` 126/126, `DagBundles.test.tsx` 4/4, eslint, prettier, `tsc 
--noEmit`, prek pre-commit hooks. Adversarial review by GitHub Copilot: its 
only blocker (config undefined on first render) was withdrawn after checking 
the root route loader in `router.tsx`, which awaits the config before any page 
renders; verdict GO.
   </summary>
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Fable 5.1), fix implemented by a Sonnet 5.5 
subagent, adversarial review by GitHub Copilot CLI
   
   Generated-by: Claude Code (Fable 5.1) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01BVx6g7GpQFxdabhHVW6KYd
   


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