[v10.0.x] Dashboards: Variables - Improve slow template variable loading due same variable loaded multiple times on time range change (#69641)

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2023-06-06 16:23:04 +03:00
committed by GitHub
co-authored by Alexa V
parent 2b8a416c51
commit 02411bc29f
8 changed files with 366 additions and 20 deletions
+6
View File
@@ -479,6 +479,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",
+1
View File
@@ -70,6 +70,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
70 renderAuthJWT beta @grafana/grafana-as-code false false false false
71 pyroscopeFlameGraph alpha @grafana/observability-traces-and-profiling false false false false
72 externalServiceAuth alpha @grafana/grafana-authnz-team true false false false
73 refactorVariablesTimeRange beta @grafana/dashboards-squad false false false false
74 useCachingService stable @grafana/grafana-operator-experience-squad false false true false
75 enableElasticsearchBackendQuerying beta @grafana/observability-logs false false false false
76 authenticationConfigUI alpha @grafana/grafana-authnz-team false false false false
+4
View File
@@ -291,6 +291,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"