mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: remove repetitive words (#86412)
Signed-off-by: TechVest <techdashen@qq.com>
This commit is contained in:
parent
65951c40c4
commit
1ffe858e06
@ -191,7 +191,7 @@ apiVersion: 1
|
||||
# - orgID: 1
|
||||
# # <string, required> name of the template, must be unique
|
||||
# name: my_first_template
|
||||
# # <string, required> content of the the template
|
||||
# # <string, required> content of the template
|
||||
# template: Alerting with a custome text template
|
||||
|
||||
# # List of templates that should be deleted
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
||||
- `<terraform_data_source_name>` with the terraform name of the previously defined data source.
|
||||
- `<terraform_folder_name>` with the terraform name of the the previously defined folder.
|
||||
- `<terraform_folder_name>` 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:
|
||||
|
||||
- `<terraform_data_source_name>` with the terraform name of the previously defined contact point.
|
||||
- `<terraform_folder_name>` with the terraform name of the the previously defined mute timing.
|
||||
- `<terraform_folder_name>` 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).
|
||||
|
||||
|
@ -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/
|
||||
|
@ -587,7 +587,7 @@ export interface QueryFixAction {
|
||||
*/
|
||||
options?: KeyValue<string>;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -7,7 +7,7 @@ export interface SelectableValue<T = any> {
|
||||
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;
|
||||
|
@ -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 = {
|
||||
|
@ -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 = {};
|
||||
|
@ -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 });
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -175,12 +175,12 @@ export const addPlugins = createAction<CatalogPlugin[]>(`${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<LocalPlugin[]>(`${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<RemotePlugin[]>(`${STATE_PREFIX}/addLocalPlugins`);
|
||||
|
||||
// 1. merges the local and remote plugins
|
||||
|
@ -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) => {
|
||||
|
@ -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'
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ export default class AzureMonitorDatasource extends DataSourceWithBackend<AzureM
|
||||
|
||||
private replaceSingleTemplateVariables<T extends { [K in keyof T]: string }>(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
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -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: () => {} });
|
||||
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user