From c088f2be5068032b674c99a4cfe50eab8a5b0f0e Mon Sep 17 00:00:00 2001 From: Marcos Vinicius Date: Tue, 20 Sep 2022 06:34:07 -0300 Subject: [PATCH] Elasticsearch: Rename public/app/plugins/datasource/elasticsearch/language_provider.ts to follow convention (#55430) --- .betterer.results | 12 ++++++------ ...age_provider.test.ts => LanguageProvider.test.ts} | 2 +- .../{language_provider.ts => LanguageProvider.ts} | 0 .../plugins/datasource/elasticsearch/datasource.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename public/app/plugins/datasource/elasticsearch/{language_provider.test.ts => LanguageProvider.test.ts} (97%) rename public/app/plugins/datasource/elasticsearch/{language_provider.ts => LanguageProvider.ts} (100%) diff --git a/.betterer.results b/.betterer.results index d843f462f1c..f8c40592b7b 100644 --- a/.betterer.results +++ b/.betterer.results @@ -6016,6 +6016,12 @@ exports[`better eslint`] = { [0, 0, 0, "Do not use any type assertions.", "0"], [0, 0, 0, "Do not use any type assertions.", "1"] ], + "public/app/plugins/datasource/elasticsearch/LanguageProvider.ts:5381": [ + [0, 0, 0, "Unexpected any. Specify a different type.", "0"], + [0, 0, 0, "Unexpected any. Specify a different type.", "1"], + [0, 0, 0, "Unexpected any. Specify a different type.", "2"], + [0, 0, 0, "Unexpected any. Specify a different type.", "3"] + ], "public/app/plugins/datasource/elasticsearch/components/AddRemove.tsx:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"] ], @@ -6145,12 +6151,6 @@ exports[`better eslint`] = { "public/app/plugins/datasource/elasticsearch/hooks/useStatelessReducer.ts:5381": [ [0, 0, 0, "Do not use any type assertions.", "0"] ], - "public/app/plugins/datasource/elasticsearch/language_provider.ts:5381": [ - [0, 0, 0, "Unexpected any. Specify a different type.", "0"], - [0, 0, 0, "Unexpected any. Specify a different type.", "1"], - [0, 0, 0, "Unexpected any. Specify a different type.", "2"], - [0, 0, 0, "Unexpected any. Specify a different type.", "3"] - ], "public/app/plugins/datasource/elasticsearch/query_builder.ts:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"], [0, 0, 0, "Unexpected any. Specify a different type.", "1"], diff --git a/public/app/plugins/datasource/elasticsearch/language_provider.test.ts b/public/app/plugins/datasource/elasticsearch/LanguageProvider.test.ts similarity index 97% rename from public/app/plugins/datasource/elasticsearch/language_provider.test.ts rename to public/app/plugins/datasource/elasticsearch/LanguageProvider.test.ts index bec0702d7c1..c80b773ab65 100644 --- a/public/app/plugins/datasource/elasticsearch/language_provider.test.ts +++ b/public/app/plugins/datasource/elasticsearch/LanguageProvider.test.ts @@ -2,8 +2,8 @@ import { AbstractLabelOperator, AbstractQuery } from '@grafana/data'; import { TemplateSrv } from '../../../features/templating/template_srv'; +import LanguageProvider from './LanguageProvider'; import { ElasticDatasource } from './datasource'; -import LanguageProvider from './language_provider'; import { createElasticDatasource } from './mocks'; import { ElasticsearchQuery } from './types'; diff --git a/public/app/plugins/datasource/elasticsearch/language_provider.ts b/public/app/plugins/datasource/elasticsearch/LanguageProvider.ts similarity index 100% rename from public/app/plugins/datasource/elasticsearch/language_provider.ts rename to public/app/plugins/datasource/elasticsearch/LanguageProvider.ts diff --git a/public/app/plugins/datasource/elasticsearch/datasource.ts b/public/app/plugins/datasource/elasticsearch/datasource.ts index 8e3c9697c03..43eb22838e1 100644 --- a/public/app/plugins/datasource/elasticsearch/datasource.ts +++ b/public/app/plugins/datasource/elasticsearch/datasource.ts @@ -33,6 +33,7 @@ import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_sr import { RowContextOptions } from '../../../features/logs/components/LogRowContextProvider'; +import LanguageProvider from './LanguageProvider'; import { ElasticsearchAnnotationsQueryEditor } from './components/QueryEditor/AnnotationQueryEditor'; import { BucketAggregation, @@ -47,7 +48,6 @@ import { import { metricAggregationConfig } from './components/QueryEditor/MetricAggregationsEditor/utils'; import { ElasticResponse } from './elastic_response'; import { IndexPattern } from './index_pattern'; -import LanguageProvider from './language_provider'; import { ElasticQueryBuilder } from './query_builder'; import { defaultBucketAgg, hasMetricOfType } from './query_def'; import { DataLinkConfig, ElasticsearchOptions, ElasticsearchQuery, TermsQuery } from './types';