AI-131 add members mutation commands#1329
Open
thebiglabasky wants to merge 1 commit into
Open
Conversation
fb2fe68 to
8de0c01
Compare
8de0c01 to
eb80fd6
Compare
eb80fd6 to
198cfc2
Compare
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.
Summary
checkly members update <member> --role <role>for public account member role updates.checkly members delete <member>for public account member removal.<member>be either an email address or user ID. Email-like values are resolved through the account-scoped members list with an exact active-member email match;--emailand--idforce interpretation when needed.checkly account members ...spelling as hidden compatibility aliases.--forceand--dry-run, so agent/CI mode refuses to execute without explicit confirmation.Dependency
Depends on checkly/monorepo#2053 for the public
PATCHandDELETEaccount member endpoints.Backend model note
Checked the monorepo schema:
membershipsis unique on(userId, accountId), while there is no(accountId, email)membership uniqueness constraint. The CLI therefore resolves email by exact active-member email match from the current account's public list response, then calls the userId mutation endpoint.Validation
pnpm install(completed; emitted the expected simple-git-hooks warning for Codex worktree.gitfile)pnpm --filter checkly run clean:dist && pnpm --filter checkly run prepare:dist && pnpm --filter checkly run prepackpnpm exec eslint packages/cli/src/helpers/account-member-target.ts packages/cli/src/rest/account-members.ts packages/cli/src/commands/members.ts packages/cli/src/commands/members/update.ts packages/cli/src/commands/members/delete.ts packages/cli/src/commands/__tests__/account-members.spec.ts packages/cli/src/commands/__tests__/account-members-mutations.spec.ts packages/cli/src/commands/__tests__/command-metadata.spec.ts packages/cli/src/formatters/account-members.ts packages/cli/src/ai-context/context.tspnpm exec vitest --run src/commands/__tests__/account-members.spec.ts src/commands/__tests__/account-members-mutations.spec.ts src/commands/__tests__/command-metadata.spec.ts src/formatters/__tests__/account-members.spec.tscheckly members update,checkly members delete, and the legacycheckly account members ...alias.