pierrejeambrun commented on code in PR #68544:
URL: https://github.com/apache/airflow/pull/68544#discussion_r3529917150
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py:
##########
@@ -253,6 +258,36 @@ def get_dags(
)
+@dags_router.get(
+ "/folders",
+ dependencies=[Depends(requires_access_dag(method="GET"))],
+ operation_id="get_dag_folders",
+)
+def get_dag_folders(
+ readable_dags_filter: ReadableDagsFilterDep,
+ session: SessionDep,
+) -> DagFolderCollectionResponse:
+ """
+ Get the distinct folders the readable Dags live in.
Review Comment:
lets go like this for now. IF this proves to be a problem we can add a limit
later.
--
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]