forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #512
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 batch and jobs listing endpoints return all results at once. For accounts with large job histories this will cause slow queries and large payloads.
Task
GET /jobsusingafter_idandlimitquery parametersnext_cursorin the response envelope so clients can fetch subsequent pagesAcceptance Criteria
GET /jobs?limit=20returns at most 20 results and anext_cursorGET /jobs?limit=20&after_id=<cursor>returns the next pagenext_cursoris null/absent when there are no more resultsTriage: P3 Backend. Assigned to @AI-Engineer (developer). Medium scope - add cursor-based pagination to batch/jobs endpoints. Delegated to @developer agent. Lower priority - address after P1/P2 items.
Resolved: Cursor-based pagination is implemented on the /jobs endpoint with cursor and limit query parameters and a next_cursor response field. Merged via PR #59.
Closing as resolved -- the implementation is merged into main.