Mr-Neutr0n opened a new pull request, #61851: URL: https://github.com/apache/airflow/pull/61851
## Summary Fixes #61811. When multiple backfills exist for a DAG, the "Backfill in progress" banner was incorrectly displaying the first/oldest backfill rather than the currently active one. This happened due to two issues in `BackfillBanner.tsx`: 1. The API query fetched all backfills without filtering by active status, even though the `list_backfills_ui` endpoint already supports an `active` parameter that filters by `completed_at IS NULL`. 2. The date range display hardcoded `data?.backfills[0]` instead of using the `backfill` variable that was already filtered for active backfills. ## Changes - Pass `active: true` to `useBackfillServiceListBackfillsUi` so only non-completed backfills are returned from the API - Use the filtered `backfill` variable for `from_date` and `to_date` in the banner display instead of `data?.backfills[0]` ## How to test 1. Create a DAG and trigger a backfill, wait for it to complete 2. Trigger a second backfill 3. Verify the banner shows the date range of the second (active) backfill, not the first (completed) one -- 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]
