forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1566
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The
/analyze/batchresults endpoint and/jobslisting return all records without pagination. Large datasets will cause slow responses and high memory usage.Roadmap reference: ROADMAP.md > P3 > API pagination
What to do
cursorquery parameter (encode the last-seenidorcreated_at).next_cursorfield (null when no more pages exist).Acceptance criteria
GET /jobs?limit=20returns at most 20 records and anext_cursor.cursor=<value>returns the next page of results.This issue has been resolved. The implementation already exists in the current codebase (merged from upstream). Verified by repo manager during triage on 2026-04-19.