Repository navigation
Fix airflowctl dagrun list ignoring --start-date and --end-date - #76348
Conversation
airflowctl sent the two filters as start_date and end_date query parameters. The Dag runs endpoint only reads range parameters such as start_date_gte and end_date_lte, and FastAPI drops parameters it does not declare. The command returned all Dag runs with no error.
|
Fork CI: green. CI for the latest commit passed in your fork. The pull request is ready for maintainer review. Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite. How this works: fork CI for external contributors. This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated. |
shahar1
left a comment
There was a problem hiding this comment.
The fix is correct. GET /dags/{dag_id}/dagRuns reads dates only as range parameters (start_date_gte, end_date_lte, …), and FastAPI drops unknown query parameters, so start_date / end_date were silently ignored. The new names already exist in Airflow 3.0.0, so older servers keep working. The bug is also on airflow-ctl/v0-1-test, so the backport label fits. The new test assertion fails without the change.
One optional docstring nit inline; not blocking.
This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.More on how Apache Airflow handles maintainer review:
Contributing guide.
Backport successfully created: airflow-ctl/v0-1-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
…ate and --end-date (#76348) (#76382) airflowctl sent the two filters as start_date and end_date query parameters. The Dag runs endpoint only reads range parameters such as start_date_gte and end_date_lte, and FastAPI drops parameters it does not declare. The command returned all Dag runs with no error. (cherry picked from commit 29368e8) Co-authored-by: Andrew Chang <[email protected]>
…ate and --end-date (apache#76348) (apache#76382) airflowctl sent the two filters as start_date and end_date query parameters. The Dag runs endpoint only reads range parameters such as start_date_gte and end_date_lte, and FastAPI drops parameters it does not declare. The command returned all Dag runs with no error. (cherry picked from commit 29368e8) Co-authored-by: Andrew Chang <[email protected]>
Why
airflowctl dagrun listsends--start-dateand--end-dateto the Dag runs endpoint as thestart_dateandend_datequery parameters. The endpoint does not read these names. For dates, it reads only range query parameters, for examplestart_date_gte. The command then returns all Dag runs without an error.What
--start-datenow sendsstart_date_gte, and--end-datenow sendsend_date_lte. The command then lists the Dag runs that started at or after--start-dateand ended at or before--end-date.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines