Skip to content

sudo flag to disable cloud editing - #9844

Open
pjain1 wants to merge 1 commit into
mainfrom
sudo_cloud_editing_flag
Open

sudo flag to disable cloud editing#9844
pjain1 wants to merge 1 commit into
mainfrom
sudo_cloud_editing_flag

Conversation

@pjain1

@pjain1 pjain1 commented Aug 31, 2026

Copy link
Copy Markdown
Member

Usage:

  # Hide cloud editing UI
  rill sudo project edit <org> <project> --cloud-editing-disabled

  # Clear the override
  rill sudo project edit <org> <project> --cloud-editing-disabled=false

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an admin override to hide cloud editing UI regardless of project feature configuration.

Changes:

  • Adds the --cloud-editing-disabled sudo flag.
  • Resolves the override through project annotations.
  • Tests annotation parsing and snake/camel-case flags.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
runtime/feature_flags.go Applies the annotation override.
runtime/feature_flags_test.go Tests override behavior.
cli/cmd/sudo/project/edit.go Adds the sudo CLI flag and annotation update.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +93 to +97
updatedAnnotations, err := client.SudoUpdateAnnotations(ctx, &adminv1.SudoUpdateAnnotationsRequest{
Org: args[0],
Project: args[1],
Annotations: annotations,
})
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.

2 participants