UI Settings should have a getWithInternal
method
#12047
Labels
enhancement
New value added to drive a business result
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Currently, all the methods in
src/ui/settings/index.js
require areq
object to be passed in. There are times when we need to get or set a uiSetting outside of a request, for example if we need to set it to a default at startup time for a plugin, or when we need a background task to read a setting value.It seems a
req
parameter is required because thegetUserProvided
method usescallWithRequest
internally: https://github.com/elastic/kibana/blob/v6.0.0-alpha1/src/ui/settings/index.js#L82There could be additional methods added to
src/ui/settings
that allow querying ES withcallWithInternalUser
that would work for reading UI Settings at plugin startup time, or in background tasks.cc @spalger @kjbekkelund @azasypkin
The text was updated successfully, but these errors were encountered: