From 607d28b9ba75ce244f0eb385195000ad4f328e87 Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Thu, 2 Jul 2026 03:39:54 +0800 Subject: [PATCH] [v3-3-test] Mark dags details for airflowctl (#68529) The airflowctl migration direction keeps the existing airflow CLI behavior unchanged and only records commands that should no longer receive new development. (cherry picked from commit 98f89a0497674d07281b535db3b6c90e77f56bbd) Co-authored-by: Henry Chen --- airflow-core/src/airflow/cli/commands/dag_command.py | 1 + .../tests/unit/cli/commands/test_command_deprecations.py | 1 + 2 files changed, 2 insertions(+) diff --git a/airflow-core/src/airflow/cli/commands/dag_command.py b/airflow-core/src/airflow/cli/commands/dag_command.py index 756048af14d5e..6a5b9b3a7cffc 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -614,6 +614,7 @@ def filter_dags_by_bundle(dags: Iterable[DAG], bundle_names: list[str] | None) - ) +@deprecated_for_airflowctl("airflowctl dags get-details") @cli_utils.action_cli @suppress_logs_and_warning @providers_configuration_loaded diff --git a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py index 9300219fe5a1e..52e8a924c0adf 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -36,6 +36,7 @@ MIGRATED_CLI_COMMANDS = [ (dag_command.dag_trigger, "airflowctl dags trigger"), (dag_command.dag_delete, "airflowctl dags delete"), + (dag_command.dag_details, "airflowctl dags get-details"), (pool_command.pool_list, "airflowctl pools list"), (pool_command.pool_get, "airflowctl pools get"), (pool_command.pool_set, "airflowctl pools create"),