mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix typos (#28074)
Parsed all repo with a regexp of common misspelled words and fixed.
This commit is contained in:
@@ -284,7 +284,7 @@ In many cases the issue author or community as a whole is more suitable to contr
|
|||||||
- Alert notifiers
|
- Alert notifiers
|
||||||
|
|
||||||
1. Kindly and politely add a comment to signal to users subscribed to updates of the issue.
|
1. Kindly and politely add a comment to signal to users subscribed to updates of the issue.
|
||||||
- Explain that the issue would be nice to get resolved, but it isn't prioritized to work on by maintainers for an unforseen future.
|
- Explain that the issue would be nice to get resolved, but it isn't prioritized to work on by maintainers for an unforeseen future.
|
||||||
- If possible or applicable, try to help contributors getting starting by adding pointers and references to what code/files need to be changed and/or ideas of a good way to solve/implement the issue.
|
- If possible or applicable, try to help contributors getting starting by adding pointers and references to what code/files need to be changed and/or ideas of a good way to solve/implement the issue.
|
||||||
2. Label the issue with `help wanted`.
|
2. Label the issue with `help wanted`.
|
||||||
3. If applicable, label the issue with `beginner friendly` to denote that the issue is suitable for a beginner to work on.
|
3. If applicable, label the issue with `beginner friendly` to denote that the issue is suitable for a beginner to work on.
|
||||||
|
@@ -821,7 +821,7 @@ filebeat.inputs:
|
|||||||
|
|
||||||
# By default Ingest pipelines are not updated if a pipeline with the same ID
|
# By default Ingest pipelines are not updated if a pipeline with the same ID
|
||||||
# already exists. If this option is enabled Filebeat overwrites pipelines
|
# already exists. If this option is enabled Filebeat overwrites pipelines
|
||||||
# everytime a new Elasticsearch connection is established.
|
# every time a new Elasticsearch connection is established.
|
||||||
#filebeat.overwrite_pipelines: false
|
#filebeat.overwrite_pipelines: false
|
||||||
|
|
||||||
# How long filebeat waits on shutdown for the publisher to finish.
|
# How long filebeat waits on shutdown for the publisher to finish.
|
||||||
|
@@ -821,7 +821,7 @@ filebeat.inputs:
|
|||||||
|
|
||||||
# By default Ingest pipelines are not updated if a pipeline with the same ID
|
# By default Ingest pipelines are not updated if a pipeline with the same ID
|
||||||
# already exists. If this option is enabled Filebeat overwrites pipelines
|
# already exists. If this option is enabled Filebeat overwrites pipelines
|
||||||
# everytime a new Elasticsearch connection is established.
|
# every time a new Elasticsearch connection is established.
|
||||||
#filebeat.overwrite_pipelines: false
|
#filebeat.overwrite_pipelines: false
|
||||||
|
|
||||||
# How long filebeat waits on shutdown for the publisher to finish.
|
# How long filebeat waits on shutdown for the publisher to finish.
|
||||||
|
@@ -1057,7 +1057,7 @@
|
|||||||
# ## Custom resource type
|
# ## Custom resource type
|
||||||
# # resource_type = "generic_node"
|
# # resource_type = "generic_node"
|
||||||
#
|
#
|
||||||
# ## Additonal resource labels
|
# ## Additional resource labels
|
||||||
# # [outputs.stackdriver.resource_labels]
|
# # [outputs.stackdriver.resource_labels]
|
||||||
# # node_id = "$HOSTNAME"
|
# # node_id = "$HOSTNAME"
|
||||||
# # namespace = "myapp"
|
# # namespace = "myapp"
|
||||||
@@ -5196,11 +5196,11 @@
|
|||||||
# ## separator character to use for measurement and field names (default: "_")
|
# ## separator character to use for measurement and field names (default: "_")
|
||||||
# # separator = "_"
|
# # separator = "_"
|
||||||
#
|
#
|
||||||
# ## number of objects to retreive per query for realtime resources (vms and hosts)
|
# ## number of objects to retrieve per query for realtime resources (vms and hosts)
|
||||||
# ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
|
# ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
|
||||||
# # max_query_objects = 256
|
# # max_query_objects = 256
|
||||||
#
|
#
|
||||||
# ## number of metrics to retreive per query for non-realtime resources (clusters and datastores)
|
# ## number of metrics to retrieve per query for non-realtime resources (clusters and datastores)
|
||||||
# ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
|
# ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
|
||||||
# # max_query_metrics = 256
|
# # max_query_metrics = 256
|
||||||
#
|
#
|
||||||
|
@@ -75,7 +75,7 @@ Example output:
|
|||||||
|
|
||||||
█ user auth token test
|
█ user auth token test
|
||||||
|
|
||||||
█ user authenticates thru ui with username and password
|
█ user authenticates through ui with username and password
|
||||||
|
|
||||||
✓ response status is 200
|
✓ response status is 200
|
||||||
✓ response has cookie 'grafana_session' with 32 characters
|
✓ response has cookie 'grafana_session' with 32 characters
|
||||||
|
@@ -23,7 +23,7 @@ export const setup = () => {
|
|||||||
export default data => {
|
export default data => {
|
||||||
group('annotation by tag test', () => {
|
group('annotation by tag test', () => {
|
||||||
if (__ITER === 0) {
|
if (__ITER === 0) {
|
||||||
group('user authenticates thru ui with username and password', () => {
|
group('user authenticates through ui with username and password', () => {
|
||||||
let res = client.ui.login('admin', 'admin');
|
let res = client.ui.login('admin', 'admin');
|
||||||
|
|
||||||
check(res, {
|
check(res, {
|
||||||
|
@@ -24,7 +24,7 @@ export const setup = () => {
|
|||||||
export default data => {
|
export default data => {
|
||||||
group(`user auth token slow test (queries between 1 and ${slowQuery} seconds)`, () => {
|
group(`user auth token slow test (queries between 1 and ${slowQuery} seconds)`, () => {
|
||||||
if (__ITER === 0) {
|
if (__ITER === 0) {
|
||||||
group('user authenticates thru ui with username and password', () => {
|
group('user authenticates through ui with username and password', () => {
|
||||||
let res = client.ui.login('admin', 'admin');
|
let res = client.ui.login('admin', 'admin');
|
||||||
|
|
||||||
check(res, {
|
check(res, {
|
||||||
|
@@ -23,7 +23,7 @@ export const setup = () => {
|
|||||||
export default data => {
|
export default data => {
|
||||||
group('user auth token test', () => {
|
group('user auth token test', () => {
|
||||||
if (__ITER === 0) {
|
if (__ITER === 0) {
|
||||||
group('user authenticates thru ui with username and password', () => {
|
group('user authenticates through ui with username and password', () => {
|
||||||
let res = client.ui.login('admin', 'admin');
|
let res = client.ui.login('admin', 'admin');
|
||||||
|
|
||||||
check(res, {
|
check(res, {
|
||||||
|
@@ -34,7 +34,7 @@ export const labelsToFieldsTransformer: DataTransformerInfo<LabelsToFieldsOption
|
|||||||
let name = field.name;
|
let name = field.name;
|
||||||
|
|
||||||
for (const labelName of Object.keys(field.labels)) {
|
for (const labelName of Object.keys(field.labels)) {
|
||||||
// if we should use this label as the value field name store it and skip adding this as a seperate field
|
// if we should use this label as the value field name store it and skip adding this as a separate field
|
||||||
if (options.valueLabel === labelName) {
|
if (options.valueLabel === labelName) {
|
||||||
name = field.labels[labelName];
|
name = field.labels[labelName];
|
||||||
continue;
|
continue;
|
||||||
|
@@ -85,7 +85,7 @@ export interface LiveChannelStatusEvent {
|
|||||||
timestamp: number;
|
timestamp: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* flag if the channel is activly connected to the channel.
|
* flag if the channel is actively connected to the channel.
|
||||||
* This may be false while the connections get established or if the network is lost
|
* This may be false while the connections get established or if the network is lost
|
||||||
* As long as the `shutdown` flag is not set, the connection will try to reestablish
|
* As long as the `shutdown` flag is not set, the connection will try to reestablish
|
||||||
*/
|
*/
|
||||||
@@ -94,7 +94,7 @@ export interface LiveChannelStatusEvent {
|
|||||||
/**
|
/**
|
||||||
* The last error.
|
* The last error.
|
||||||
*
|
*
|
||||||
* This will remain in the status until a new message is succesfully received from the channel
|
* This will remain in the status until a new message is successfully received from the channel
|
||||||
*/
|
*/
|
||||||
error?: any;
|
error?: any;
|
||||||
}
|
}
|
||||||
|
@@ -163,7 +163,7 @@ describe('Positions', () => {
|
|||||||
// Note: ps.ys = [0, 2, 6, 12, 20, undefined x 5];
|
// Note: ps.ys = [0, 2, 6, 12, 20, undefined x 5];
|
||||||
});
|
});
|
||||||
|
|
||||||
it('scans y-values for index that equals or preceeds `yValue`', () => {
|
it('scans y-values for index that equals or precedes `yValue`', () => {
|
||||||
let i = ps.findFloorIndex(3, getHeight);
|
let i = ps.findFloorIndex(3, getHeight);
|
||||||
expect(i).toBe(1);
|
expect(i).toBe(1);
|
||||||
i = ps.findFloorIndex(21, getHeight);
|
i = ps.findFloorIndex(21, getHeight);
|
||||||
|
@@ -33,12 +33,12 @@ type TListViewProps = {
|
|||||||
dataLength: number;
|
dataLength: number;
|
||||||
/**
|
/**
|
||||||
* Convert item index (number) to the key (string). ListView uses both indexes
|
* Convert item index (number) to the key (string). ListView uses both indexes
|
||||||
* and keys to handle the addtion of new rows.
|
* and keys to handle the addition of new rows.
|
||||||
*/
|
*/
|
||||||
getIndexFromKey: (key: string) => number;
|
getIndexFromKey: (key: string) => number;
|
||||||
/**
|
/**
|
||||||
* Convert item key (string) to the index (number). ListView uses both indexes
|
* Convert item key (string) to the index (number). ListView uses both indexes
|
||||||
* and keys to handle the addtion of new rows.
|
* and keys to handle the addition of new rows.
|
||||||
*/
|
*/
|
||||||
getKeyFromIndex: (index: number) => string;
|
getKeyFromIndex: (index: number) => string;
|
||||||
/**
|
/**
|
||||||
|
@@ -63,7 +63,7 @@ describe('Tween', () => {
|
|||||||
expect(setTimeoutFn).lastCalledWith(tween._frameCallback, delay);
|
expect(setTimeoutFn).lastCalledWith(tween._frameCallback, delay);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('schedules animation frame if there isnt a delay', () => {
|
it('schedules animation frame if there is not a delay', () => {
|
||||||
const tween = new Tween({ ...baseOptions, onUpdate: jest.fn() });
|
const tween = new Tween({ ...baseOptions, onUpdate: jest.fn() });
|
||||||
expect(rafFn).lastCalledWith(tween._frameCallback);
|
expect(rafFn).lastCalledWith(tween._frameCallback);
|
||||||
});
|
});
|
||||||
|
@@ -165,7 +165,7 @@ func createTestAnnotations(t *testing.T, sqlstore *SqlStore, expectedCount int,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// mark every third as an API annotation
|
// mark every third as an API annotation
|
||||||
// that doesnt belong to a dashboard
|
// that does not belong to a dashboard
|
||||||
if i%3 == 1 {
|
if i%3 == 1 {
|
||||||
a.DashboardId = 0
|
a.DashboardId = 0
|
||||||
}
|
}
|
||||||
|
@@ -62,5 +62,5 @@ export const labelsToFieldsTransformerRegistryItem: TransformerRegistyItem<Label
|
|||||||
transformation: standardTransformers.labelsToFieldsTransformer,
|
transformation: standardTransformers.labelsToFieldsTransformer,
|
||||||
name: 'Labels to fields',
|
name: 'Labels to fields',
|
||||||
description: `Groups series by time and return labels or tags as fields.
|
description: `Groups series by time and return labels or tags as fields.
|
||||||
Useful for showing time series with labels in a table where each label key becomes a seperate column`,
|
Useful for showing time series with labels in a table where each label key becomes a separate column`,
|
||||||
};
|
};
|
||||||
|
@@ -353,7 +353,7 @@ describe('PanelModel', () => {
|
|||||||
expect(model.someProperty).toBeUndefined();
|
expect(model.someProperty).toBeUndefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Should remove old angular panel specfic props', () => {
|
it('Should remove old angular panel specific props', () => {
|
||||||
model.axes = [{ prop: 1 }];
|
model.axes = [{ prop: 1 }];
|
||||||
model.thresholds = [];
|
model.thresholds = [];
|
||||||
|
|
||||||
|
@@ -153,7 +153,7 @@ describe('runRequest', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should emit 3 seperate results', () => {
|
it('should emit 3 separate results', () => {
|
||||||
expect(ctx.results.length).toBe(3);
|
expect(ctx.results.length).toBe(3);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -266,7 +266,7 @@ describe('runRequest', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should seperate annotations results', () => {
|
it('should separate annotations results', () => {
|
||||||
expect(ctx.results[1].annotations?.length).toBe(1);
|
expect(ctx.results[1].annotations?.length).toBe(1);
|
||||||
expect(ctx.results[1].series.length).toBe(1);
|
expect(ctx.results[1].series.length).toBe(1);
|
||||||
});
|
});
|
||||||
|
@@ -91,7 +91,7 @@ export function processResponsePacket(packet: DataQueryResponse, state: RunningQ
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function handles the excecution of requests & and processes the single or multiple response packets into
|
* This function handles the execution of requests & and processes the single or multiple response packets into
|
||||||
* a combined PanelData response. It will
|
* a combined PanelData response. It will
|
||||||
* Merge multiple responses into a single DataFrame array based on the packet key
|
* Merge multiple responses into a single DataFrame array based on the packet key
|
||||||
* Will emit a loading state if no response after 50ms
|
* Will emit a loading state if no response after 50ms
|
||||||
|
@@ -27,7 +27,7 @@ export default function PrismPlugin({ definition, language }: { definition: any;
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
* Render a Slate mark with appropiate CSS class names
|
* Render a Slate mark with appropriate CSS class names
|
||||||
*
|
*
|
||||||
* @param {Object} props
|
* @param {Object} props
|
||||||
* @return {Element}
|
* @return {Element}
|
||||||
|
@@ -102,7 +102,7 @@ class DashboardWatcher {
|
|||||||
|
|
||||||
const dash = getDashboardSrv().getCurrent();
|
const dash = getDashboardSrv().getCurrent();
|
||||||
if (dash.uid !== event.message.uid) {
|
if (dash.uid !== event.message.uid) {
|
||||||
console.log('dashboard event for differnt dashboard?', event, dash);
|
console.log('dashboard event for different dashboard?', event, dash);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
|
|||||||
{
|
{
|
||||||
id: 'pipe',
|
id: 'pipe',
|
||||||
name: 'Pipe',
|
name: 'Pipe',
|
||||||
description: 'Values are seperated by | character',
|
description: 'Values are separated by | character',
|
||||||
formatter: ({ value }) => {
|
formatter: ({ value }) => {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
return value;
|
return value;
|
||||||
@@ -90,7 +90,7 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
|
|||||||
{
|
{
|
||||||
id: 'csv',
|
id: 'csv',
|
||||||
name: 'Csv',
|
name: 'Csv',
|
||||||
description: 'Comma seperated values',
|
description: 'Comma separated values',
|
||||||
formatter: ({ value }) => {
|
formatter: ({ value }) => {
|
||||||
if (isArray(value)) {
|
if (isArray(value)) {
|
||||||
return value.join(',');
|
return value.join(',');
|
||||||
|
@@ -251,7 +251,7 @@ describe('CloudMonitoringDataSource', () => {
|
|||||||
ds = new CloudMonitoringDataSource(instanceSettings, templateSrv, timeSrv);
|
ds = new CloudMonitoringDataSource(instanceSettings, templateSrv, timeSrv);
|
||||||
});
|
});
|
||||||
describe('when theres only one target', () => {
|
describe('when theres only one target', () => {
|
||||||
describe('and the cloud monitoring unit doesnt have a corresponding grafana unit', () => {
|
describe('and the cloud monitoring unit does nott have a corresponding grafana unit', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }]);
|
res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }]);
|
||||||
});
|
});
|
||||||
@@ -278,7 +278,7 @@ describe('CloudMonitoringDataSource', () => {
|
|||||||
expect(res).toEqual('bits');
|
expect(res).toEqual('bits');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('and all target units are the same but doesnt have grafana mappings', () => {
|
describe('and all target units are the same but does not have grafana mappings', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }, { unit: 'megaseconds' }]);
|
res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }, { unit: 'megaseconds' }]);
|
||||||
});
|
});
|
||||||
|
@@ -18,7 +18,7 @@ import InfluxDatasource from '../datasource';
|
|||||||
type Props = QueryEditorProps<InfluxDatasource, InfluxQuery>;
|
type Props = QueryEditorProps<InfluxDatasource, InfluxQuery>;
|
||||||
|
|
||||||
const samples: Array<SelectableValue<string>> = [
|
const samples: Array<SelectableValue<string>> = [
|
||||||
{ label: 'Show buckets', description: 'List the avaliable buckets (table)', value: 'buckets()' },
|
{ label: 'Show buckets', description: 'List the available buckets (table)', value: 'buckets()' },
|
||||||
{
|
{
|
||||||
label: 'Simple query',
|
label: 'Simple query',
|
||||||
description: 'filter by measurement and field',
|
description: 'filter by measurement and field',
|
||||||
@@ -147,7 +147,7 @@ export class FluxQueryEditor extends PureComponent<Props> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// For some reason in angular, when this component gets re-mounted, the width
|
// For some reason in angular, when this component gets re-mounted, the width
|
||||||
// is not set properly. This forces the layout shorly after mount so that it
|
// is not set properly. This forces the layout shortly after mount so that it
|
||||||
// displays OK. Note: this is not an issue when used directly in react
|
// displays OK. Note: this is not an issue when used directly in react
|
||||||
editorDidMountCallbackHack = (editor: any) => {
|
editorDidMountCallbackHack = (editor: any) => {
|
||||||
setTimeout(() => editor.layout(), 100);
|
setTimeout(() => editor.layout(), 100);
|
||||||
|
@@ -116,7 +116,7 @@ export function expandRecordingRules(query: string, mapping: { [name: string]: s
|
|||||||
// Split query into array, so if query uses operators, we can correctly add labels to each individual part.
|
// Split query into array, so if query uses operators, we can correctly add labels to each individual part.
|
||||||
const queryArray = expandedQuery.split(/(\+|\-|\*|\/|\%|\^)/);
|
const queryArray = expandedQuery.split(/(\+|\-|\*|\/|\%|\^)/);
|
||||||
|
|
||||||
// Regex that matches occurences of ){ or }{ or ]{ which is a sign of incorrecly added labels.
|
// Regex that matches occurrences of ){ or }{ or ]{ which is a sign of incorrecly added labels.
|
||||||
const invalidLabelsRegex = /(\)\{|\}\{|\]\{)/;
|
const invalidLabelsRegex = /(\)\{|\}\{|\]\{)/;
|
||||||
const correctlyExpandedQueryArray = queryArray.map(query => {
|
const correctlyExpandedQueryArray = queryArray.map(query => {
|
||||||
return addLabelsToExpression(query, invalidLabelsRegex);
|
return addLabelsToExpression(query, invalidLabelsRegex);
|
||||||
|
@@ -14,7 +14,7 @@ export class TestInfoTab extends PureComponent<Props> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
See github for more information about setting up a reproducable test environment.
|
See github for more information about setting up a reproducible test environment.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<a
|
<a
|
||||||
|
@@ -34,7 +34,7 @@ export class TextPanel extends PureComponent<Props, State> {
|
|||||||
|
|
||||||
componentDidUpdate(prevProps: Props) {
|
componentDidUpdate(prevProps: Props) {
|
||||||
// Since any change could be referenced in a template variable,
|
// Since any change could be referenced in a template variable,
|
||||||
// This needs to process everytime (with debounce)
|
// This needs to process every time (with debounce)
|
||||||
this.updateHTML();
|
this.updateHTML();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
public/vendor/flot/jquery.flot.fillbelow.js
vendored
4
public/vendor/flot/jquery.flot.fillbelow.js
vendored
@@ -142,7 +142,7 @@
|
|||||||
openPolygon(points[i * ps], points[(i * ps) + 1]);
|
openPolygon(points[i * ps], points[(i * ps) + 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If an equal point preceeds this, start the polygon at that equal point
|
// If an equal point precedes this, start the polygon at that equal point
|
||||||
else if (equal) {
|
else if (equal) {
|
||||||
openPolygon(points[(i - 1) * ps], points[((i - 1) * ps) + 1]);
|
openPolygon(points[(i - 1) * ps], points[((i - 1) * ps) + 1]);
|
||||||
}
|
}
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we go below equal, equal at any preceeding point is irrelevant
|
// If we go below equal, equal at any preceding point is irrelevant
|
||||||
else {
|
else {
|
||||||
start = false;
|
start = false;
|
||||||
equal = false;
|
equal = false;
|
||||||
|
@@ -88,7 +88,7 @@
|
|||||||
itemText = self.options.itemText(item),
|
itemText = self.options.itemText(item),
|
||||||
tagClass = self.options.tagClass(item);
|
tagClass = self.options.tagClass(item);
|
||||||
|
|
||||||
// Ignore items allready added
|
// Ignore items already added
|
||||||
var existing = $.grep(self.itemsArray, function(item) { return self.options.itemValue(item) === itemValue; } )[0];
|
var existing = $.grep(self.itemsArray, function(item) { return self.options.itemValue(item) === itemValue; } )[0];
|
||||||
if (existing) {
|
if (existing) {
|
||||||
// Invoke onTagExists
|
// Invoke onTagExists
|
||||||
|
Reference in New Issue
Block a user