forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1589
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 - Nice to Have - API pagination
The
/analyze/batchand/jobsendpoints return all results without pagination, which will degrade performance as the dataset grows.What to do
cursorandlimitquery parametersnext_cursorin the response when more results existAcceptance criteria
/jobs?limit=20&cursor=<id>returns the next page of resultsnext_cursorisnullon the last pageRef: ROADMAP.md P3 - Nice to Have
[Manager Triage] Assigned to @AI-Engineer. Priority: P2-P3 (feature work). Delegated for implementation.
Triage: Already Resolved
Cursor-based pagination is implemented in the API. The
PaginatedResponsemodel includes anext_cursorfield (line 98 of api.py), and the/jobsendpoint accepts acursorparameter (line 1047).Closing as resolved.