Skip to content

Document pagination sort bug on GET /member#1

Merged
ispyisail merged 1 commit intomasterfrom
fix/pagination-sort-bug
Mar 4, 2026
Merged

Document pagination sort bug on GET /member#1
ispyisail merged 1 commit intomasterfrom
fix/pagination-sort-bug

Conversation

@ispyisail
Copy link
Owner

Summary

  • Documents a significant pagination bug: GET /member with sort=-updatedAt returns duplicate records across pages, causing ~33% of members to be silently missed
  • Adds reproduction steps, live test results, impact analysis, and workaround to docs/gotchas.md

Key Findings

Sort Unique Members Duplicates Missing
-lastOnline (default) 2,115 28 0
-updatedAt 1,423 720 697
updatedAt (ascending) 1,060 1,083 1,060

Adjacent pages (offset=0 and offset=100) with sort=-updatedAt share 41 members. Same test with default sort shows 0 overlap.

Test Evidence

Reproducible test script: scripts/test_api_sort_bug.py

🤖 Generated with Claude Code

GET /member with sort=-updatedAt produces duplicate records across pages,
causing ~33% of members to be silently missed. Adjacent pages share 41/100
members. Default sort (-lastOnline) is stable with only ~1.3% duplicates.

Adds reproduction steps, test results table, impact analysis, and workaround
to the gotchas doc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ispyisail ispyisail merged commit 9cd3825 into master Mar 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant