grafana/pkg/setting
Joan López de la Franca Beltran c41b08bd59
Settings: Encapsulate settings within an extensible provider (#32219)
* Encapsulate settings with a provider with support for runtime reloads

* SettingsProvider: reload is controlled by the services

* naive impl of reload handlers for settings

* working naive detection on new changes

* Trigger settings reload from API endpoint

* validation step added

* validation of settings

* Fix linting errors

* Replace DB_Varchar by DB_NVarchar

* Reduce settings columns (section, key) lenghts

* wip db update logic

* Db Settings: separate updates and removals

* Fix: removes incorrectly added code

* Minor code improvements

* Runtime settings: moved oss -> ee

* Remove no longer used setting.Cfg SAML-related fields

* Rename file setting/settings.go => setting/provider.go

* Apply suggestions from code review

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Minor code improvements on OSS settings provider

* Fix some login API tests

* Correct some GoDoc comments

* Apply suggestions from code review

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

Co-authored-by: Leonard Gram <leo@xlson.com>
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2021-04-28 11:26:58 +02:00
..
testdata Config: Show user-friendly error message instead of stack trace (#16564) 2019-04-25 08:29:07 +02:00
date_formats_test.go setting: Fix tests on Mac (#28886) 2020-11-09 14:39:56 +01:00
date_formats.go setting: Fix tests on Mac (#28886) 2020-11-09 14:39:56 +01:00
dynamic_settings_test.go Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
expanders_test.go Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
expanders.go Security: Add gosec G304 auditing annotations (#29578) 2020-12-03 22:13:06 +01:00
provider.go Settings: Encapsulate settings within an extensible provider (#32219) 2021-04-28 11:26:58 +02:00
setting_oauth.go OAuth: Add optional strict parsing of role_attribute_path (#28021) 2021-04-14 15:14:27 -04:00
setting_plugins_test.go Backend Plugins: Plugin configuration using Grafana config (#23451) 2020-04-14 18:04:27 +02:00
setting_plugins.go Backend Plugins: Plugin configuration using Grafana config (#23451) 2020-04-14 18:04:27 +02:00
setting_quota.go Move middleware context handler logic to service (#29605) 2020-12-11 11:44:44 +01:00
setting_sentry.go Logging: rate limit fronted logging endpoint (#29272) 2020-12-09 16:22:24 +01:00
setting_session_test.go pkg/setting: Check errors (#19838) 2019-10-22 16:17:49 +02:00
setting_smtp.go Email Notifications: Add StartTLSPolicy config flag (#24574) 2020-05-13 16:33:40 +02:00
setting_test.go CDN: Fixes cdn path when Grafana is under sub path (#30822) 2021-02-02 12:34:59 +01:00
setting.go Settings: Encapsulate settings within an extensible provider (#32219) 2021-04-28 11:26:58 +02:00