Skip to content

fix(cli): follow every page of the organization role list (#1484) - #1488

Open
sdairs wants to merge 1 commit into
claude/drift-1482-api-postgres-private-endpointfrom
claude/drift-1482-cli-roles
Open

sdairs wants to merge 1 commit into
claude/drift-1482-api-postgres-private-endpointfrom
claude/drift-1482-cli-roles

Conversation

@sdairs

@sdairs sdairs commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #1484. CLI PR for the roles part of #1482, stacked on the Postgres private endpoint API PR.

  • CloudClient::list_organization_roles follows nextCursor through collect_cursor_pages. This applies to both cloud org role list and role name lookups, so both stay complete for organizations with more than 250 roles. A repeated cursor fails, as for other paged lists.
  • No new flags: the command has always printed the whole list, and pages are large.
  • Tests: one subprocess test pages twice, for role list (JSON order) and for role get --name on a role from the second page.

🤖 Generated with Claude Code


Note

Low Risk
Read-path pagination fix in the CLI client, aligned with existing org-list behavior; no auth or write-path changes.

Overview
Organization role listing now walks the API’s nextCursor via the shared collect_cursor_pages helper instead of returning only the first page. That fixes incomplete output for cloud org role list and for org role get --name (and other name-based selectors) when a role sits beyond the first page—e.g. orgs with more than 250 roles.

A subprocess test mocks two list pages and asserts merged JSON order for role list, plus successful name lookup for a role on page two.

Reviewed by Cursor Bugbot for commit 22eb228. Bugbot is set up for automated code reviews on this repo. Configure here.

The API now pages the role list. `cloud org role list` and role name
lookups read every page, so the output and lookups stay complete.

Fixes #1484

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sdairs
sdairs requested a review from iskakaushik as a code owner November 17, 2026 17:08
@sdairs
sdairs added this pull request to stack #1483 November 17, 2026 17:08

This branch has not been deployed

No deployments
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.

cloud org role list: follow role list pages

1 participant