Skip to content

Feat/pagination tip history #414

Merged
Mosas2000 merged 36 commits into
mainfrom
feat/pagination-tip-history-383
May 23, 2026
Merged

Feat/pagination tip history #414
Mosas2000 merged 36 commits into
mainfrom
feat/pagination-tip-history-383

Conversation

@Mosas2000

Copy link
Copy Markdown
Owner

Implementation Highlights
Core Features:

Cursor-based pagination for /api/tips and /api/tips/user/:address endpoints
Database-level pagination replacing in-memory approach
Default page size of 50 items (configurable 1-100)
Composite database indexes for efficient cursor queries
Cursor validation with 512 character limit
Storage Layer:

Added listTips({ limit, cursor }) to both MemoryEventStore and PostgresEventStore
Added listTipsByUser(address, { limit, cursor }) to both storage implementations
Three composite indexes for optimal query performance
Testing:

492 total tests passing (106 new tests added)
46 integration tests for pagination behavior
26 storage unit tests
34 validation tests including edge cases
Documentation:

Comprehensive changelog in PAGINATION_CHANGELOG.md
API reference updated with pagination examples
Deployment guide includes performance characteristics
JSDoc documentation on all new methods

Closes #383

Mosas2000 added 30 commits May 22, 2026 14:45
@Mosas2000 Mosas2000 merged commit 9540e9f into main May 23, 2026
4 of 9 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.

Implement pagination for tip history endpoint

1 participant