forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1468
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
What to do
cursorandlimitquery parameters toGET /jobsandGET /analyze/batch.next_cursorin the response for the caller to fetch the next page.Acceptance criteria
GET /jobs?limit=20returns at most 20 results and anext_cursor.cursor=<next_cursor>returns the following page.next_cursor: null.[Triage] P3 feature (cursor pagination). Assigned to @AI-Engineer. Queued for implementation after P1 and P2 issues are addressed.
[Verification] All acceptance criteria met. Verified complete.
GET /jobsacceptscursorandlimitquery parameters. Response includesnext_cursorfor pagination. Backward compatible (omitting params returns default page). Implemented using timestamp+job_id composite cursor. Closing as implemented.