From 1ffe858e0658fc5cd3b05d86080c91cef1979b9e Mon Sep 17 00:00:00 2001 From: TechVest <166724172+TechVest@users.noreply.github.com> Date: Wed, 17 Apr 2024 20:08:00 +0800 Subject: [PATCH] chore: remove repetitive words (#86412) Signed-off-by: TechVest --- conf/provisioning/alerting/sample.yaml | 2 +- devenv/docker/blocks/self-instrumentation/tempo.yaml | 2 +- devenv/docker/blocks/tempo/tempo.yaml | 2 +- .../terraform-provisioning/index.md | 4 ++-- docs/sources/panels-visualizations/_index.md | 2 +- packages/grafana-data/src/types/datasource.ts | 2 +- packages/grafana-data/src/types/logs.ts | 2 +- packages/grafana-data/src/types/select.ts | 2 +- .../src/components/VariableQueryEditor.test.tsx | 2 +- public/app/features/dashboard/state/DashboardMigrator.ts | 2 +- .../datasources/components/picker/DataSourceModal.test.tsx | 2 +- .../datasources/components/picker/DataSourcePicker.tsx | 2 +- .../app/features/explore/hooks/useStateSync/internal.utils.ts | 2 +- public/app/features/plugins/admin/state/actions.ts | 4 ++-- public/app/features/trails/TrailStore/TrailStore.ts | 2 +- public/app/features/trails/interactions.ts | 2 +- .../timeSeriesTable/timeSeriesTableTransformer.ts | 4 ++-- .../azuremonitor/azure_monitor/azure_monitor_datasource.ts | 2 +- .../app/plugins/datasource/azuremonitor/dashboards/adx.json | 2 +- public/app/plugins/datasource/dashboard/datasource.test.ts | 2 +- .../editor/query/influxql/hooks/useShadowedState.test.ts | 4 ++-- 21 files changed, 25 insertions(+), 25 deletions(-) diff --git a/conf/provisioning/alerting/sample.yaml b/conf/provisioning/alerting/sample.yaml index 51836f25b3f..e56095123b2 100644 --- a/conf/provisioning/alerting/sample.yaml +++ b/conf/provisioning/alerting/sample.yaml @@ -191,7 +191,7 @@ apiVersion: 1 # - orgID: 1 # # name of the template, must be unique # name: my_first_template -# # content of the the template +# # content of the template # template: Alerting with a custome text template # # List of templates that should be deleted diff --git a/devenv/docker/blocks/self-instrumentation/tempo.yaml b/devenv/docker/blocks/self-instrumentation/tempo.yaml index ad49ea13a58..acc5c1b8ea6 100644 --- a/devenv/docker/blocks/self-instrumentation/tempo.yaml +++ b/devenv/docker/blocks/self-instrumentation/tempo.yaml @@ -35,7 +35,7 @@ storage: trace: backend: local # backend configuration to use wal: - path: /tmp/tempo/wal # where to store the the wal locally + path: /tmp/tempo/wal # where to store the wal locally local: path: /tmp/tempo/blocks diff --git a/devenv/docker/blocks/tempo/tempo.yaml b/devenv/docker/blocks/tempo/tempo.yaml index f94d4ca96e7..7cfb1230a3f 100644 --- a/devenv/docker/blocks/tempo/tempo.yaml +++ b/devenv/docker/blocks/tempo/tempo.yaml @@ -44,7 +44,7 @@ storage: v2_index_downsample_bytes: 1000 # number of bytes per index record v2_encoding: zstd # block encoding/compression. options: none, gzip, lz4-64k, lz4-256k, lz4-1M, lz4, snappy, zstd, s2 wal: - path: /tmp/tempo/wal # where to store the the wal locally + path: /tmp/tempo/wal # where to store the wal locally v2_encoding: snappy # wal encoding/compression. options: none, gzip, lz4-64k, lz4-256k, lz4-1M, lz4, snappy, zstd, s2 local: path: /tmp/tempo/blocks diff --git a/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md b/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md index bfa4ee493c5..eeac8b1749f 100644 --- a/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md +++ b/docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md @@ -186,7 +186,7 @@ In this section, we'll create Terraform configurations for each alerting resourc To link the alert rule group with its respective data source and folder in this example, replace the following field values: - `` with the terraform name of the previously defined data source. - - `` with the terraform name of the the previously defined folder. + - `` with the terraform name of the previously defined folder. 1. Continue to add more Grafana resources or [use the Terraform CLI for provisioning](#provision-grafana-resources-with-terraform). @@ -312,7 +312,7 @@ Since the policy tree is a single resource, provisioning the `grafana_notificati To configure the mute timing and contact point previously created in the notification policy tree, replace the following field values: - `` with the terraform name of the previously defined contact point. - - `` with the terraform name of the the previously defined mute timing. + - `` with the terraform name of the previously defined mute timing. 1. Continue to add more Grafana resources or [use the Terraform CLI for provisioning](#provision-grafana-resources-with-terraform). diff --git a/docs/sources/panels-visualizations/_index.md b/docs/sources/panels-visualizations/_index.md index e0242f212ae..654b4b41096 100644 --- a/docs/sources/panels-visualizations/_index.md +++ b/docs/sources/panels-visualizations/_index.md @@ -41,7 +41,7 @@ cards: height: 24 - title: Configure standard options href: ./configure-standard-options/ - description: Learn about configuring standard options like units, field display names, and and colors. + description: Learn about configuring standard options like units, field display names, and colors. height: 24 - title: Query and transform data href: ./query-transform-data/ diff --git a/packages/grafana-data/src/types/datasource.ts b/packages/grafana-data/src/types/datasource.ts index f131a71c49e..1ed466bec02 100644 --- a/packages/grafana-data/src/types/datasource.ts +++ b/packages/grafana-data/src/types/datasource.ts @@ -587,7 +587,7 @@ export interface QueryFixAction { */ options?: KeyValue; /** - * An optional single row data frame containing the row that triggered the the QueryFixAction. + * An optional single row data frame containing the row that triggered the QueryFixAction. */ frame?: DataFrame; } diff --git a/packages/grafana-data/src/types/logs.ts b/packages/grafana-data/src/types/logs.ts index d9edfca6bc2..0124ffe98ac 100644 --- a/packages/grafana-data/src/types/logs.ts +++ b/packages/grafana-data/src/types/logs.ts @@ -55,7 +55,7 @@ export interface LogRowModel { // the same as rows final index when rendered. rowIndex: number; - // The value of the the dataframe's id field, if it exists + // The value of the dataframe's id field, if it exists rowId?: string; // Full DataFrame from which we parsed this log. diff --git a/packages/grafana-data/src/types/select.ts b/packages/grafana-data/src/types/select.ts index 56ea31a3e2c..0e46c04392b 100644 --- a/packages/grafana-data/src/types/select.ts +++ b/packages/grafana-data/src/types/select.ts @@ -7,7 +7,7 @@ export interface SelectableValue { value?: T; imgUrl?: string; icon?: string; - // Secondary text under the the title of the option. + // Secondary text under the title of the option. description?: string; // Adds a simple native title attribute to each option. title?: string; diff --git a/packages/grafana-prometheus/src/components/VariableQueryEditor.test.tsx b/packages/grafana-prometheus/src/components/VariableQueryEditor.test.tsx index 427066e9c41..70fc36a5173 100644 --- a/packages/grafana-prometheus/src/components/VariableQueryEditor.test.tsx +++ b/packages/grafana-prometheus/src/components/VariableQueryEditor.test.tsx @@ -196,7 +196,7 @@ describe('PromVariableQueryEditor', () => { }); }); - test('Calls onChange for label_names, label_values, metrics, query result and and classic query.', async () => { + test('Calls onChange for label_names, label_values, metrics, query result and classic query.', async () => { const onChange = jest.fn(); props.query = { diff --git a/public/app/features/dashboard/state/DashboardMigrator.ts b/public/app/features/dashboard/state/DashboardMigrator.ts index 7e4c7c5c2d6..8f88281836f 100644 --- a/public/app/features/dashboard/state/DashboardMigrator.ts +++ b/public/app/features/dashboard/state/DashboardMigrator.ts @@ -879,7 +879,7 @@ export class DashboardMigrator { let tableTransformOptions: TimeSeriesTableTransformerOptions = {}; // For each {refIdtoStat} record which maps refId to a statistic - // we add that to the stat property of the the new + // we add that to the stat property of the new // RefIdTransformerOptions interface which includes multiple settings for (const [refId, stat] of Object.entries(transformation.options.refIdToStat)) { let newSettings: RefIdTransformerOptions = {}; diff --git a/public/app/features/datasources/components/picker/DataSourceModal.test.tsx b/public/app/features/datasources/components/picker/DataSourceModal.test.tsx index 7d95388e3d7..1f6a622d660 100644 --- a/public/app/features/datasources/components/picker/DataSourceModal.test.tsx +++ b/public/app/features/datasources/components/picker/DataSourceModal.test.tsx @@ -98,7 +98,7 @@ describe('DataSourceDropdown', () => { expect(screen.queryAllByText('Configure a new data source')).toHaveLength(2); }); - it('only displays the file drop area when the the ff is enabled', async () => { + it('only displays the file drop area when the ff is enabled', async () => { const defaultValue = config.featureToggles.editPanelCSVDragAndDrop; config.featureToggles.editPanelCSVDragAndDrop = true; setup({ uploadFile: true }); diff --git a/public/app/features/datasources/components/picker/DataSourcePicker.tsx b/public/app/features/datasources/components/picker/DataSourcePicker.tsx index 0441eeb2ab7..994fcc67bcc 100644 --- a/public/app/features/datasources/components/picker/DataSourcePicker.tsx +++ b/public/app/features/datasources/components/picker/DataSourcePicker.tsx @@ -181,7 +181,7 @@ export function DataSourcePicker(props: DataSourcePickerProps) { if (e.shiftKey) { e.preventDefault(); markerElement?.focus(); - // When navigating forward, the dropdown closes and and the element next to the input element is focused. + // When navigating forward, the dropdown closes and the element next to the input element is focused. } else { onClose(); } diff --git a/public/app/features/explore/hooks/useStateSync/internal.utils.ts b/public/app/features/explore/hooks/useStateSync/internal.utils.ts index a600de5a03a..23b5059c884 100644 --- a/public/app/features/explore/hooks/useStateSync/internal.utils.ts +++ b/public/app/features/explore/hooks/useStateSync/internal.utils.ts @@ -40,7 +40,7 @@ export const urlDiff = ( /** * Returns the datasource that an explore pane should be using. * If the URL specifies a datasource and that datasource exists, it will be used unless said datasource is mixed. - * Otherwise the datasource will be extracted from the the first query specifying a valid datasource. + * Otherwise the datasource will be extracted from the first query specifying a valid datasource. * * If there's no datasource in the queries, the last used datasource will be used. * if there's no last used datasource, the default datasource will be used. diff --git a/public/app/features/plugins/admin/state/actions.ts b/public/app/features/plugins/admin/state/actions.ts index bff4b094b51..3c4c788c1c6 100644 --- a/public/app/features/plugins/admin/state/actions.ts +++ b/public/app/features/plugins/admin/state/actions.ts @@ -175,12 +175,12 @@ export const addPlugins = createAction(`${STATE_PREFIX}/addPlug // 1. gets remote equivalents from the store (if there are any) // 2. merges the remote equivalents with the local plugins -// 3. updates the the store with the updated CatalogPlugin objects +// 3. updates the store with the updated CatalogPlugin objects export const addLocalPlugins = createAction(`${STATE_PREFIX}/addLocalPlugins`); // 1. gets local equivalents from the store (if there are any) // 2. merges the local equivalents with the remote plugins -// 3. updates the the store with the updated CatalogPlugin objects +// 3. updates the store with the updated CatalogPlugin objects export const addRemotePlugins = createAction(`${STATE_PREFIX}/addLocalPlugins`); // 1. merges the local and remote plugins diff --git a/public/app/features/trails/TrailStore/TrailStore.ts b/public/app/features/trails/TrailStore/TrailStore.ts index 4b503c0bfc1..082a2a80099 100644 --- a/public/app/features/trails/TrailStore/TrailStore.ts +++ b/public/app/features/trails/TrailStore/TrailStore.ts @@ -57,7 +57,7 @@ export class TrailStore { } private _deserializeTrail(t: SerializedTrail): DataTrail { - // reconstruct the trail based on the the serialized history + // reconstruct the trail based on the serialized history const trail = new DataTrail({ createdAt: t.createdAt }); t.history.map((step) => { diff --git a/public/app/features/trails/interactions.ts b/public/app/features/trails/interactions.ts index 9e42b731380..1883299b07c 100644 --- a/public/app/features/trails/interactions.ts +++ b/public/app/features/trails/interactions.ts @@ -59,7 +59,7 @@ type Interactions = { // User clicks on history nodes to navigate exploration history history_step_clicked: { type: ( - // One of the the standard step types + // One of the standard step types | TrailStepType // The special metric step type that is created when the user de-selects the current metric | 'metric-clear' diff --git a/public/app/features/transformers/timeSeriesTable/timeSeriesTableTransformer.ts b/public/app/features/transformers/timeSeriesTable/timeSeriesTableTransformer.ts index dfc82b6c819..fc20a059fde 100644 --- a/public/app/features/transformers/timeSeriesTable/timeSeriesTableTransformer.ts +++ b/public/app/features/transformers/timeSeriesTable/timeSeriesTableTransformer.ts @@ -196,7 +196,7 @@ export function timeSeriesToTableTransform(options: TimeSeriesTableTransformerOp // Calculate the reduction of the current field // and push the frame with reduction - // into the the appropriate field + // into the appropriate field const reducerId = options[refId]?.stat ?? ReducerID.lastNotNull; const value = reduceField({ field, reducers: [reducerId] })[reducerId] ?? null; @@ -246,7 +246,7 @@ export function timeSeriesToTableTransform(options: TimeSeriesTableTransformerOp } } - // Add label fields to the the resulting frame + // Add label fields to the resulting frame for (const label of Object.values(label2fields)) { table.addField(label); } diff --git a/public/app/plugins/datasource/azuremonitor/azure_monitor/azure_monitor_datasource.ts b/public/app/plugins/datasource/azuremonitor/azure_monitor/azure_monitor_datasource.ts index 4a1f5f61bfa..68e93304011 100644 --- a/public/app/plugins/datasource/azuremonitor/azure_monitor/azure_monitor_datasource.ts +++ b/public/app/plugins/datasource/azuremonitor/azure_monitor/azure_monitor_datasource.ts @@ -329,7 +329,7 @@ export default class AzureMonitorDatasource extends DataSourceWithBackend(query: T, scopedVars?: ScopedVars) { // This method evaluates template variables supporting multiple values but only returns the first value. - // This will work as far as the the first combination of variables is valid. + // This will work as far as the first combination of variables is valid. // For example if 'rg1' contains 'res1' and 'rg2' contains 'res2' then // { resourceGroup: ['rg1', 'rg2'], resourceName: ['res1', 'res2'] } would return // { resourceGroup: 'rg1', resourceName: 'res1' } which is valid but diff --git a/public/app/plugins/datasource/azuremonitor/dashboards/adx.json b/public/app/plugins/datasource/azuremonitor/dashboards/adx.json index a8e5a014a25..db6ebc0998c 100644 --- a/public/app/plugins/datasource/azuremonitor/dashboards/adx.json +++ b/public/app/plugins/datasource/azuremonitor/dashboards/adx.json @@ -4608,7 +4608,7 @@ ], "timeFrom": null, "timeShift": null, - "title": "Changes in query count by principal (not affected by the the time range parameter)", + "title": "Changes in query count by principal (not affected by the time range parameter)", "transparent": true, "type": "table" }, diff --git a/public/app/plugins/datasource/dashboard/datasource.test.ts b/public/app/plugins/datasource/dashboard/datasource.test.ts index 58edb8dc8dd..1661fdbb5f6 100644 --- a/public/app/plugins/datasource/dashboard/datasource.test.ts +++ b/public/app/plugins/datasource/dashboard/datasource.test.ts @@ -36,7 +36,7 @@ describe('DashboardDatasource', () => { expect(rsp?.data[0].fields[1].values).toEqual([3]); }); - it('Should activate source provder on observable subscribe and and deactivate when completed (if only activator)', async () => { + it('Should activate source provder on observable subscribe and deactivate when completed (if only activator)', async () => { const { observable, sourceData } = setup({ refId: 'A', panelId: 1, withTransforms: true }); const test = observable.subscribe({ next: () => {} }); diff --git a/public/app/plugins/datasource/influxdb/components/editor/query/influxql/hooks/useShadowedState.test.ts b/public/app/plugins/datasource/influxdb/components/editor/query/influxql/hooks/useShadowedState.test.ts index f66287dbab5..5d51fcae676 100644 --- a/public/app/plugins/datasource/influxdb/components/editor/query/influxql/hooks/useShadowedState.test.ts +++ b/public/app/plugins/datasource/influxdb/components/editor/query/influxql/hooks/useShadowedState.test.ts @@ -54,7 +54,7 @@ describe('useShadowedState', () => { // propageted to the outside component) rerender({ outsideVal: '2' }); - // and verify the the value is ok + // and verify the value is ok expect(result.current[0]).toBe('2'); // and now change the inside-value again @@ -62,7 +62,7 @@ describe('useShadowedState', () => { result.current[1]('3'); }); - // and verify the the value is ok + // and verify the value is ok expect(result.current[0]).toBe('3'); }); });