mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
This fixes two small pain points with automated treatment of feature flags: 1) A user cannot add an override unless the feature flag has already been created and a default has been set. However, in all our code, we require the caller to specify a default if the feature flag doesn't exist, so this is not a necessary limitation. It's also particularly annoying because only site admins can create a feature flag. 2) In order to update an override, a user has to first fetch the override to see if it exists, then update it if it exists or create it if it doesn't. This modifies create to just overwrite if the override already exists. |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| cache.go | ||
| featureflag.go | ||
| flagset.go | ||
| memory_store.go | ||
| middleware_test.go | ||
| middleware.go | ||
| mocks_test.go | ||
| override_test.go | ||
| override.go | ||