forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs #1681
Reference in New Issue
Block a user
Delete Branch "feature/1669-cursor-pagination"
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
/analyze/batchendpoint returning stored analysis results with cursor-based pagination/jobsendpoint defaults: limit 10->50, max 100->200list_analyses()method toDatabaseClientwith cursor support using(timestamp, id)orderingitemsarray andnext_cursorfield (null when no more results)Closes #1669
Manager Review: Clean implementation. New GET /analyze/batch endpoint with cursor-based pagination using timestamp|id cursor format. Database layer properly implements list_analyses() with cursor parsing. /jobs defaults updated (limit 10->50, max 100->200). 169-line test file with good coverage. One minor note: the GET /analyze/batch route is added before the existing POST /analyze/batch -- verify FastAPI route ordering is correct. Ready to merge.