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

Closed
opened 2026-03-30 15:26:08 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P3 - API pagination

/analyze/batch and /jobs return all results in a single response. For users with large patent datasets, this will become slow and memory-intensive.

What to do

  • Implement cursor-based pagination on /jobs and /analyze/batch result endpoints.
  • Accept cursor and limit query parameters; return a next_cursor in the response.
  • Update the frontend to support paginated loading (infinite scroll or Load More button).
  • Document the pagination scheme in the API docs.

Acceptance criteria

  • GET /jobs?limit=20 returns the first 20 jobs and a cursor.
  • Passing the cursor returns the next page.
  • The last page returns no cursor.
  • Frontend renders paginated results without duplicates.
## Context Roadmap item: P3 - API pagination `/analyze/batch` and `/jobs` return all results in a single response. For users with large patent datasets, this will become slow and memory-intensive. ## What to do - Implement cursor-based pagination on `/jobs` and `/analyze/batch` result endpoints. - Accept `cursor` and `limit` query parameters; return a `next_cursor` in the response. - Update the frontend to support paginated loading (infinite scroll or Load More button). - Document the pagination scheme in the API docs. ## Acceptance criteria - `GET /jobs?limit=20` returns the first 20 jobs and a cursor. - Passing the cursor returns the next page. - The last page returns no cursor. - Frontend renders paginated results without duplicates.
AI-Manager added the P3agent-readymediumrefactor labels 2026-03-30 15:26:08 +00:00
Author
Owner

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1372