Skip to content

Commit 1ffe858

Browse files
authored
chore: remove repetitive words (grafana#86412)
Signed-off-by: TechVest <[email protected]>
1 parent 65951c4 commit 1ffe858

File tree

21 files changed

+25
-25
lines changed

21 files changed

+25
-25
lines changed

conf/provisioning/alerting/sample.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ apiVersion: 1
191191
# - orgID: 1
192192
# # <string, required> name of the template, must be unique
193193
# name: my_first_template
194-
# # <string, required> content of the the template
194+
# # <string, required> content of the template
195195
# template: Alerting with a custome text template
196196

197197
# # List of templates that should be deleted

devenv/docker/blocks/self-instrumentation/tempo.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ storage:
3535
trace:
3636
backend: local # backend configuration to use
3737
wal:
38-
path: /tmp/tempo/wal # where to store the the wal locally
38+
path: /tmp/tempo/wal # where to store the wal locally
3939
local:
4040
path: /tmp/tempo/blocks
4141

devenv/docker/blocks/tempo/tempo.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ storage:
4444
v2_index_downsample_bytes: 1000 # number of bytes per index record
4545
v2_encoding: zstd # block encoding/compression. options: none, gzip, lz4-64k, lz4-256k, lz4-1M, lz4, snappy, zstd, s2
4646
wal:
47-
path: /tmp/tempo/wal # where to store the the wal locally
47+
path: /tmp/tempo/wal # where to store the wal locally
4848
v2_encoding: snappy # wal encoding/compression. options: none, gzip, lz4-64k, lz4-256k, lz4-1M, lz4, snappy, zstd, s2
4949
local:
5050
path: /tmp/tempo/blocks

docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ In this section, we'll create Terraform configurations for each alerting resourc
186186
To link the alert rule group with its respective data source and folder in this example, replace the following field values:
187187

188188
- `<terraform_data_source_name>` with the terraform name of the previously defined data source.
189-
- `<terraform_folder_name>` with the terraform name of the the previously defined folder.
189+
- `<terraform_folder_name>` with the terraform name of the previously defined folder.
190190

191191
1. Continue to add more Grafana resources or [use the Terraform CLI for provisioning](#provision-grafana-resources-with-terraform).
192192

@@ -312,7 +312,7 @@ Since the policy tree is a single resource, provisioning the `grafana_notificati
312312
To configure the mute timing and contact point previously created in the notification policy tree, replace the following field values:
313313

314314
- `<terraform_data_source_name>` with the terraform name of the previously defined contact point.
315-
- `<terraform_folder_name>` with the terraform name of the the previously defined mute timing.
315+
- `<terraform_folder_name>` with the terraform name of the previously defined mute timing.
316316

317317
1. Continue to add more Grafana resources or [use the Terraform CLI for provisioning](#provision-grafana-resources-with-terraform).
318318

docs/sources/panels-visualizations/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cards:
4141
height: 24
4242
- title: Configure standard options
4343
href: ./configure-standard-options/
44-
description: Learn about configuring standard options like units, field display names, and and colors.
44+
description: Learn about configuring standard options like units, field display names, and colors.
4545
height: 24
4646
- title: Query and transform data
4747
href: ./query-transform-data/

packages/grafana-data/src/types/datasource.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export interface QueryFixAction {
587587
*/
588588
options?: KeyValue<string>;
589589
/**
590-
* An optional single row data frame containing the row that triggered the the QueryFixAction.
590+
* An optional single row data frame containing the row that triggered the QueryFixAction.
591591
*/
592592
frame?: DataFrame;
593593
}

packages/grafana-data/src/types/logs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface LogRowModel {
5555
// the same as rows final index when rendered.
5656
rowIndex: number;
5757

58-
// The value of the the dataframe's id field, if it exists
58+
// The value of the dataframe's id field, if it exists
5959
rowId?: string;
6060

6161
// Full DataFrame from which we parsed this log.

packages/grafana-data/src/types/select.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface SelectableValue<T = any> {
77
value?: T;
88
imgUrl?: string;
99
icon?: string;
10-
// Secondary text under the the title of the option.
10+
// Secondary text under the title of the option.
1111
description?: string;
1212
// Adds a simple native title attribute to each option.
1313
title?: string;

packages/grafana-prometheus/src/components/VariableQueryEditor.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ describe('PromVariableQueryEditor', () => {
196196
});
197197
});
198198

199-
test('Calls onChange for label_names, label_values, metrics, query result and and classic query.', async () => {
199+
test('Calls onChange for label_names, label_values, metrics, query result and classic query.', async () => {
200200
const onChange = jest.fn();
201201

202202
props.query = {

public/app/features/dashboard/state/DashboardMigrator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ export class DashboardMigrator {
879879
let tableTransformOptions: TimeSeriesTableTransformerOptions = {};
880880

881881
// For each {refIdtoStat} record which maps refId to a statistic
882-
// we add that to the stat property of the the new
882+
// we add that to the stat property of the new
883883
// RefIdTransformerOptions interface which includes multiple settings
884884
for (const [refId, stat] of Object.entries(transformation.options.refIdToStat)) {
885885
let newSettings: RefIdTransformerOptions = {};

public/app/features/datasources/components/picker/DataSourceModal.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('DataSourceDropdown', () => {
9898
expect(screen.queryAllByText('Configure a new data source')).toHaveLength(2);
9999
});
100100

101-
it('only displays the file drop area when the the ff is enabled', async () => {
101+
it('only displays the file drop area when the ff is enabled', async () => {
102102
const defaultValue = config.featureToggles.editPanelCSVDragAndDrop;
103103
config.featureToggles.editPanelCSVDragAndDrop = true;
104104
setup({ uploadFile: true });

public/app/features/datasources/components/picker/DataSourcePicker.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function DataSourcePicker(props: DataSourcePickerProps) {
181181
if (e.shiftKey) {
182182
e.preventDefault();
183183
markerElement?.focus();
184-
// When navigating forward, the dropdown closes and and the element next to the input element is focused.
184+
// When navigating forward, the dropdown closes and the element next to the input element is focused.
185185
} else {
186186
onClose();
187187
}

public/app/features/explore/hooks/useStateSync/internal.utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const urlDiff = (
4040
/**
4141
* Returns the datasource that an explore pane should be using.
4242
* If the URL specifies a datasource and that datasource exists, it will be used unless said datasource is mixed.
43-
* Otherwise the datasource will be extracted from the the first query specifying a valid datasource.
43+
* Otherwise the datasource will be extracted from the first query specifying a valid datasource.
4444
*
4545
* If there's no datasource in the queries, the last used datasource will be used.
4646
* if there's no last used datasource, the default datasource will be used.

public/app/features/plugins/admin/state/actions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ export const addPlugins = createAction<CatalogPlugin[]>(`${STATE_PREFIX}/addPlug
175175

176176
// 1. gets remote equivalents from the store (if there are any)
177177
// 2. merges the remote equivalents with the local plugins
178-
// 3. updates the the store with the updated CatalogPlugin objects
178+
// 3. updates the store with the updated CatalogPlugin objects
179179
export const addLocalPlugins = createAction<LocalPlugin[]>(`${STATE_PREFIX}/addLocalPlugins`);
180180

181181
// 1. gets local equivalents from the store (if there are any)
182182
// 2. merges the local equivalents with the remote plugins
183-
// 3. updates the the store with the updated CatalogPlugin objects
183+
// 3. updates the store with the updated CatalogPlugin objects
184184
export const addRemotePlugins = createAction<RemotePlugin[]>(`${STATE_PREFIX}/addLocalPlugins`);
185185

186186
// 1. merges the local and remote plugins

public/app/features/trails/TrailStore/TrailStore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class TrailStore {
5757
}
5858

5959
private _deserializeTrail(t: SerializedTrail): DataTrail {
60-
// reconstruct the trail based on the the serialized history
60+
// reconstruct the trail based on the serialized history
6161
const trail = new DataTrail({ createdAt: t.createdAt });
6262

6363
t.history.map((step) => {

public/app/features/trails/interactions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type Interactions = {
5959
// User clicks on history nodes to navigate exploration history
6060
history_step_clicked: {
6161
type: (
62-
// One of the the standard step types
62+
// One of the standard step types
6363
| TrailStepType
6464
// The special metric step type that is created when the user de-selects the current metric
6565
| 'metric-clear'

public/app/features/transformers/timeSeriesTable/timeSeriesTableTransformer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function timeSeriesToTableTransform(options: TimeSeriesTableTransformerOp
196196

197197
// Calculate the reduction of the current field
198198
// and push the frame with reduction
199-
// into the the appropriate field
199+
// into the appropriate field
200200
const reducerId = options[refId]?.stat ?? ReducerID.lastNotNull;
201201
const value = reduceField({ field, reducers: [reducerId] })[reducerId] ?? null;
202202

@@ -246,7 +246,7 @@ export function timeSeriesToTableTransform(options: TimeSeriesTableTransformerOp
246246
}
247247
}
248248

249-
// Add label fields to the the resulting frame
249+
// Add label fields to the resulting frame
250250
for (const label of Object.values(label2fields)) {
251251
table.addField(label);
252252
}

public/app/plugins/datasource/azuremonitor/azure_monitor/azure_monitor_datasource.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export default class AzureMonitorDatasource extends DataSourceWithBackend<AzureM
329329

330330
private replaceSingleTemplateVariables<T extends { [K in keyof T]: string }>(query: T, scopedVars?: ScopedVars) {
331331
// This method evaluates template variables supporting multiple values but only returns the first value.
332-
// This will work as far as the the first combination of variables is valid.
332+
// This will work as far as the first combination of variables is valid.
333333
// For example if 'rg1' contains 'res1' and 'rg2' contains 'res2' then
334334
// { resourceGroup: ['rg1', 'rg2'], resourceName: ['res1', 'res2'] } would return
335335
// { resourceGroup: 'rg1', resourceName: 'res1' } which is valid but

public/app/plugins/datasource/azuremonitor/dashboards/adx.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4608,7 +4608,7 @@
46084608
],
46094609
"timeFrom": null,
46104610
"timeShift": null,
4611-
"title": "Changes in query count by principal (not affected by the the time range parameter)",
4611+
"title": "Changes in query count by principal (not affected by the time range parameter)",
46124612
"transparent": true,
46134613
"type": "table"
46144614
},

public/app/plugins/datasource/dashboard/datasource.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('DashboardDatasource', () => {
3636
expect(rsp?.data[0].fields[1].values).toEqual([3]);
3737
});
3838

39-
it('Should activate source provder on observable subscribe and and deactivate when completed (if only activator)', async () => {
39+
it('Should activate source provder on observable subscribe and deactivate when completed (if only activator)', async () => {
4040
const { observable, sourceData } = setup({ refId: 'A', panelId: 1, withTransforms: true });
4141

4242
const test = observable.subscribe({ next: () => {} });

public/app/plugins/datasource/influxdb/components/editor/query/influxql/hooks/useShadowedState.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ describe('useShadowedState', () => {
5454
// propageted to the outside component)
5555
rerender({ outsideVal: '2' });
5656

57-
// and verify the the value is ok
57+
// and verify the value is ok
5858
expect(result.current[0]).toBe('2');
5959

6060
// and now change the inside-value again
6161
act(() => {
6262
result.current[1]('3');
6363
});
6464

65-
// and verify the the value is ok
65+
// and verify the value is ok
6666
expect(result.current[0]).toBe('3');
6767
});
6868
});

0 commit comments

Comments
 (0)