Summary
The cursor-based pagination system encodes a database row ID and sort value into an opaque cursor string and decodes it on the next request. Unit tests should confirm the encode→decode round-trip is lossless for all supported field types.
Scope
- Test encoding and decoding a cursor with an integer ID and timestamp sort value
- Test encoding and decoding a cursor with a string ID and numeric sort value
- Test that a tampered cursor string (base64 modified mid-string) throws
InvalidCursor
- Test that an empty string cursor throws
InvalidCursor
- Assert decoded values are strictly equal (not just loosely equal) to the originals
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The cursor-based pagination system encodes a database row ID and sort value into an opaque cursor string and decodes it on the next request. Unit tests should confirm the encode→decode round-trip is lossless for all supported field types.
Scope
InvalidCursorInvalidCursorAcceptance Criteria
InvalidCursorInvalidCursorETA: 12 hours
Coordinate on Telegram