mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Rename influxql query builder and metadata request files (#69549)
* Move useUniqueId to a general place * Use new built-in useId hook * Rename query builder and metadata query * Move and rename the query builder tests
This commit is contained in:
@@ -3,12 +3,12 @@ import userEvent from '@testing-library/user-event';
|
||||
import React from 'react';
|
||||
|
||||
import InfluxDatasource from '../../datasource';
|
||||
import * as mockedMeta from '../../influxQLMetadataQuery';
|
||||
import * as mockedMeta from '../../influxql_metadata_query';
|
||||
import { InfluxQuery } from '../../types';
|
||||
|
||||
import { Editor } from './Editor';
|
||||
|
||||
jest.mock('../../influxQLMetadataQuery', () => {
|
||||
jest.mock('../../influxql_metadata_query', () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
getAllPolicies: jest.fn().mockReturnValueOnce(Promise.resolve(['default', 'autogen'])),
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
getFieldKeysForMeasurement,
|
||||
getTagKeysForMeasurementAndTags,
|
||||
getTagValues,
|
||||
} from '../../influxQLMetadataQuery';
|
||||
} from '../../influxql_metadata_query';
|
||||
import {
|
||||
addNewGroupByPart,
|
||||
addNewSelectPart,
|
||||
|
||||
@@ -32,12 +32,12 @@ import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_sr
|
||||
import { AnnotationEditor } from './components/AnnotationEditor';
|
||||
import { FluxQueryEditor } from './components/FluxQueryEditor';
|
||||
import { BROWSER_MODE_DISABLED_MESSAGE } from './constants';
|
||||
import { getAllPolicies } from './influxQLMetadataQuery';
|
||||
import InfluxQueryModel from './influx_query_model';
|
||||
import InfluxSeries from './influx_series';
|
||||
import { getAllPolicies } from './influxql_metadata_query';
|
||||
import { InfluxQueryBuilder } from './influxql_query_builder';
|
||||
import { prepareAnnotation } from './migrations';
|
||||
import { buildRawQuery, replaceHardCodedRetentionPolicy } from './queryUtils';
|
||||
import { InfluxQueryBuilder } from './query_builder';
|
||||
import ResponseParser from './response_parser';
|
||||
import { InfluxOptions, InfluxQuery, InfluxVersion } from './types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import InfluxDatasource from './datasource';
|
||||
import { InfluxQueryBuilder } from './influxql_query_builder';
|
||||
import { replaceHardCodedRetentionPolicy } from './queryUtils';
|
||||
import { InfluxQueryBuilder } from './query_builder';
|
||||
import { InfluxQueryTag } from './types';
|
||||
|
||||
const runExploreQuery = (
|
||||
@@ -1,4 +1,4 @@
|
||||
import { InfluxQueryBuilder } from '../query_builder';
|
||||
import { InfluxQueryBuilder } from './influxql_query_builder';
|
||||
|
||||
describe('InfluxQueryBuilder', () => {
|
||||
describe('when building explore queries', () => {
|
||||
Reference in New Issue
Block a user