Repository navigation
Fix airflow dags list --columns help showing wrong default columns - #72607
Merged
dheerajturaga merged 1 commit intoSep 7, 2026
Merged
Conversation
The help text listed four default columns and named one of them "owner", while the actual default renders six columns and the valid field is "owners". Following the help therefore produced an "invalid columns" error and a table missing the owners column, and the generated CLI reference documentation carried the same mistake. Derive the help text from the same tuple used as the default so the two cannot drift apart again, and guard both --columns arguments with a test.
Eason09053360
requested review from
bugraoz93,
dheerajturaga,
henry3260 and
potiuk
as code owners
September 7, 2026 01:42
dheerajturaga
approved these changes
Sep 7, 2026
dheerajturaga
left a comment
Member
There was a problem hiding this comment.
Thanks for catching this!
regarmukesh3g
pushed a commit
to regarmukesh3g/airflow
that referenced
this pull request
Sep 27, 2026
…pache#72607) The help text listed four default columns and named one of them "owner", while the actual default renders six columns and the valid field is "owners". Following the help therefore produced an "invalid columns" error and a table missing the owners column, and the generated CLI reference documentation carried the same mistake. Derive the help text from the same tuple used as the default so the two cannot drift apart again, and guard both --columns arguments with a test. Co-authored-by: Eason09053360 <[email protected]>
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.
The
--columnshelp forairflow dags listsaid the default was['dag_id', 'fileloc', 'owner', 'is_paused'], but the actual default has been('dag_id', 'fileloc', 'owners', 'is_paused', 'bundle_name', 'bundle_version')since #45779, and the valid field name has always beenowners(the help saidownersince the option was introduced in #35250).Following the help literally (
--columns owner) prints an "Ignoring the following invalid columns" error and drops the column from the table. The generated CLI reference docs (cli-and-env-variables-ref.rst, built via.. argparse::) carried the same wrong text.This PR derives the help string from the same tuple used as
default, so the two cannot drift apart again, and adds a parametrized test that asserts the(default: [...])fragment in the help of both--columnsarguments (dags list,assets list) matches their actualdefault.Rendered help after the change:
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Fable 5.1) following the guidelines