forked from 0xWheatyz/SPARC
Feature: cursor-based pagination for /analyze/batch and /jobs endpoints #896
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 without pagination. This will become a performance problem as the dataset grows.Roadmap reference: P3 - API pagination
What to do
cursorandlimitquery parameters to both endpoints.next_cursorfield in the response when more results are available.Acceptance criteria
?limit=N&cursor=Xand return at mostNresults.next_cursorwhen more pages exist andnullon the last page.This issue has been resolved. The changes are already merged into main.
Cursor-based pagination implemented for /jobs endpoint with limit/cursor parameters in database.py list_jobs.
Closing as completed.