tirkarthi commented on issue #49135:
URL: https://github.com/apache/airflow/issues/49135#issuecomment-2894859924

   An idea had in mind was to pass the the list of dag_id rendered in the page 
from API to `dagIds` but with 100 dags per page I am afraid this might hit some 
browser limits.
   
   
https://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string
   
   ```patch
   diff --git a/airflow-core/src/airflow/ui/src/queries/useDags.tsx 
b/airflow-core/src/airflow/ui/src/queries/useDags.tsx
   index d4f58dc985..653b9c53e7 100644
   --- a/airflow-core/src/airflow/ui/src/queries/useDags.tsx
   +++ b/airflow-core/src/airflow/ui/src/queries/useDags.tsx
   @@ -51,10 +51,12 @@ export const useDags = (
      } = useDagsServiceRecentDagRuns(
        {
          ...runsParams,
   +      dagIds: data?.dags?.map((dag) => dag.dag_id),
          dagRunsLimit: 14,
        },
        undefined,
        {
   +      enabled: Boolean(data),
          refetchInterval: (query) =>
            query.state.data?.dags.some(
              (dag) => !dag.is_paused && dag.latest_dag_runs.some((dr) => 
isStatePending(dr.state)),
   ```


-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to