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 2021/07/07 01:04:29 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #16845: Add state filter to dag_runs endpoint

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



##########
File path: airflow/api_connexion/endpoints/dag_run_endpoint.py
##########
@@ -144,11 +149,14 @@ def _fetch_dag_runs(
         start_date_gte,
         start_date_lte,
     )
+
+    query = apply_array_filter(query, key=DagRun.state, values=state)
+
     # Count items
     total_entries = query.count()
     # sort
     to_replace = {"dag_run_id": "run_id"}
-    allowed_filter_attrs = [
+    allowed_sort_attrs = [

Review comment:
       Likely a copy-paste error, thanks for cleaning this up.




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