SamWheating opened a new pull request #14306:
URL: https://github.com/apache/airflow/pull/14306


   I noticed that the `/dags` endpoint returns information on all entries in 
the DAG table, which is often many more DAGs than are activeand likely includes 
DAGs which have been removed from Airflow. 
   
   This PR adds a boolean `only_active` parameter to the `/dags` endpoint which 
will then only return active DAGs. 
   
   I also noticed that this endpoint was hitting a deprecated codepath by 
dumping a `DAG` object to the DAGDetailSchema, thus hitting calling 
`DAG.is_paused()` I have updated the schema to call the correct function 
(`DAG.get_is_paused`) since I'm assuming the deprecated functions may be 
removed some day. 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to