Skip to content

Batch internal user list requests - #1390

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-21080-cursor-automated-triage-response-afa8
Draft

Batch internal user list requests#1390
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-21080-cursor-automated-triage-response-afa8

Conversation

@cursor

@cursor cursor Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Adds a 5,000-record page size for Copilot internal-user list calls.
  • Updates CopilotAPI._getInternalUsers so requests above that page size are fetched with nextToken pagination instead of sending the full 15,000 assignee limit to Copilot in one request.
  • Adds focused Jest coverage for single-page, multi-page, and caller-provided cursor behavior.

Testing Criteria

  • yarn test src/utils/CopilotAPI.test.ts --runInBand
  • yarn prettier --check src/utils/CopilotAPI.test.ts src/utils/CopilotAPI.ts src/constants/users.ts
  • yarn lint:check (passes with existing React hook/compiler warnings)
  • yarn tsc (fails only on the pre-existing SVG module declaration errors in src/icons/index.ts)

Notes

  • Linear MCP reads/comments returned 401, so direct Sentry attachment metadata was unavailable. The issue is in Triage per trigger metadata, and the title maps to the Tasks CopilotAPI#_getInternalUsers route path.

Impact & Surface Area of Change

  • Affects Tasks API paths that list assignees/internal users via CopilotAPI.getInternalUsers, especially /api/users?limit=15000 used by assignee fetching.
  • Intended behavior is unchanged for requests at or below 5,000 users; larger requests now fan out into bounded Copilot API pages.
Open in Web View Automation 

Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code

linear-code Bot commented Jul 12, 2026

Copy link
Copy Markdown

POR-21080

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview, Comment Jul 12, 2026 5:36pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant