From de98d0bef7871d4b12ba28c8e41871ca15d2591d Mon Sep 17 00:00:00 2001 From: Yuseok Jo Date: Sun, 5 Jul 2026 03:45:35 +0900 Subject: [PATCH] [v3-3-test] [AIP-94] Mark dags list-import-errors as migrated to airflowctl (#68602) (cherry picked from commit 924f022d901acebaf75f8c1d9259bbcc024481ad) Co-authored-by: Yuseok Jo --- 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 6a5b9b3a7cffc..41d1c8c6669a7 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -638,6 +638,7 @@ def dag_details(args, *, session: Session = NEW_SESSION): @cli_utils.action_cli +@deprecated_for_airflowctl("airflowctl dags list-import-errors") @suppress_logs_and_warning @providers_configuration_loaded @provide_session 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 411cb6a84f14e..bcf7516dbd864 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -44,6 +44,7 @@ (dag_command.dag_trigger, "airflowctl dags trigger"), (dag_command.dag_delete, "airflowctl dags delete"), (dag_command.dag_details, "airflowctl dags get-details"), + (dag_command.dag_list_import_errors, "airflowctl dags list-import-errors"), (pool_command.pool_list, "airflowctl pools list"), (pool_command.pool_get, "airflowctl pools get"), (pool_command.pool_set, "airflowctl pools create"),