pierrejeambrun opened a new pull request, #67564:
URL: https://github.com/apache/airflow/pull/67564
Re-introduces collective Clear on the Dag Runs list page — the
Airflow 2.x ``DagRunModelView`` action that the Airflow 3 UI did not
yet replicate. Part of #63854.
## Summary
- New ``Clear`` button in the existing ``ActionBar``, next to the
bulk ``Delete`` shipped in #67095.
- Dialog mirrors the existing single-run Clear: a segmented control
(``Clear existing tasks`` / ``Clear only failed tasks`` / ``Queue up
new tasks``), an affected-tasks preview grouped by run, and an
optional note.
- No backend change: the dialog fans out the existing
``POST /dags/{dag_id}/dagRuns/{dag_run_id}/clear`` endpoint over the
selected runs (same pattern bulk Clear on the Task Instances list
uses today). A note typed in the dialog is patched onto each run
via ``PATCH /dags/{dag_id}/dagRuns/{dag_run_id}`` after the clear
succeeds.
## Out of scope (follow-up PRs)
- Bulk **Mark as success / failed** on the Dag Runs list — the other
half of #63854.
- Per-run partial-success handling (today the first failure stops the
batch, same as bulk Clear on the Task Instances list).
## Screenshots
- _Action bar with new ``Clear`` button (single Dag and multiple Dags)_
- _Clear dialog — default segmented option (``Clear existing tasks``) with
affected-tasks preview grouped by run_
- _Clear dialog — ``Clear only failed tasks`` option_
- _Clear dialog — ``Queue up new tasks`` option_
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.7)
Generated-by: Claude Code (Opus 4.7) 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]