forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #960
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?
Background
The
/analyze/batchand/jobsendpoints return all results without pagination. For large result sets this can cause slow responses and excessive memory usage.Task
/jobsand/analyze/batch.limitandcursor(orpage/offset) query parameters.next_cursor(or equivalent) in the response so clients can fetch subsequent pages.Acceptance Criteria
GET /jobs?limit=20returns at most 20 results with anext_cursorfield.Reference
Roadmap: P3 -- API pagination.
Triaged by repo manager. This issue has already been resolved.
api.pyimplements cursor-based pagination on the/jobsendpoint (lines 1030-1055) withnext_cursorfield in responses andcursorquery parameter. Closing as already implemented.