mik-laj commented on pull request #16842:
URL: https://github.com/apache/airflow/pull/16842#issuecomment-875948192


   [Adding only_active parameter to /dags endpoint 
#14306](https://github.com/apache/airflow/pull/14306/files) restored the 
ability to view the list of all DAGS, both active and inactive. If I understand 
correctly, now `/dags/` only returns active DAGs by default. To return all 
DAGs, you need to pass `is_active` query parameter. `/dags/{dag_id}/` returns 
information about all DAGs, both active and inactive, which is consistent with 
the `/dags/` endpoint.  The `/dags/{dag_id}/ `details endpoint, which is a bit 
specific because it operates on a serialized DAG, allows us to get only active 
DAGs. This is a certain limitation of this endpoint and I think it's worth 
documenting until we implement full versioning of the DAGs or other features 
that will make us have access to all DAG attributes in all cases.
   
   I don't understand why you want to make this change? What do you mean by 
"stale DAGs"?
   
   @kaxil @ephraimbuddy WDYT? 


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


Reply via email to