From ec52276561ab63eadea63fc220d723cfeb85c541 Mon Sep 17 00:00:00 2001 From: Ryan Hatter Date: Thu, 9 Nov 2023 12:16:11 -0500 Subject: [PATCH] pass session to --- airflow/api_connexion/endpoints/dag_endpoint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/airflow/api_connexion/endpoints/dag_endpoint.py b/airflow/api_connexion/endpoints/dag_endpoint.py index 13d71c30ac579..3486244b39cc8 100644 --- a/airflow/api_connexion/endpoints/dag_endpoint.py +++ b/airflow/api_connexion/endpoints/dag_endpoint.py @@ -61,6 +61,7 @@ def get_dag(*, dag_id: str, session: Session = NEW_SESSION) -> APIResponse: @security.requires_access_dag("GET") +@provide_session def get_dag_details(*, dag_id: str, session: Session = NEW_SESSION) -> APIResponse: """Get details of DAG.""" dag: DAG = get_airflow_app().dag_bag.get_dag(dag_id)