Dashboards: Variables - Improve slow template variable loading due same variable loaded multiple times on time range change (#66965)

This commit is contained in:
Alexa V
2023-06-06 16:12:09 +03:00
committed by GitHub
parent e770bd6cd1
commit 07dd90b5a8
8 changed files with 366 additions and 20 deletions

View File

@@ -474,6 +474,12 @@ var (
RequiresDevMode: true,
Owner: grafanaAuthnzSquad,
},
{
Name: "refactorVariablesTimeRange",
Description: "Refactor time range variables flow to reduce number of API calls made when query variables are chained",
State: FeatureStateBeta,
Owner: grafanaDashboardsSquad,
},
{
Name: "useCachingService",
Description: "When turned on, the new query and resource caching implementation using a wire service inject will be used in place of the previous middleware implementation",

View File

@@ -69,6 +69,7 @@ unifiedRequestLog,alpha,@grafana/backend-platform,false,false,false,false
renderAuthJWT,beta,@grafana/grafana-as-code,false,false,false,false
pyroscopeFlameGraph,alpha,@grafana/observability-traces-and-profiling,false,false,false,false
externalServiceAuth,alpha,@grafana/grafana-authnz-team,true,false,false,false
refactorVariablesTimeRange,beta,@grafana/dashboards-squad,false,false,false,false
useCachingService,stable,@grafana/grafana-operator-experience-squad,false,false,true,false
enableElasticsearchBackendQuerying,beta,@grafana/observability-logs,false,false,false,false
authenticationConfigUI,alpha,@grafana/grafana-authnz-team,false,false,false,false
1 Name State Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
69 renderAuthJWT beta @grafana/grafana-as-code false false false false
70 pyroscopeFlameGraph alpha @grafana/observability-traces-and-profiling false false false false
71 externalServiceAuth alpha @grafana/grafana-authnz-team true false false false
72 refactorVariablesTimeRange beta @grafana/dashboards-squad false false false false
73 useCachingService stable @grafana/grafana-operator-experience-squad false false true false
74 enableElasticsearchBackendQuerying beta @grafana/observability-logs false false false false
75 authenticationConfigUI alpha @grafana/grafana-authnz-team false false false false

View File

@@ -287,6 +287,10 @@ const (
// Starts an OAuth2 authentication provider for external services
FlagExternalServiceAuth = "externalServiceAuth"
// FlagRefactorVariablesTimeRange
// Refactor time range variables flow to reduce number of API calls made when query variables are chained
FlagRefactorVariablesTimeRange = "refactorVariablesTimeRange"
// FlagUseCachingService
// When turned on, the new query and resource caching implementation using a wire service inject will be used in place of the previous middleware implementation
FlagUseCachingService = "useCachingService"