vincbeck commented on code in PR #37988:
URL: https://github.com/apache/airflow/pull/37988#discussion_r1534371678
##########
airflow/www/views.py:
##########
@@ -3080,149 +2978,9 @@ def legacy_duration(self):
@expose("/dags/<string:dag_id>/duration")
@auth.has_access_dag("GET", DagAccessEntity.TASK_INSTANCE)
Review Comment:
Same
```suggestion
```
##########
airflow/www/views.py:
##########
@@ -2836,110 +2833,11 @@ def legacy_calendar(self):
@expose("/dags/<string:dag_id>/calendar")
@auth.has_access_dag("GET", DagAccessEntity.RUN)
Review Comment:
Since we are redirecting, no need to check the access.
```suggestion
```
##########
airflow/www/views.py:
##########
@@ -3231,79 +2989,13 @@ def legacy_tries(self):
@expose("/dags/<string:dag_id>/tries")
@auth.has_access_dag("GET", DagAccessEntity.TASK_INSTANCE)
Review Comment:
Same.
```suggestion
```
##########
airflow/www/views.py:
##########
@@ -3862,64 +3477,22 @@ def legacy_audit_log(self):
@expose("/dags/<string:dag_id>/audit_log")
@auth.has_access_dag("GET", DagAccessEntity.AUDIT_LOG)
Review Comment:
```suggestion
```
##########
airflow/www/views.py:
##########
@@ -3312,92 +3004,15 @@ def legacy_landing_times(self):
@expose("/dags/<string:dag_id>/landing-times")
@auth.has_access_dag("GET", DagAccessEntity.TASK_INSTANCE)
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]