Skip to main content

enable_workspaces

Function enable_workspaces 

Source
pub async fn enable_workspaces(o: &SetupOptions) -> Result<WorkspacesStatus>
Expand description

Turns Workspaces on for the organization, so sandboxes can be created in it. It is what chainctl develop init --parent ORG does for an existing organization, without chainctl. It needs the owner role, and does nothing if everything is already in place. The steps:

  1. Accept the terms. Only with accept_terms; without it, an organization with unaccepted terms gets Error::TermsNotAccepted listing them.
  2. Link a GitHub account, if the organization has none: the service requires one. This opens a browser on GitHub, where you choose the account, and waits for you to finish (up to 10 minutes). The Chainguard GitHub App must be installed on the account; if it is not, the error is Error::GitHubAppNotInstalled with the page to install it from.
  3. Turn the feature on with the plan’s allowance. This also turns on Chainguard Checks, which the same switch controls.