Skip to content

add output format arg for cli.dags.trigger#29224

Merged
potiuk merged 5 commits into
apache:mainfrom
hussein-awala:feat/cli_trigger_output_format
Feb 19, 2023
Merged

add output format arg for cli.dags.trigger#29224
potiuk merged 5 commits into
apache:mainfrom
hussein-awala:feat/cli_trigger_output_format

Conversation

@hussein-awala

Copy link
Copy Markdown
Member

closes: #29178


Add output format argument for the command dags.trigger to simplify parsing the created DagRun info.

@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:CLI labels Jan 29, 2023

@ephraimbuddy ephraimbuddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests for the changes

Comment thread airflow/api/client/local_client.py Outdated

@ephraimbuddy ephraimbuddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread tests/api/client/test_local_client.py Outdated
@eladkal eladkal added this to the Airflow 2.6.0 milestone Feb 17, 2023
@potiuk
potiuk merged commit 60fc407 into apache:main Feb 19, 2023
@pierrejeambrun pierrejeambrun added the type:new-feature Changelog: New Features label Feb 27, 2023
"conf": dag_run.conf,
"dag_id": dag_run.dag_id,
"dag_run_id": dag_run.run_id,
"data_interval_end": dag_run.data_interval_start,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the rational behind the swapping of data_interval_end -> dag_run.data_interval_start and data_interval_start -> dag_run.data_interval_end here ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clearly this is a bug, here is the fix: #32548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:CLI type:new-feature Changelog: New Features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add output format to missing cli commands

6 participants