Repository navigation
Add backward-walk coverage for cursor-based pagination - #71365
Merged
bbovenzi merged 1 commit intoAug 10, 2026
Merged
Conversation
pierrejeambrun
force-pushed
the
add-cursor-backward-pagination-test
branch
from
August 10, 2026 10:07
3d3ca0f to
be08b3d
Compare
The keyset pagination helpers are exercised only for forward paging, so 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 nothing to catch it. This closes that coverage gap.
pierrejeambrun
force-pushed
the
add-cursor-backward-pagination-test
branch
from
August 10, 2026 10:32
be08b3d to
dce2faf
Compare
ashb
approved these changes
Aug 10, 2026
Member
|
[approve] 👍🏻 |
bbovenzi
approved these changes
Aug 10, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
pierrejeambrun
added a commit
that referenced
this pull request
Aug 10, 2026
…71365) (#71376) The keyset pagination helpers are exercised only for forward paging, so 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 nothing to catch it. This closes that coverage gap. (cherry picked from commit 54018ba) Co-authored-by: Pierre Jeambrun <[email protected]>
vatsrahul1001
pushed a commit
that referenced
this pull request
Aug 13, 2026
…71365) (#71376) The keyset pagination helpers are exercised only for forward paging, so 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 nothing to catch it. This closes that coverage gap. (cherry picked from commit 54018ba) Co-authored-by: Pierre Jeambrun <[email protected]>
vatsrahul1001
pushed a commit
that referenced
this pull request
Sep 7, 2026
…71365) (#71376) The keyset pagination helpers are exercised only for forward paging, so 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 nothing to catch it. This closes that coverage gap. (cherry picked from commit 54018ba) Co-authored-by: Pierre Jeambrun <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The keyset pagination helpers in
api_fastapi/common/cursors.pyare 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?
Generated-by: Claude Code (Opus 4.8) following the guidelines