[pull] master from cube-js:master - #670
Merged
Merged
Conversation
#11433) * feat(cube-cli): add data-model enable-branch / disable-branch commands Expose the per-branch staging-environment toggle (Settings → Staging Environments in the UI) through the CLI, so keeping a shared branch's staging environment always active can be scripted from CI: cube data-model enable-branch DEPLOYMENT_ID BRANCH cube data-model disable-branch DEPLOYMENT_ID BRANCH Both call the new `PUT /build/api/v1/deployments/{id}/branches/staging-environment` endpoint with `{ branchName, enabled }`, mirroring how `embed enable-dashboard` / `disable-dashboard` drive their boolean endpoint. `data-model branches` now reports the state as an ENABLED column. Its previous DEFAULT / CURRENT columns read `isDefault` / `isCurrent`, which the branches endpoint does not return, so they always rendered empty; they are replaced with PARENT and ENABLED, which it does return. Docs: CLI reference (command table + Git-workflow section), the new endpoint in the Control Plane API reference, and a pointer from the staging-environments section of the deployment-environments page. * docs(cube-cli): fix the staging-env doc comment and drop legacy naming Review follow-ups on the enable-branch / disable-branch commands. `cube environments list` takes the deployment id as a required positional, so the doc comment's `cube environments list --type staging` would fail as written; the success message printed by the command already had it right. Spelled the argument in the doc comment too. `docs-mintlify/CLAUDE.md` lists "Cube Cloud" as legacy naming for new content. The docs added in this PR say "the Cube UI", but the `disable-branch` help string and the module doc still said "Cube Cloud" — and `--help` is user-facing, so it should match. Both now say "the Cube UI". --------- Co-authored-by: Claude <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )