forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1517
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 in a single response. For large result sets this is slow and memory-intensive.What to do
limit(default 20, max 100) andcursorquery parameters to both endpoints.next_cursorin the response body that clients pass in subsequent requests.created_at+id) rather than page numbers.Acceptance criteria
limitandcursorquery paramsnext_cursoris returned when more results existnext_cursoris absent (or null) on the last page[Repo Manager] This issue is already resolved. The
/jobsendpoint inapi.pysupportslimitandcursorquery parameters with opaque cursor encoding (timestamp|job_id) and returnsnext_cursorwhen more results exist. Closing as complete.