grafana/pkg/util
Denis Vodopianov ce9ab6a89a
Add non-boolean feature flags support to the StaticProvider (#115085)
* initial commit

* add support of integerts

* finialise the static provider

* minor refactoring

* the rest

* revert:  the rest

* add new thiongs

* more tests added

* add ff parsing tests to check if types are handled correctly

* update tests according to recent changes

* address golint issues

* Update pkg/setting/setting_feature_toggles.go

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>

* fix rebase issues

* addressing review comments

* add test cases for enterprise

* handle enterprise cases

* minor refactoring to make api a bit easier to debug

* make test names a bit more precise

* fix linter

* add openfeature sdk to goleak ignore in testutil

* Remove only boolean check in ff gen tests

* add non-boolean types top the doc in default.ini and doc string in FeatureFlag type

* apply remarks, add docs to sample.ini

* reflect changes in feature flags in the public grafana configuration doc

* fix doc formatting

* apply suggestions to the doc file

---------

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2026-01-12 22:53:23 +01:00
..
cmd Packaging: Added deprecation warnings when running grafana-cli or grafana-server; the grafana command should be used instead. (#66976) 2023-04-20 19:51:50 +02:00
cmputil Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
debouncer Rebuild search indexes asynchronously (#111829) 2025-10-01 11:52:09 +02:00
errhttp wire up the ui to the new search api (#97866) 2024-12-19 13:21:48 -05:00
httpclient Replace usage of http.DefaultClient and http.DefaultTransport (#104135) 2025-05-09 13:26:39 -04:00
osutil Settings: Fix data race when dynamically overriding settings with environment variables (#81667) 2024-02-05 12:25:54 -03:00
proxyutil Plugins: Remove pkg/infra/fs, pkg/infra/tracing and pkg/infra/process dependencies from pkg/plugins (#115798) 2026-01-05 11:12:31 +00:00
retryer Database: Don't sleep 10ms before every request (#64832) 2023-03-27 11:17:05 +02:00
ring Unified Storage: added pkg/util/ring package to handle queueing of notifications (#84657) 2024-04-11 19:32:31 -03:00
scheduler feat(scheduler): add metric for time spend in queue (#109346) 2025-08-07 19:56:17 +00:00
sqlite Sqlite: Increase busy_timeout to 7.5s for non-cgo driver (#111883) 2025-10-01 18:18:44 +02:00
testutil Add non-boolean feature flags support to the StaticProvider (#115085) 2026-01-12 22:53:23 +01:00
xorm fix(unified): in-proc SQLite data migration (#114537) 2025-11-28 13:13:35 +01:00
contextutil.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
contextutil_test.go Chore: Add context util that allow to provide cause of cancellation (#53918) 2022-08-24 10:24:41 -04:00
encoding.go Crypto: Use crypto/pbkdf2 instead of x (#106474) 2025-06-10 14:48:44 +02:00
encoding_test.go Utils: Reimplement util.GetRandomString to avoid modulo bias (#64481) 2023-04-20 10:24:02 -04:00
encryption.go Crypto: Use crypto/pbkdf2 instead of x (#106474) 2025-06-10 14:48:44 +02:00
encryption_test.go
interface.go Provisioning: Remove again dependency cycle between provisioning app and grafana (#110863) 2025-09-10 14:40:44 +02:00
interface_test.go Provisioning: Remove again dependency cycle between provisioning app and grafana (#110863) 2025-09-10 14:40:44 +02:00
ip_address.go Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
ip_address_test.go
json.go Auth: Replace jmespath/go-jmespath with jmespath-community/go-jmespath (#94203) 2024-10-03 15:43:15 +02:00
json_test.go Auth: Replace jmespath/go-jmespath with jmespath-community/go-jmespath (#94203) 2024-10-03 15:43:15 +02:00
md5.go
md5_test.go
pointer.go Chore: Remove xorcare/pointer dependency (#63900) 2023-03-06 05:23:15 -05:00
reverse.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
reverse_test.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
shortid_generator.go Repurpose wrong datasource UID feature flag (#89363) 2024-06-20 12:56:39 +02:00
shortid_generator_race_test.go Hackaton: Add more unit tests, take 4 (#101704) 2025-03-07 14:06:47 +01:00
shortid_generator_test.go ShortURL: Avoid teris-io/shortid (#110456) 2025-09-02 17:01:20 +00:00
split_email.go
split_email_test.go
strings.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
strings_test.go Util: Support parsing and splitting strings enclosed in quotes in util.SplitString (#85735) 2024-04-09 10:35:57 +02:00
svg.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
svg_test.go CI: Bump golangci-lint to 2.0.2 (#103572) 2025-04-10 14:42:23 +02:00
tls.go chore(perf): Pre-allocate where possible (enable prealloc linter) (#88952) 2024-06-14 14:16:36 -04:00
tls_test.go HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
uri_sanitize.go Chore: Remove sensitive information from presigned URLs prior to logging (#87035) 2024-06-24 14:53:42 +02:00
uri_sanitize_test.go Chore: Remove sensitive information from presigned URLs prior to logging (#87035) 2024-06-24 14:53:42 +02:00
url.go
url_test.go
validation.go
validation_test.go