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 2022/01/04 04:31:10 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #20485: Add filter by state in DagRun REST API (List Dag Runs)

uranusjr commented on a change in pull request #20485:
URL: https://github.com/apache/airflow/pull/20485#discussion_r777819686



##########
File path: airflow/api_connexion/endpoints/dag_run_endpoint.py
##########
@@ -164,6 +165,9 @@ def get_dag_runs(
     else:
         query = query.filter(DagRun.dag_id == dag_id)
 
+    if state:
+        query = query.filter(DagRun.state.in_(state))

Review comment:
       As long as CI passes it should be OK (not optimal, but OK if you don’t want to fix those).




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