Skip to content

Fix pagination bug cluster in tagging service#137

Merged
mdolina merged 1 commit into
develop-multi-tenantfrom
fix/tagging-pagination-bugs
Jul 5, 2026
Merged

Fix pagination bug cluster in tagging service#137
mdolina merged 1 commit into
develop-multi-tenantfrom
fix/tagging-pagination-bugs

Conversation

@mdolina

@mdolina mdolina commented Jul 5, 2026

Copy link
Copy Markdown
Contributor
  • BUG-1: propagate Cassandra errors from getPopulatedBuckets in GetMembersPaginated as 500 instead of masking them as 404 "tag not found"
  • BUG-2: a failed bucket read now fails the page (500) instead of silently omitting the bucket's members and advancing the cursor past them; same fix applied to the non-paginated read path (GetTagById / GetMembersNonPaginated)
  • BUG-3: a cursor pointing past the last populated bucket ends the enumeration instead of wrapping around to bucket 0 and re-delivering the whole tag; invalid/corrupt cursors now return 400 Bad Request instead of silently restarting from the beginning
  • Remove unused BucketedCursor.TotalCollected field
  • Add a mock DatabaseClient test seam and service-level tests covering all three bugs plus a two-page pagination regression walk

- BUG-1: propagate Cassandra errors from getPopulatedBuckets in
  GetMembersPaginated as 500 instead of masking them as 404 "tag not found"
- BUG-2: a failed bucket read now fails the page (500) instead of silently
  omitting the bucket's members and advancing the cursor past them; same
  fix applied to the non-paginated read path (GetTagById /
  GetMembersNonPaginated)
- BUG-3: a cursor pointing past the last populated bucket ends the
  enumeration instead of wrapping around to bucket 0 and re-delivering the
  whole tag; invalid/corrupt cursors now return 400 Bad Request instead of
  silently restarting from the beginning
- Remove unused BucketedCursor.TotalCollected field
- Add a mock DatabaseClient test seam and service-level tests covering all
  three bugs plus a two-page pagination regression walk

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 5, 2026 18:06
@mdolina mdolina merged commit b2c4707 into develop-multi-tenant Jul 5, 2026
2 checks passed
@mdolina mdolina deleted the fix/tagging-pagination-bugs branch July 5, 2026 18:07
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant