Skip to content

feat(publishers): add cursor pagination to the publisher resource das… - #291

Merged
Busiii-adetiba merged 1 commit into
SynapsVault:mainfrom
Emem4:issue-220-publisher-resource-pagination
Nov 24, 2026
Merged

Busiii-adetiba merged 1 commit into
SynapsVault:mainfrom
Emem4:issue-220-publisher-resource-pagination

Conversation

@Emem4

@Emem4 Emem4 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

…hboard (#220)

Adds getPublisherResourcesPage() to publisherService with opaque base64url cursors ordered by (createdAt DESC, id DESC). The id tiebreak prevents gaps or duplicates when two resources share the same creation timestamp.

New endpoint: GET /publishers/me/resources/page
?limit page size 1–100 (default 20)
?after opaque cursor from a previous response

Response: { resources, nextCursor, hasNextPage }

The existing GET /publishers/me/resources is kept unchanged for backward compatibility. Foreign and malformed cursors return a VALIDATION_ERROR.

Tests cover the codec round-trip, invalid cursors, first/subsequent pages, equal-timestamp tiebreaks, and the max-limit clamp.

Closes #221
Closes #218
Closes #220
Closes #219

…hboard (SynapsVault#220)

Adds getPublisherResourcesPage() to publisherService with opaque base64url
cursors ordered by (createdAt DESC, id DESC). The id tiebreak prevents gaps
or duplicates when two resources share the same creation timestamp.

New endpoint: GET /publishers/me/resources/page
  ?limit  page size 1–100 (default 20)
  ?after  opaque cursor from a previous response

Response: { resources, nextCursor, hasNextPage }

The existing GET /publishers/me/resources is kept unchanged for backward
compatibility. Foreign and malformed cursors return a VALIDATION_ERROR.

Tests cover the codec round-trip, invalid cursors, first/subsequent pages,
equal-timestamp tiebreaks, and the max-limit clamp.
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

@Emem4 is attempting to deploy a commit to the work Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 24, 2026

Copy link
Copy Markdown

@Emem4 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Busiii-adetiba
Busiii-adetiba merged commit 23781ce into SynapsVault:main Nov 24, 2026
0 of 2 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

2 participants