mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: turns on newVariables as a new default (#23272)
* Variables: turns on newVariables as default * Chore: adds default templating state * Some small refactorings to get the template_srv tests to get green when toggle is enabled by default. * Refactor: adds getVariables dependency to DashboardModel * Tests: fixes StackDriver tests * Tests: updates snapshots * Tests: updates snapshot for DashboardGrid.test.tsx * Tests: fixes DashboardModel.test.ts * fixed initDashboard tests. * renamed variable. * changed so we use the templating.list when running the migration work. * changed so we always returns the variables in sorted order. * Tests: fixed cloudwatch tests * added so we set the global template variable props. * Fixed tests and added moved logic to complete templateSrv variables. * removed unneccesary updateIndex. Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
This commit is contained in:
@@ -106,6 +106,7 @@ exports[`DashboardGrid Can render dashboard grid Should render 1`] = `
|
||||
},
|
||||
},
|
||||
"getVariables": [Function],
|
||||
"getVariablesFromState": [Function],
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
@@ -354,6 +355,7 @@ exports[`DashboardGrid Can render dashboard grid Should render 1`] = `
|
||||
},
|
||||
},
|
||||
"getVariables": [Function],
|
||||
"getVariablesFromState": [Function],
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
@@ -602,6 +604,7 @@ exports[`DashboardGrid Can render dashboard grid Should render 1`] = `
|
||||
},
|
||||
},
|
||||
"getVariables": [Function],
|
||||
"getVariablesFromState": [Function],
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
@@ -850,6 +853,7 @@ exports[`DashboardGrid Can render dashboard grid Should render 1`] = `
|
||||
},
|
||||
},
|
||||
"getVariables": [Function],
|
||||
"getVariablesFromState": [Function],
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
|
||||
Reference in New Issue
Block a user