mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Change import for CustomVariableModel and remove unnecessary import of initialCustomVariableModelState (#78456)
This commit is contained in:
parent
0119a9f0f2
commit
0e44438d08
@ -6,6 +6,7 @@ import {
|
|||||||
AbstractLabelOperator,
|
AbstractLabelOperator,
|
||||||
AnnotationQueryRequest,
|
AnnotationQueryRequest,
|
||||||
CoreApp,
|
CoreApp,
|
||||||
|
CustomVariableModel,
|
||||||
DataFrame,
|
DataFrame,
|
||||||
dataFrameToJSON,
|
dataFrameToJSON,
|
||||||
DataQueryResponse,
|
DataQueryResponse,
|
||||||
@ -26,9 +27,6 @@ import {
|
|||||||
TemplateSrv,
|
TemplateSrv,
|
||||||
} from '@grafana/runtime';
|
} from '@grafana/runtime';
|
||||||
|
|
||||||
import { initialCustomVariableModelState } from '../../../features/variables/custom/reducer';
|
|
||||||
import { CustomVariableModel } from '../../../features/variables/types';
|
|
||||||
|
|
||||||
import { LokiDatasource, REF_ID_DATA_SAMPLES } from './datasource';
|
import { LokiDatasource, REF_ID_DATA_SAMPLES } from './datasource';
|
||||||
import { createLokiDatasource, createMetadataRequest } from './mocks';
|
import { createLokiDatasource, createMetadataRequest } from './mocks';
|
||||||
import { runSplitQuery } from './querySplitting';
|
import { runSplitQuery } from './querySplitting';
|
||||||
@ -265,7 +263,7 @@ describe('LokiDatasource', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
ds = createLokiDatasource(templateSrvStub);
|
ds = createLokiDatasource(templateSrvStub);
|
||||||
variable = { ...initialCustomVariableModelState };
|
variable = {} as unknown as CustomVariableModel;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should only escape single quotes', () => {
|
it('should only escape single quotes', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user