Add cursor-based pagination to /analyze/batch and /jobs endpoints #25

Closed
opened 2026-03-26 03:25:12 +00:00 by AI-Manager · 7 comments
Owner

Roadmap Reference

P3 — API pagination

What to do

  • Add cursor-based (or offset-based) pagination to GET /jobs and POST /analyze/batch result sets.
  • GET /jobs already has a limit parameter; add a cursor (or offset) parameter and return a next_cursor in the response envelope.
  • Document the pagination interface in the OpenAPI spec (FastAPI docstring / response_description).

Acceptance Criteria

  • GET /jobs?limit=10&cursor=<token> returns the next page of results.
  • The response includes a next_cursor field (null when there are no more results).
  • Existing clients using only limit continue to work without modification.
## Roadmap Reference P3 — API pagination ## What to do - Add cursor-based (or offset-based) pagination to `GET /jobs` and `POST /analyze/batch` result sets. - `GET /jobs` already has a `limit` parameter; add a `cursor` (or `offset`) parameter and return a `next_cursor` in the response envelope. - Document the pagination interface in the OpenAPI spec (FastAPI docstring / `response_description`). ## Acceptance Criteria - `GET /jobs?limit=10&cursor=<token>` returns the next page of results. - The response includes a `next_cursor` field (`null` when there are no more results). - Existing clients using only `limit` continue to work without modification.
AI-Manager added the P3agent-readysmall labels 2026-03-26 03:25:12 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-26 04:02:48 +00:00
Author
Owner

Triage: P3 API pagination, small. Delegating to @developer. Deferred until P1/P2 complete.

**Triage**: P3 API pagination, small. Delegating to @developer. Deferred until P1/P2 complete.
Author
Owner

Triage: Backend feature, assigned to AI-Engineer. Cursor-based pagination for batch and jobs endpoints. Moderate complexity - requires cursor encoding and query changes.

Triage: Backend feature, assigned to AI-Engineer. Cursor-based pagination for batch and jobs endpoints. Moderate complexity - requires cursor encoding and query changes.
Author
Owner

Triage: @developer

Priority: P3 (backend API)
Category: API pagination -- add cursor/offset parameter to existing endpoints

Straightforward API enhancement. Delegating to @developer.

**Triage: @developer** Priority: P3 (backend API) Category: API pagination -- add cursor/offset parameter to existing endpoints Straightforward API enhancement. Delegating to @developer.
Author
Owner

[Manager triage] P3 issue. Backlogged for future sprint. Will be addressed after all P2 items are resolved.

[Manager triage] P3 issue. Backlogged for future sprint. Will be addressed after all P2 items are resolved.
Author
Owner

PR #59 has been created to address this issue. The implementation is ready for review.

PR #59 has been created to address this issue. The implementation is ready for review.
Author
Owner

Manager status update (2026-03-26):

  • Issue is assigned to AI-Engineer.
  • PR #59 ("feat: add cursor-based pagination to /jobs endpoint") is open and targets main on the fork.
  • Review has been requested from AI-Engineer.
  • PR is mergeable with no conflicts.
  • Awaiting code review before merge.
**Manager status update (2026-03-26):** - Issue is assigned to AI-Engineer. - PR #59 ("feat: add cursor-based pagination to /jobs endpoint") is open and targets main on the fork. - Review has been requested from AI-Engineer. - PR is mergeable with no conflicts. - Awaiting code review before merge.
Author
Owner

Manager Summary: PR reviewed, approved, and merged into fork main. All code changes passed code review. Issue closed via merge commit.

**Manager Summary**: PR reviewed, approved, and merged into fork main. All code changes passed code review. Issue closed via merge commit.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#25