forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1543
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/batchand/jobsendpoints return all results without pagination. For users with large job histories, this creates slow responses and high memory usage.Roadmap reference: ROADMAP.md > P3 > API pagination
What to do
/jobs(e.g.,?cursor=<last_id>&limit=20)/analyze/batchresults if applicablenext_cursorin the response body when more results are availableAcceptance criteria
/jobs?limit=20returns at most 20 results with anext_cursornext_cursorin a subsequent request retrieves the next pagenext_cursorin the responseTriage review: Resolved: /jobs endpoint already has cursor-based pagination with next_cursor support. Closing as already complete.