OpenFeature: Add context attributes to frontend settings (#112105)
* Update targeting key to namespace * Pass eval ctx attributes to frontend * Add context config to the frontend * Fix OF namespace not defined in e2e tests * Set default namespace and targeting key * remove e2e server config now that namespace is default --------- Co-authored-by: joshhunt <josh.hunt@grafana.com>
This commit is contained in:
@@ -305,6 +305,7 @@ type FrontendSettingsDTO struct {
|
||||
|
||||
LocalFileSystemAvailable bool `json:"localFileSystemAvailable"`
|
||||
// Experimental Scope settings
|
||||
ListScopesEndpoint string `json:"listScopesEndpoint"`
|
||||
ListDashboardScopesEndpoint string `json:"listDashboardScopesEndpoint"`
|
||||
ListScopesEndpoint string `json:"listScopesEndpoint"`
|
||||
ListDashboardScopesEndpoint string `json:"listDashboardScopesEndpoint"`
|
||||
OpenFeatureContext map[string]string `json:"openFeatureContext"`
|
||||
}
|
||||
|
||||
@@ -350,6 +350,7 @@ func (hs *HTTPServer) getFrontendSettings(c *contextmodel.ReqContext) (*dtos.Fro
|
||||
MaxIdleConns: hs.Cfg.SqlDatasourceMaxIdleConnsDefault,
|
||||
ConnMaxLifetime: hs.Cfg.SqlDatasourceMaxConnLifetimeDefault,
|
||||
},
|
||||
OpenFeatureContext: hs.Cfg.OpenFeature.ContextAttrs,
|
||||
}
|
||||
|
||||
if hs.Cfg.UnifiedAlerting.StateHistory.Enabled {
|
||||
|
||||
Reference in New Issue
Block a user