pierrejeambrun opened a new pull request, #65604:
URL: https://github.com/apache/airflow/pull/65604

   Add cursor-based (keyset) pagination as an alternative to offset-based 
pagination on the `get_dag_runs` endpoint. Offset pagination remains the 
default and is not deprecated. Mirrors the pattern introduced for 
`get_task_instances` in #64845.
   
   - Response schema adds `next_cursor` / `previous_cursor` and makes 
`total_entries` optional (populated only for offset pagination).
   - Fetch `limit+1` rows to detect the last page and return `next_cursor=null` 
when no more results exist.
   - Rewire the DagRuns listing page to use cursor pagination via the 
`DataTable`'s `cursorPagination` prop, which eliminates the `COUNT(*)` query 
for large datasets.
   
   related: #64845
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.7 1M context)
   
   Generated-by: Claude Code (Opus 4.7 1M context) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to