Repository navigation
Conversation
The live spec now pages `GET /v1/organizations/{organizationId}/roles`
with `limit` and `cursor` and returns `limit` and `nextCursor`.
`organization_roles_get_list` takes both as optional arguments; the CLI
passes `None, None`, so its request is unchanged.
Refs #1482
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1482. API PR 1 of 2, stacked on #1479 (top of the #1466 stack). CLI exposure follows in #1484.
clickhouse_cloud_openapi.jsonto the live spec.organization_roles_get_listtakeslimit: Option<i64>andcursor: Option<&str>: the API now pages roles (at most 250 per page, ordered by role ID,nextCursorwhile more remain). Thelimit/nextCursorenvelope fields already existed onApiResponse.CHANGELOG.md. PassNone, Noneto send the same request as before.tests/client/rbac.rswiremock tests (the first for this module), mapped to no live suite in the classifier.list_all_org_roleshelper; the pre-create step uses a page size of 1, so the live run walks the cursor.None, None, so the request is unchanged.spec_coverage_testis expected to fail here; its failures list only the Postgres private endpoint drift.🤖 Generated with Claude Code
Note
Medium Risk
Breaking signature change for
organization_roles_get_list; large OpenAPI refresh may carry additional generated-model drift beyond the roles pagination work.Overview
Refreshes
clickhouse_cloud_openapi.jsonto match the live ClickHouse Cloud spec (including Postgres private-endpoint operations/schemas and assorted doc fixes). The functional Rust-facing change is pagination on list organization roles.Breaking:
organization_roles_get_listnow takeslimit: Option<i64>andcursor: Option<&str>after the organization ID, sendinglimit/cursorquery params when set. Responses exposelimitandnext_cursoron the existingApiResponseenvelope (max 250 roles per page, ordered by role ID). Callers should passNone, Nonefor unchanged default requests, or follownext_cursorfor full lists.A new
list_all_org_rolestest helper walks cursors; integration org tests andclickhousectlare updated accordingly. Wiremock coverage lives in newtests/client/rbac.rs.Reviewed by Cursor Bugbot for commit 03c49c3. Bugbot is set up for automated code reviews on this repo. Configure here.