Explore: Fix time interpolation (#46737)

* Ensure TemplateService is updated with new time range on each time range change.

* Fix linting errors

* Fix explorePane.test.ts

* Reuse createDefaultInitialState

* Remove unused imports

* Add a test for left/right split

* Silence console.error in tests

* Silence console.error in tests
This commit is contained in:
Piotr Jamróz
2022-03-29 15:10:40 +02:00
committed by GitHub
parent 562397ff8b
commit bf977ac245
12 changed files with 174 additions and 77 deletions
@@ -1,4 +1,4 @@
import { ScopedVars, VariableModel } from '@grafana/data';
import { ScopedVars, TimeRange, VariableModel } from '@grafana/data';
import { variableRegex } from '../variables/utils';
import { TemplateSrv } from '@grafana/runtime';
@@ -55,4 +55,6 @@ export class TemplateSrvMock implements TemplateSrv {
const match = this.regex.exec(target);
return match !== null;
}
updateTimeRange(timeRange: TimeRange) {}
}