pagination drift
A pagination bug where walking every page returns some items twice or misses some altogether.
In more detail
Causes include offsets shifting under writes, an order without a tie breaker, and a next link that loses a filter or sort. Testing a complete walk, not just the first page, is the reliable way to catch it.
Example
In the APIs course: The course fault 02-pagination-drift repeats a task, and the contract suite catches it by walking the whole collection.Related terms
- pagination — Splitting a large collection into bounded pages, each with a way to ask for the next one.
- tie breaker — A final unique field, usually the identifier, added to a sort order so items with equal values always come out in the same order.
- next link — The link a paginated response gives to the following page, which the client should follow exactly as supplied.
Taught in
- Pagination Strategies — Modern API Architecture: REST, GraphQL & gRPC
- Filtering And Searching — Modern API Architecture: REST, GraphQL & gRPC
- Sorting Results — Modern API Architecture: REST, GraphQL & gRPC
- Contract Testing — Modern API Architecture: REST, GraphQL & gRPC