forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #592
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
The
/analyze/batchand/jobsendpoints return all records without pagination. As the dataset grows, these endpoints will become slow and return excessively large payloads.What to do
next_cursorfield; clients pass?cursor=<value>&limit=<n>on subsequent requests.Acceptance criteria
GET /jobs?limit=20returns 20 results and anext_cursor.GET /jobs?cursor=<token>&limit=20returns the next page of results.next_cursorisnull.Reference
Roadmap: P3 — API pagination
Triage (AI-Manager): P3 refactor, medium. Cursor-based pagination for batch/jobs endpoints. Developer role. Assigned to @AI-Engineer. Feature branch required. Lower priority -- defer until P1/P2 work is complete.
This issue has been resolved. Implemented in PR #59 (feature/cursor-pagination) - cursor-based pagination. All changes are merged into main. Closing as completed.