mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:51:50 +00:00
* Enable Campaigns by default (with write-access only for admins) This fixes https://github.com/sourcegraph/sourcegraph/issues/10713 by deprecating all the previous feature flags related to campaigns and replacing them with `campaigns.enabled: Boolean`. By default, the value of `campaigns.enabled` is true so that campaigns are enabled for everybody, including non-site-admins. But, in order to allow us to safely merge this while we're still working on campaigns, I left in the safety switch that prohibits users from creating changeset specs and campaign specs. That means: - By default site-admins can create/manage/view campaigns - By default all users can view campaigns When `campaigns.enabled` is set to `false`: - site-admins cannot create/manage/view campaigns - users cannot view campaigns In order to then allow users to create/manage campaigns, all we need to do is to remove the two checks in `CreateChangesetSpec`/`CreateCampaignSpec` in `campaigns/resolvers/resolver.go`. The checks also have tests that can be removed. * Adjust frontend parts * Fix doc and changelog * Fix changelog * Remove duplicate paragraph * Update CHANGELOG.md Co-authored-by: Adam Harvey <aharvey@sourcegraph.com> * Update doc/user/campaigns/managing_access.md Co-authored-by: Adam Harvey <aharvey@sourcegraph.com> * Update enterprise/internal/campaigns/resolvers/resolver.go Co-authored-by: Adam Harvey <aharvey@sourcegraph.com> * Re-add a missing error check * Apply suggestions from code review Co-authored-by: Adam Harvey <aharvey@sourcegraph.com> * Fix frontend build after rebase Co-authored-by: Erik Seliger <erikseliger@me.com> Co-authored-by: Adam Harvey <aharvey@sourcegraph.com>
14 lines
298 B
JSON
14 lines
298 B
JSON
// The Sourcegraph site configuration for development servers.
|
|
{
|
|
"externalURL": "http://localhost:3080",
|
|
"disablePublicRepoRedirects": true,
|
|
"repoListUpdateInterval": 1,
|
|
"update.channel": "release",
|
|
"auth.providers": [
|
|
{
|
|
"type": "builtin",
|
|
"allowSignup": true
|
|
}
|
|
]
|
|
}
|