fix(airflowctl): allow listing dag runs without specifying dag_id#61525
Merged
Conversation
Contributor
|
It's just My thought I'd love to hear your thoughts cc: @bugraoz93 |
Prab-27
reviewed
Feb 6, 2026
548a368 to
e08e556
Compare
e08e556 to
6387e44
Compare
bugraoz93
reviewed
Feb 12, 2026
bugraoz93
left a comment
Contributor
There was a problem hiding this comment.
Thanks a lot, Henry, for the PR! Could you please check one comment?
36fcf0d to
1229a22
Compare
bugraoz93
approved these changes
Feb 13, 2026
Make dag_id parameter optional in DagRunOperations.list() and default to ~ for querying all DAGs. Also make other filter parameters (state, limit, start_date, end_date) optional for better CLI flexibility.
1229a22 to
ee692d6
Compare
25 tasks
choo121600
pushed a commit
to choo121600/airflow
that referenced
this pull request
Feb 22, 2026
…ache#61525) Make dag_id parameter optional in DagRunOperations.list() and default to ~ for querying all DAGs. Also make other filter parameters (state, limit, start_date, end_date) optional for better CLI flexibility.
dominikhei
pushed a commit
to dominikhei/airflow
that referenced
this pull request
Mar 11, 2026
…ache#61525) Make dag_id parameter optional in DagRunOperations.list() and default to ~ for querying all DAGs. Also make other filter parameters (state, limit, start_date, end_date) optional for better CLI flexibility.
Ankurdeewan
pushed a commit
to Ankurdeewan/airflow
that referenced
this pull request
Mar 15, 2026
…ache#61525) Make dag_id parameter optional in DagRunOperations.list() and default to ~ for querying all DAGs. Also make other filter parameters (state, limit, start_date, end_date) optional for better CLI flexibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
Modified
DagRunOperations.list()method signature:Nonedefaults:dag_id, start_date,end_date`dag_idisNone, it defaults to"~"(which queries all DAGs)Noneparameters are included in the API request query paramsUpdated
cli_config.pyto handle Optional primitive types:_is_primitive_type()to recognize types likedatetime.datetime | Noneas primitive typesAdded comprehensive test coverage:
test_list_all_dags(): validates listing dag runs across all DAGs using defaultdag_id="~"test_list_with_optional_parameters(): validates partial parameter usage with specific dag_idWhy
Users reported that the CLI command
airflowctl dagrun list --state=queued --limit=5fails with errorcloses: #61513
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.