sourcegraph/internal/featureflag
Camden Cheek 0ccc402ad3
Feature flags: relax some constraints (#61343)
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.
2024-03-25 10:39:01 -06:00
..
BUILD.bazel bump to Go 1.22.1 (#60902) 2024-03-06 17:38:43 -07:00
cache.go telemetry: init internal APIs and events cache store layer (#56520) 2023-09-19 21:53:42 -07:00
featureflag.go Feature flags: relax some constraints (#61343) 2024-03-25 10:39:01 -06:00
flagset.go usage-data: missing event cols (#39907) 2022-08-05 10:37:25 -07:00
memory_store.go featureflag: add MemoryStore for use in testing (#43945) 2022-11-04 14:39:51 +01:00
middleware_test.go bump to Go 1.22.1 (#60902) 2024-03-06 17:38:43 -07:00
middleware.go Chore: clean up dead code (#58280) 2023-11-14 14:29:03 -07:00
mocks_test.go chore: Update go-mockgen (#44305) 2022-11-11 19:24:00 +00:00
override_test.go web: Consolidate server and client side feature flag overrides (#57663) 2023-10-20 12:34:19 +02:00
override.go web: Consolidate server and client side feature flag overrides (#57663) 2023-10-20 12:34:19 +02:00