bbovenzi commented on a change in pull request #15041:
URL: https://github.com/apache/airflow/pull/15041#discussion_r602586014



##########
File path: airflow/ui/src/api/index.ts
##########
@@ -39,6 +39,23 @@ export function useDags() {
   );
 }
 
+export function useDagRuns(dagId: Dag['dagId'], dateMin?: string) {
+  return useQuery<DagRunsResponse, Error>(
+    ['dagRun', dagId],
+    (): Promise<DagRunsResponse> => axios.get(`dags/${dagId}/dagRuns${dateMin 
? `?start_date_gte=${dateMin}` : ''}`),

Review comment:
       We probably want some functions to handle the formatting of url params 
but that's not needed now.




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