Skip to content

Commit

Permalink
remove /legacy_tree endpoint (apache#29359)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored Feb 6, 2023
1 parent 643d736 commit 307377a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand All @@ -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)))

Expand Down

0 comments on commit 307377a

Please sign in to comment.