Skip to content

test(holders): cover cursor pagination stability when key counts tie - #773

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
bright5455:test/key-holder-cursor-tie-pagination
Aug 26, 2026
Merged

test(holders): cover cursor pagination stability when key counts tie#773
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
bright5455:test/key-holder-cursor-tie-pagination

Conversation

@bright5455

Copy link
Copy Markdown
Contributor

closes #762

Adds unit tests for fetchCreatorHolders proving that when two or more holders share the same key count, the ownerAddress secondary sort produces a fully deterministic order: tied holders sort alphabetically by wallet, paging across a tied group produces no duplicates or gaps, and a cursor derived from a tied row returns a stable, repeatable page.

Summary

Testing

  • pnpm lint
  • pnpm build
  • pnpm exec prisma generate when schema or generated types changed

Checklist

  • Linked issue or backlog item
  • No secrets or live credentials added
  • Docs updated if setup or env changed
  • Change is scoped to one problem

Adds unit tests for fetchCreatorHolders proving that when two or more
holders share the same key count, the ownerAddress secondary sort
produces a fully deterministic order: tied holders sort alphabetically
by wallet, paging across a tied group produces no duplicates or gaps,
and a cursor derived from a tied row returns a stable, repeatable page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@bright5455 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

@Chucks1093
Chucks1093 merged commit c488157 into accesslayerorg:main Aug 26, 2026
1 check 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.

Add unit tests for the key holder list query correctly applying the cursor when the holder count field is tied

2 participants