pierrejeambrun commented on code in PR #62046:
URL: https://github.com/apache/airflow/pull/62046#discussion_r2817436098
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dependencies.py:
##########
@@ -48,10 +48,14 @@
)
def get_dependencies(
session: SessionDep,
+ user: GetUserDep,
+ auth_manager: AuthManagerDep,
node_id: str | None = None,
dependency_type: Literal["scheduling", "data"] = "scheduling",
) -> BaseGraphResponse:
"""Dependencies graph."""
+ readable_dag_ids = auth_manager.get_authorized_dag_ids(method="GET",
user=user)
Review Comment:
Can you use the dependency `readable_dags_filter: ReadableDagsFilterDep,`
instead. then `readable_dags_filter.values` will give you the dag ids.
--
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]