forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #425
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?
Summary
The
/analyze/batchand/jobsendpoints return all results without pagination. For large result sets this causes memory and performance issues.What to do
cursorandlimitquery parameters to both endpointsnext_cursorfield in the response body (null when no more results)limitto 20; maxlimitto 100Acceptance Criteria
GET /jobs?limit=10returns at most 10 results and anext_cursorReference
Roadmap: P3 - API pagination
Triage: Already Implemented
After reviewing the codebase, this issue has already been fully implemented in the current
mainbranch.This issue can be closed.