From 307377a98b1106ba3708e9875710834dbf3f6a6a Mon Sep 17 00:00:00 2001 From: Brent Bovenzi Date: Mon, 6 Feb 2023 11:35:24 -0300 Subject: [PATCH] remove /legacy_tree endpoint (#29359) --- airflow/www/views.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index b1d55cd012136..1b246e6e18b91 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -2689,20 +2689,6 @@ def dag(self, dag_id): kwargs = {**sanitize_args(request.args), "dag_id": dag_id} return redirect(url_for("Airflow.grid", **kwargs)) - @expose("/legacy_tree") - @auth.has_access( - [ - (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG), - (permissions.ACTION_CAN_READ, permissions.RESOURCE_TASK_INSTANCE), - (permissions.ACTION_CAN_READ, permissions.RESOURCE_TASK_LOG), - ] - ) - @gzipped - @action_logging - def legacy_tree(self): - """Redirect to the replacement - grid view.""" - return redirect(url_for("Airflow.grid", **sanitize_args(request.args))) - @expose("/tree") @auth.has_access( [ @@ -2713,7 +2699,7 @@ def legacy_tree(self): ) @gzipped @action_logging - def tree(self): + def legacy_tree(self): """Redirect to the replacement - grid view. Kept for backwards compatibility.""" return redirect(url_for("Airflow.grid", **sanitize_args(request.args)))