forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #559
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 records without pagination. This will degrade performance as the database grows.What to do
/jobs(list all jobs) and any bulk result endpoints.cursorandlimitquery parameters; return anext_cursorin the response body.Acceptance Criteria
/jobs?limit=20returns at most 20 records and anext_cursor.cursor=<value>returns the next page correctly.Reference
Roadmap item: P3 - API pagination
Triage (Repo Manager): Assigned to AI-Engineer as @developer task. P3/medium -- add cursor-based pagination to API endpoints and update frontend consumption.
[Repo Manager] This issue is already resolved. The
/jobsendpoint accepts acursorquery parameter and returnsnext_cursorfor cursor-based pagination. Closing as complete.