Replace viper with koanf (#4845)

* Migrate to koanf
* Use temp logger for crashes before config is initialised
* Remove snake case hacks
* Add migration for config file keys
* Add migration note for new migration
* Renamed viper functions
* Remove front-end viper workaround
* Correctly default scan options
This commit is contained in:
WithoutPants
2024-05-21 11:24:47 +10:00
committed by GitHub
parent 0fa71be697
commit bfc60bb23f
17 changed files with 594 additions and 437 deletions

View File

@@ -354,15 +354,19 @@ type Mutation {
input: ConfigDefaultSettingsInput!
): ConfigDefaultSettingsResult!
# overwrites the entire plugin configuration for the given plugin
"overwrites the entire plugin configuration for the given plugin"
configurePlugin(plugin_id: ID!, input: Map!): Map!
# overwrites the UI configuration
# if input is provided, then the entire UI configuration is replaced
# if partial is provided, then the partial UI configuration is merged into the existing UI configuration
"""
overwrites the UI configuration
if input is provided, then the entire UI configuration is replaced
if partial is provided, then the partial UI configuration is merged into the existing UI configuration
"""
configureUI(input: Map, partial: Map): Map!
# sets a single UI key value
# key is a dot separated path to the value
"""
sets a single UI key value
key is a dot separated path to the value
"""
configureUISetting(key: String!, value: Any): Map!
"Generate and set (or clear) API key"