Paging for long and truncated lists #116

Closed
opened 2026-11-22 20:13:32 +00:00 by Sebi · 0 comments
Owner

Replace fixed LIMITs and unbounded lists with keyset paging (cursor = sort key + ID, so nothing is skipped or repeated).

  • API: every list returns at most 100 items (limit up to 500) with next_cursor/prev_cursor; after/before take them.
  • Console: server-rendered Newer/Older links and To the start; works without JavaScript.
  • Lists: incidents (org, and per monitor), evidence, recent results, results per checker, audit logs (cursor had only a timestamp, so entries with equal times could be skipped), admin status pages and organizations, members, invitations, maintenance windows, firing Alertmanager alerts, admin regions and agents, monitors API.
  • Dashboard: each group shows its first 50 monitors with Show more, plus search by name or target.
Replace fixed LIMITs and unbounded lists with keyset paging (cursor = sort key + ID, so nothing is skipped or repeated). - **API:** every list returns at most 100 items (`limit` up to 500) with `next_cursor`/`prev_cursor`; `after`/`before` take them. - **Console:** server-rendered Newer/Older links and To the start; works without JavaScript. - **Lists:** incidents (org, and per monitor), evidence, recent results, results per checker, audit logs (cursor had only a timestamp, so entries with equal times could be skipped), admin status pages and organizations, members, invitations, maintenance windows, firing Alertmanager alerts, admin regions and agents, monitors API. - **Dashboard:** each group shows its first 50 monitors with Show more, plus search by name or target.
Sebi added this to the M12 Self-service signup & limits milestone 2026-11-22 20:13:32 +00:00
Sebi closed this issue 2026-11-22 20:46:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#116