The GitHub Actions job "Tests" on airflow.git/backport-2768fba-v3-1-test has 
succeeded.
Run started by GitHub user bbovenzi (triggered by bbovenzi).

Head commit for run:
34b48cd477ce2a56e71ca5522e0b6a37262af8a8 / subhash-0000 
<[email protected]>
[v3-1-test] fix: Enable real-time extra links updates for TriggerDagRunOperator 
(#59507)

* fix: Enable real-time extra links updates for TriggerDagRunOperator

- Add smart polling to ExtraLinks component using useAutoRefresh hook
- Poll automatically when DAG is active and links are not yet available
- Stop polling once extra links appear to reduce server load
- Respects global auto_refresh_interval config and DAG paused state
- Fixes issue where Triggered DAG button only appeared after manual refresh

Closes #58928

* fix: prevent infinite polling for tasks without extra links

- Add task metadata check using useTaskServiceGetTask
- Only poll if task.extra_links.length > 0
- Conditionally render ExtraLinks component in Details.tsx
- Prevents unnecessary API calls for tasks without extra links

Addresses review feedback from @bbovenzi

* refactor: reuse parent refetchInterval pattern in child components

- Pass parent's refetchInterval to ExtraLinks and BlockingDeps components
- Remove duplicate useAutoRefresh and useTaskServiceGetTask calls
- Eliminate invalid taskInstance.extra_links property access (doesn't exist on 
TaskInstanceResponse)
- Polling now tied to try instance pending state - stops automatically when 
task completes
- Simplifies architecture by centralizing refresh logic in parent component

Addresses review feedback from @pierrejeambrun and @bbovenzi

* style: apply pre-commit hook formatting fixes

- Reorder type union to alphabetical order (number | false)
- Format ExtraLinks component to single line
(cherry picked from commit 2768fba69549cb4030af8ce97c675ef893433017)

Co-authored-by: subhash-0000 <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/20788120809

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to