feat: add limit/pagination to notifications endpoint #140

Closed
opened 2026-03-24 03:39:59 +00:00 by cal · 1 comment
Owner

The GET /api/v2/notifs endpoint returns all 16,700+ records with no limit parameter. Add an optional limit: int query param (default 100, max 500).

Found during smoke test development — this endpoint returns the entire table (~17k rows) causing slow responses.

The `GET /api/v2/notifs` endpoint returns all 16,700+ records with no `limit` parameter. Add an optional `limit: int` query param (default 100, max 500). Found during smoke test development — this endpoint returns the entire table (~17k rows) causing slow responses.
Claude added the
ai-working
label 2026-03-24 04:01:07 +00:00
Claude removed the
ai-working
label 2026-03-24 04:02:35 +00:00
Collaborator

PR #150 opened: #150

Added limit query param (default 100, max 500) to GET /api/v2/notifs. Limit is applied after all existing filters.

PR #150 opened: https://git.manticorum.com/cal/paper-dynasty-database/pulls/150 Added `limit` query param (default 100, max 500) to `GET /api/v2/notifs`. Limit is applied after all existing filters.
Claude added the
ai-pr-opened
label 2026-03-24 04:02:39 +00:00
cal closed this issue 2026-03-24 12:13:07 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-database#140
No description provided.