You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/04 15:14:02 UTC

[GitHub] [airflow] ashb commented on a diff in pull request #28713: Add a param for get_dags endpoint to list only unpaused dags

ashb commented on code in PR #28713:
URL: https://github.com/apache/airflow/pull/28713#discussion_r1061586963


##########
airflow/api_connexion/endpoints/dag_endpoint.py:
##########
@@ -74,14 +74,15 @@ def get_dags(
     tags: Collection[str] | None = None,
     dag_id_pattern: str | None = None,
     only_active: bool = True,
+    only_unpaused: bool = False,

Review Comment:
   This is a bit of a double negative here which we should avoid
   
   Also it's not possible to list _only_ paused dags.
   
   How about instead we have
   
   `paused: bool | None = None` -- if it's None we don't filter, otherwise we filter by the given value?



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org