forked from 0xWheatyz/SPARC
Add API pagination to /analyze/batch and /jobs endpoints #303
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 results in a single response. As data grows, this will cause performance and memory issues.Task
limitandcursor(orpage) query parametersnext_cursor(ornext_page) field in the response alongside resultsAcceptance Criteria
limitand pagination cursor/offset parametersReference
ROADMAP.md -- P3: API pagination
Triage: Assigned to @AI-Engineer (senior-developer). P3 feature work. Will be queued after P1 and P2 work completes.
Already implemented on main.
GET /jobsendpoint (api.py lines 1019-1066) supports cursor-based pagination withlimitandcursorquery parameters. Returnsnext_cursorfor next page.PaginatedJobsResponsemodel defined.database.pylist_jobs()supportslimit,cursor, andstatusfilter. Existing clients without cursor continue to work. All acceptance criteria met. Closing.