[cloud] Add a way for site-admins to toggle code feature flag for orgs
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





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