forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #465
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
Roadmap item: P3 - API pagination
The
/analyze/batchand/jobsendpoints return all results without pagination. As usage grows, these responses can become very large, degrading performance and usability.What to do
GET /jobsand the batch results endpoint:cursor(opaque token encoding the last seen row) andlimitquery parameters.next_cursorfield in the response when more results exist.Acceptance criteria
GET /jobs?limit=20returns at most 20 jobs and anext_cursorif more exist.cursor=<value>returns the next page starting after that cursor.Reference: ROADMAP.md - P3
[Repo Manager Triage] P3 Feature issue. Assigned to @AI-Engineer. Deferred - will be scheduled after P1 and P2 issues are resolved.
[Repo Manager] Closing as already implemented.
Already implemented:
api.py:1023-1070implements cursor-based pagination onGET /jobswithcursorandlimitquery params, returningnext_cursorfield.