Skip to content

[cloud] Add a way for site-admins to toggle code feature flag for orgs

Administrator requested to merge CLOUD-166 into main

Created by: kopancek

Description

This allows organizations to access code host connections and repositories features in the org settings.

Related Jira issue

https://sourcegraph.atlassian.net/browse/CLOUD-166

Screenshots

Screenshot 2021-12-21 at 14 11 19 Screenshot 2021-12-21 at 14 11 27 Screenshot 2021-12-21 at 14 12 18 Screenshot 2021-12-21 at 14 11 54 Screenshot 2021-12-21 at 14 11 40

Testing locally

  1. Run sg in dotcom mode: EXTSVC_CONFIG_ALLOW_EDITS=true sg start dotcom
  2. Make sure you have a feature flag defined: org-code feature flag with a default value of false
  3. Create an organization
  4. Go to org settings page - code host connections and repositories should not be visible
  5. Go to Site admin -> Organizations, click on Enable early access
  6. Type in the name of the organization and click on Enable
  7. Success message should appear
  8. Go back to org settings page - code host connections and repositories should be visible

Merge request reports

Loading