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

   The keyset pagination helpers in `api_fastapi/common/cursors.py` are 
exercised only for forward paging. A regression in the backward (previous-page) 
path — excluding more than the boundary row, or failing to invert NULL 
placement when the sort direction flips — would silently truncate a page walked 
back into, with no test to catch it.
   
   This adds a forward-then-backward invariant: walking backward through the 
pages must reproduce the forward pages in reverse, dropping nothing. It's 
parametrized over the cases that stress that path (equal leading values split 
across pages, and NULLs under both ASC and DESC).
   
   Test-only; no behavior change.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) 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