From fecf4c41ad69937af5cb351bb8055f178b019140 Mon Sep 17 00:00:00 2001 From: Alex Ratner Date: Tue, 9 Aug 2022 10:19:30 +0200 Subject: [PATCH] Dashboard: Spelling corrections in end-user visible dialogs (#53340) --- .github/renovate.json5 | 2 +- .../integrate-with-hashicorp-vault.md | 2 +- docs/sources/visualizations/node-graph.md | 8 ++++---- e2e/dashboards-suite/new-custom-variable.spec.ts | 2 +- .../JSONFormatter/json_explorer/json_explorer.ts | 2 +- .../src/components/SetInterval/SetInterval.tsx | 2 +- .../ngalert/provisioning/contactpoints_test.go | 4 ++-- pkg/services/provisioning/dashboards/dashboard.go | 2 +- public/app/core/history/RichHistoryLocalStorage.ts | 2 +- public/app/core/services/echo/EchoSrv.ts | 2 +- .../GrafanaJavascriptAgentBackend.ts | 2 +- .../services/echo/backends/sentry/SentryBackend.ts | 2 +- public/app/core/utils/tracing.ts | 2 +- .../alerting/unified/components/rules/RuleState.tsx | 2 +- public/app/features/alerting/unified/utils/redux.ts | 2 +- public/app/features/dashboard/state/actions.ts | 2 +- .../features/explore/RichHistory/RichHistoryCard.tsx | 12 ++++++------ public/app/features/folders/state/actions.ts | 2 +- .../live/dashboard/DashboardChangedModal.tsx | 2 +- .../app/features/scenes/components/NestedScene.tsx | 2 +- public/app/features/scenes/core/types.ts | 2 +- .../features/variables/adhoc/picker/AdHocFilter.tsx | 2 +- .../QueryEditor/MetricAggregationsEditor/utils.ts | 4 ++-- .../components/LogsQueryEditor/QueryField.tsx | 2 +- .../datasource/loki/backendResultTransformer.ts | 2 +- public/app/plugins/datasource/loki/datasource.ts | 4 ++-- .../app/plugins/datasource/loki/language_provider.ts | 2 +- .../loki/live_streams_result_transformer.ts | 2 +- .../components/LokiQueryEditorSelector.tsx | 4 ++-- .../plugins/datasource/loki/querybuilder/parsing.ts | 2 +- .../datasource/prometheus/language_provider.ts | 2 +- .../components/PromQueryEditorSelector.tsx | 4 ++-- .../datasource/prometheus/querybuilder/parsing.ts | 2 +- .../prometheus/querybuilder/shared/operationUtils.ts | 2 +- .../prometheus/querybuilder/shared/parsingUtils.ts | 2 +- public/app/plugins/panel/nodeGraph/NodeGraph.tsx | 2 +- public/app/plugins/panel/nodeGraph/layout.worker.js | 4 ++-- public/app/plugins/panel/timeseries/migrations.ts | 2 +- public/app/types/events.ts | 2 +- 39 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index c494c281b07..23a07ad8eac 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -18,7 +18,7 @@ "d3-scale-chromatic", // we should bump this once we move to esm modules "execa", // we should bump this once we move to esm modules "history", // we should bump this together with react-router-dom - "@mdx-js/react", // storybook peer-depends on it's 1.x version, we should upgrade this when we upgrade storybook + "@mdx-js/react", // storybook peer-depends on its 1.x version, we should upgrade this when we upgrade storybook "monaco-editor", // due to us exposing this via @grafana/ui/CodeEditor's props bumping can break plugins "node-fetch", // we should bump this once we move to esm modules "react-hook-form", // due to us exposing these hooks via @grafana/ui form components bumping can break plugins diff --git a/docs/sources/setup-grafana/configure-security/configure-database-encryption/integrate-with-hashicorp-vault.md b/docs/sources/setup-grafana/configure-security/configure-database-encryption/integrate-with-hashicorp-vault.md index d0e2ae92be7..57764c77a9d 100644 --- a/docs/sources/setup-grafana/configure-security/configure-database-encryption/integrate-with-hashicorp-vault.md +++ b/docs/sources/setup-grafana/configure-security/configure-database-encryption/integrate-with-hashicorp-vault.md @@ -66,7 +66,7 @@ The argument to Vault consists of three parts separated by a colon: - The third part specifies which field of that secret should be used. For example, if you place a Key/Value secret for the Grafana admin user in _secret/grafana/admin_defaults_ -the syntax for accessing it's _password_ field would be `$__vault{kv:secret/grafana/admin_defaults:password}`. +the syntax for accessing its _password_ field would be `$__vault{kv:secret/grafana/admin_defaults:password}`. ### Secrets engines diff --git a/docs/sources/visualizations/node-graph.md b/docs/sources/visualizations/node-graph.md index 9ec5cb8dcc7..e9cb77698d6 100644 --- a/docs/sources/visualizations/node-graph.md +++ b/docs/sources/visualizations/node-graph.md @@ -46,7 +46,7 @@ For example, you can have the percentage of errors represented by a red portion Edges can also show statistics when you hover over the edge. Similar to nodes, you can open a context menu with additional details and links by clicking on the edge. -The first data source supporting this visualization is X-Ray data source for it's Service map feature. For more information, refer to the [X-Ray plugin documentation](https://grafana.com/grafana/plugins/grafana-x-ray-datasource). +The first data source supporting this visualization is X-Ray data source for its Service map feature. For more information, refer to the [X-Ray plugin documentation](https://grafana.com/grafana/plugins/grafana-x-ray-datasource). ## Navigating the node graph @@ -90,9 +90,9 @@ Data source needs to return two data frames, one for nodes and one for edges. Yo Required fields: -| Field name | Type | Description | -| ---------- | ------ | --------------------------------------------------------------------------------------------- | -| id | string | Unique identifier of the node. This ID is referenced by edge in it's source and target field. | +| Field name | Type | Description | +| ---------- | ------ | -------------------------------------------------------------------------------------------- | +| id | string | Unique identifier of the node. This ID is referenced by edge in its source and target field. | Optional fields: diff --git a/e2e/dashboards-suite/new-custom-variable.spec.ts b/e2e/dashboards-suite/new-custom-variable.spec.ts index a9c1408c69d..85b85fc6387 100644 --- a/e2e/dashboards-suite/new-custom-variable.spec.ts +++ b/e2e/dashboards-suite/new-custom-variable.spec.ts @@ -44,7 +44,7 @@ describe('Variables - Custom', () => { e2e.components.CallToActionCard.buttonV2('Add variable').click(); e2e.pages.Dashboard.Settings.Variables.Edit.General.generalTypeSelectV2().type('Custom{enter}'); - // Set it's name, label, and content + // Set its name, label, and content fillInCustomVariable('VariableUnderTest', 'Variable under test', 'One : 1,Two : 2, Three : 3'); assertPreviewValues(['One', 'Two', 'Three']); diff --git a/packages/grafana-ui/src/components/JSONFormatter/json_explorer/json_explorer.ts b/packages/grafana-ui/src/components/JSONFormatter/json_explorer/json_explorer.ts index 8deb06ed099..c93e811a40d 100644 --- a/packages/grafana-ui/src/components/JSONFormatter/json_explorer/json_explorer.ts +++ b/packages/grafana-ui/src/components/JSONFormatter/json_explorer/json_explorer.ts @@ -71,7 +71,7 @@ export class JsonExplorer { * preview. Any object with more properties that thin number will be * truncated. * - * @param {string} [key=undefined] The key that this object in it's parent + * @param {string} [key=undefined] The key that this object in its parent * context */ constructor( diff --git a/packages/grafana-ui/src/components/SetInterval/SetInterval.tsx b/packages/grafana-ui/src/components/SetInterval/SetInterval.tsx index 7d6f2089a4e..a2066fb4a07 100644 --- a/packages/grafana-ui/src/components/SetInterval/SetInterval.tsx +++ b/packages/grafana-ui/src/components/SetInterval/SetInterval.tsx @@ -57,7 +57,7 @@ export class SetInterval extends PureComponent { ) .subscribe(); - // When component has mounted, propsSubject emits it's first value + // When component has mounted, propsSubject emits its first value this.propsSubject.next(this.props); } diff --git a/pkg/services/ngalert/provisioning/contactpoints_test.go b/pkg/services/ngalert/provisioning/contactpoints_test.go index 1ee91f59b1b..5802abd226e 100644 --- a/pkg/services/ngalert/provisioning/contactpoints_test.go +++ b/pkg/services/ngalert/provisioning/contactpoints_test.go @@ -60,7 +60,7 @@ func TestContactPointService(t *testing.T) { require.Equal(t, "slack", cps[1].Type) }) - t.Run("it's possbile to use a custom uid", func(t *testing.T) { + t.Run("it's possible to use a custom uid", func(t *testing.T) { customUID := "1337" sut := createContactPointServiceSut(secretsService) newCp := createTestContactPoint() @@ -75,7 +75,7 @@ func TestContactPointService(t *testing.T) { require.Equal(t, customUID, cps[1].UID) }) - t.Run("it's not possbile to use the same uid twice", func(t *testing.T) { + t.Run("it's not possible to use the same uid twice", func(t *testing.T) { customUID := "1337" sut := createContactPointServiceSut(secretsService) newCp := createTestContactPoint() diff --git a/pkg/services/provisioning/dashboards/dashboard.go b/pkg/services/provisioning/dashboards/dashboard.go index 9ede9c2808f..e593d1229c1 100644 --- a/pkg/services/provisioning/dashboards/dashboard.go +++ b/pkg/services/provisioning/dashboards/dashboard.go @@ -106,7 +106,7 @@ func (provider *Provisioner) PollChanges(ctx context.Context) { } // GetProvisionerResolvedPath returns resolved path for the specified provisioner name. Can be used to generate -// relative path to provisioning file from it's external_id. +// relative path to provisioning file from its external_id. func (provider *Provisioner) GetProvisionerResolvedPath(name string) string { for _, reader := range provider.fileReaders { if reader.Cfg.Name == name { diff --git a/public/app/core/history/RichHistoryLocalStorage.ts b/public/app/core/history/RichHistoryLocalStorage.ts index 2a28f5cec14..737246ca301 100644 --- a/public/app/core/history/RichHistoryLocalStorage.ts +++ b/public/app/core/history/RichHistoryLocalStorage.ts @@ -217,7 +217,7 @@ function createDataQuery(query: RichHistoryLocalStorageDTO, individualQuery: Dat // ElasticSearch (maybe other datasoures too) before grafana7 return JSON.parse(individualQuery); } - // prometehus (maybe other datasources too) before grafana7 + // prometheus (maybe other datasources too) before grafana7 return { expr: individualQuery, refId: letters[index] }; } diff --git a/public/app/core/services/echo/EchoSrv.ts b/public/app/core/services/echo/EchoSrv.ts index 1f91e09fd79..689517b32d5 100644 --- a/public/app/core/services/echo/EchoSrv.ts +++ b/public/app/core/services/echo/EchoSrv.ts @@ -14,6 +14,6 @@ export const reportPerformance = (metric: string, value: number) => { }); }; -// Sentry will process the error, adding it's own metadata, applying any sampling rules, +// Sentry will process the error, adding its own metadata, applying any sampling rules, // then push it to EchoSrv as SentryEvent export const reportError = (error: Error) => captureException(error); diff --git a/public/app/core/services/echo/backends/grafana-javascript-agent/GrafanaJavascriptAgentBackend.ts b/public/app/core/services/echo/backends/grafana-javascript-agent/GrafanaJavascriptAgentBackend.ts index a78fdc5b5b9..5c5cf2bcf94 100644 --- a/public/app/core/services/echo/backends/grafana-javascript-agent/GrafanaJavascriptAgentBackend.ts +++ b/public/app/core/services/echo/backends/grafana-javascript-agent/GrafanaJavascriptAgentBackend.ts @@ -48,7 +48,7 @@ export class GrafanaJavascriptAgentBackend instrumentations.push(new WebVitalsInstrumentation()); } - // initialize GrafanaJavascriptAgent so it can set up it's hooks and start collecting errors + // initialize GrafanaJavascriptAgent so it can set up its hooks and start collecting errors const grafanaJavaScriptAgentOptions: BrowserConfig = { globalObjectKey: options.globalObjectKey || 'grafanaAgent', preventGlobalExposure: options.preventGlobalExposure || false, diff --git a/public/app/core/services/echo/backends/sentry/SentryBackend.ts b/public/app/core/services/echo/backends/sentry/SentryBackend.ts index 08211be9d82..dc63851da2e 100644 --- a/public/app/core/services/echo/backends/sentry/SentryBackend.ts +++ b/public/app/core/services/echo/backends/sentry/SentryBackend.ts @@ -29,7 +29,7 @@ export class SentryEchoBackend implements EchoBackend): numb /** * Returns a map of the spans with children array for easier processing. It will also contain empty spans in case - * span is missing but other spans are it's children. This is more generic because it needs to allow iterating over + * span is missing but other spans are its children. This is more generic because it needs to allow iterating over * both arrays and dataframe views. */ export function makeSpanMap(getSpan: (index: number) => { span: T; id: string; parentIds: string[] } | undefined): { diff --git a/public/app/features/alerting/unified/components/rules/RuleState.tsx b/public/app/features/alerting/unified/components/rules/RuleState.tsx index 08990964c69..c94b69b5e1a 100644 --- a/public/app/features/alerting/unified/components/rules/RuleState.tsx +++ b/public/app/features/alerting/unified/components/rules/RuleState.tsx @@ -20,7 +20,7 @@ export const RuleState: FC = ({ rule, isDeleting, isCreating }) => { const style = useStyles2(getStyle); const { promRule } = rule; - // return how long the rule has been in it's firing state, if any + // return how long the rule has been in its firing state, if any const forTime = useMemo(() => { if ( promRule && diff --git a/public/app/features/alerting/unified/utils/redux.ts b/public/app/features/alerting/unified/utils/redux.ts index 193d2a0774d..3178326dbf6 100644 --- a/public/app/features/alerting/unified/utils/redux.ts +++ b/public/app/features/alerting/unified/utils/redux.ts @@ -61,7 +61,7 @@ function requestStateReducer( } /* - * createAsyncSlice creates a slice based on a given async action, exposing it's state. + * createAsyncSlice creates a slice based on a given async action, exposing its state. * takes care to only use state of the latest invocation of the action if there are several in flight. */ export function createAsyncSlice( diff --git a/public/app/features/dashboard/state/actions.ts b/public/app/features/dashboard/state/actions.ts index d31b6e168cc..ff2f03de9d0 100644 --- a/public/app/features/dashboard/state/actions.ts +++ b/public/app/features/dashboard/state/actions.ts @@ -43,7 +43,7 @@ export function updateDashboardPermission( const updated = toUpdateItem(item); - // if this is the item we want to update, update it's permission + // if this is the item we want to update, update its permission if (itemToUpdate === item) { updated.permission = level; } diff --git a/public/app/features/explore/RichHistory/RichHistoryCard.tsx b/public/app/features/explore/RichHistory/RichHistoryCard.tsx index b9f8cf52258..65b88892426 100644 --- a/public/app/features/explore/RichHistory/RichHistoryCard.tsx +++ b/public/app/features/explore/RichHistory/RichHistoryCard.tsx @@ -49,8 +49,8 @@ export type Props = ConnectedProps { /* Hard-coded value so all buttons and icons on right side of card are aligned */ - const rigtColumnWidth = '240px'; - const rigtColumnContentWidth = '170px'; + const rightColumnWidth = '240px'; + const rightColumnContentWidth = '170px'; /* If datasource was removed, card will have inactive color */ const cardColor = theme.colors.bg2; @@ -90,7 +90,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme, isRemoved: boolean) => { font-weight: ${theme.typography.weight.semibold}; `, queryActionButtons: css` - max-width: ${rigtColumnContentWidth}; + max-width: ${rightColumnContentWidth}; display: flex; justify-content: flex-end; font-size: ${theme.typography.size.base}; @@ -100,7 +100,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme, isRemoved: boolean) => { `, queryContainer: css` font-weight: ${theme.typography.weight.semibold}; - width: calc(100% - ${rigtColumnWidth}); + width: calc(100% - ${rightColumnWidth}); `, queryRow: css` border-top: 1px solid ${theme.colors.border1}; @@ -112,7 +112,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme, isRemoved: boolean) => { } `, updateCommentContainer: css` - width: calc(100% + ${rigtColumnWidth}); + width: calc(100% + ${rightColumnWidth}); margin-top: ${theme.spacing.sm}; `, comment: css` @@ -130,7 +130,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme, isRemoved: boolean) => { width: 100%; `, runButton: css` - max-width: ${rigtColumnContentWidth}; + max-width: ${rightColumnContentWidth}; display: flex; justify-content: flex-end; button { diff --git a/public/app/features/folders/state/actions.ts b/public/app/features/folders/state/actions.ts index a1abd069fe7..68743eef477 100644 --- a/public/app/features/folders/state/actions.ts +++ b/public/app/features/folders/state/actions.ts @@ -89,7 +89,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis const updated = toUpdateItem(item); - // if this is the item we want to update, update it's permission + // if this is the item we want to update, update its permission if (itemToUpdate === item) { updated.permission = level; } diff --git a/public/app/features/live/dashboard/DashboardChangedModal.tsx b/public/app/features/live/dashboard/DashboardChangedModal.tsx index b8db7b2f8c9..8ac9c6deb7b 100644 --- a/public/app/features/live/dashboard/DashboardChangedModal.tsx +++ b/public/app/features/live/dashboard/DashboardChangedModal.tsx @@ -37,7 +37,7 @@ export class DashboardChangedModal extends PureComponent { continueEditing: ActionInfo = { label: 'Continue editing', description: - 'Keep your local changes and continue editing. Note: when you save, this will overwrite the most recent chages', + 'Keep your local changes and continue editing. Note: when you save, this will overwrite the most recent changes', action: () => { this.onDismiss(); }, diff --git a/public/app/features/scenes/components/NestedScene.tsx b/public/app/features/scenes/components/NestedScene.tsx index 8bd9c828a9f..a3dd36b62a0 100644 --- a/public/app/features/scenes/components/NestedScene.tsx +++ b/public/app/features/scenes/components/NestedScene.tsx @@ -29,7 +29,7 @@ export class NestedScene extends SceneObjectBase { }); }; - /** Removes itself from it's parent's children array */ + /** Removes itself from its parent's children array */ onRemove = () => { const parent = this.parent!; if ('children' in parent.state) { diff --git a/public/app/features/scenes/core/types.ts b/public/app/features/scenes/core/types.ts index 8021435d317..170b4791534 100644 --- a/public/app/features/scenes/core/types.ts +++ b/public/app/features/scenes/core/types.ts @@ -69,7 +69,7 @@ export interface SceneObject /** Get the scene editor */ getSceneEditor(): SceneEditor; - /** Returns a deep clone this object and all it's children */ + /** Returns a deep clone this object and all its children */ clone(state?: Partial): this; /** A React component to use for rendering the object */ diff --git a/public/app/features/variables/adhoc/picker/AdHocFilter.tsx b/public/app/features/variables/adhoc/picker/AdHocFilter.tsx index 0198b340878..f0a7bd8695e 100644 --- a/public/app/features/variables/adhoc/picker/AdHocFilter.tsx +++ b/public/app/features/variables/adhoc/picker/AdHocFilter.tsx @@ -22,7 +22,7 @@ interface Props { } /** - * Simple filtering component that automatically uses datasource APIs to get available labels and it's values, for + * Simple filtering component that automatically uses datasource APIs to get available labels and its values, for * dynamic visual filtering without need for much setup. Instead of having single onChange prop this reports all the * change events with separate props so it is usable with AdHocPicker. * diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/utils.ts b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/utils.ts index ae5b8cee37f..e90b80f6c71 100644 --- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/utils.ts +++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/utils.ts @@ -298,8 +298,8 @@ export const pipelineOptions: PipelineOptions = { /** * Given a metric `MetricA` and an array of metrics, returns all children of `MetricA`. - * `MetricB` is considered a child of `MetricA` if `MetricA` is referenced by `MetricB` in it's `field` attribute - * (`MetricA.id === MetricB.field`) or in it's pipeline aggregation variables (for bucket_scripts). + * `MetricB` is considered a child of `MetricA` if `MetricA` is referenced by `MetricB` in its `field` attribute + * (`MetricA.id === MetricB.field`) or in its pipeline aggregation variables (for bucket_scripts). * @param metric * @param metrics */ diff --git a/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/LogsQueryEditor/QueryField.tsx b/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/LogsQueryEditor/QueryField.tsx index 9c32ea61699..46fceccb2d9 100644 --- a/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/LogsQueryEditor/QueryField.tsx +++ b/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/LogsQueryEditor/QueryField.tsx @@ -42,7 +42,7 @@ const QueryField: React.FC = ({ query, datasource, o getPromise(), ] as const; - // the kusto schema call might fail, but its okay for that to happen silently + // the kusto schema call might fail, but it's okay for that to happen silently Promise.all(promises).then(([schema, { monaco, editor }]) => { const languages = monaco.languages as unknown as MonacoLanguages; diff --git a/public/app/plugins/datasource/loki/backendResultTransformer.ts b/public/app/plugins/datasource/loki/backendResultTransformer.ts index 74300582270..140681cfd20 100644 --- a/public/app/plugins/datasource/loki/backendResultTransformer.ts +++ b/public/app/plugins/datasource/loki/backendResultTransformer.ts @@ -10,7 +10,7 @@ function isMetricFrame(frame: DataFrame): boolean { return frame.fields.every((field) => field.type === FieldType.time || field.type === FieldType.number); } -// returns a new frame, with meta shallow merged with it's original meta +// returns a new frame, with meta shallow merged with its original meta function setFrameMeta(frame: DataFrame, meta: QueryResultMeta): DataFrame { const { meta: oldMeta, ...rest } = frame; // meta maybe be undefined, we need to handle that diff --git a/public/app/plugins/datasource/loki/datasource.ts b/public/app/plugins/datasource/loki/datasource.ts index dce1ce333a3..19f63df0dc9 100644 --- a/public/app/plugins/datasource/loki/datasource.ts +++ b/public/app/plugins/datasource/loki/datasource.ts @@ -568,11 +568,11 @@ export class LokiDatasource // and any other that were logged in the same ns but before the row. Right now these rows will be lost // because the are before but came it he response that should return only rows after. from: timestamp, - // convert to ns, we loose some precision here but it is not that important at the far points of the context + // convert to ns, we lose some precision here but it is not that important at the far points of the context to: toUtc(row.timeEpochMs + contextTimeBuffer), } : { - // convert to ns, we loose some precision here but it is not that important at the far points of the context + // convert to ns, we lose some precision here but it is not that important at the far points of the context from: toUtc(row.timeEpochMs - contextTimeBuffer), to: timestamp, }; diff --git a/public/app/plugins/datasource/loki/language_provider.ts b/public/app/plugins/datasource/loki/language_provider.ts index ca50bfcd770..36ad7ce8976 100644 --- a/public/app/plugins/datasource/loki/language_provider.ts +++ b/public/app/plugins/datasource/loki/language_provider.ts @@ -387,7 +387,7 @@ export default class LokiLanguageProvider extends LanguageProvider { } /** - * Fetch labels for a selector. This is cached by it's args but also by the global timeRange currently selected as + * Fetch labels for a selector. This is cached by its args but also by the global timeRange currently selected as * they can change over requested time. * @param name */ diff --git a/public/app/plugins/datasource/loki/live_streams_result_transformer.ts b/public/app/plugins/datasource/loki/live_streams_result_transformer.ts index 0ce130ad8f6..894bcdcf096 100644 --- a/public/app/plugins/datasource/loki/live_streams_result_transformer.ts +++ b/public/app/plugins/datasource/loki/live_streams_result_transformer.ts @@ -50,7 +50,7 @@ function createUid(ts: string, labelsString: string, line: string, usedUids: any let id = uuidv5(`${ts}_${labelsString}_${line}`, UUID_NAMESPACE); // Check if generated id is unique - // If not and we've already used it, append it's count after it + // If not and we've already used it, append its count after it if (id in usedUids) { // Increase the count const newCount = usedUids[id] + 1; diff --git a/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.tsx b/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.tsx index ab98fabc1f1..1d338f2e09b 100644 --- a/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.tsx +++ b/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.tsx @@ -51,7 +51,7 @@ export const LokiQueryEditorSelector = React.memo((props) if (newEditorMode === QueryEditorMode.Builder) { const result = buildVisualQueryFromString(query.expr || ''); - // If there are errors, give user a chance to decide if they want to go to builder as that can loose some data. + // If there are errors, give user a chance to decide if they want to go to builder as that can lose some data. if (result.errors.length) { setParseModalOpen(true); return; @@ -81,7 +81,7 @@ export const LokiQueryEditorSelector = React.memo((props) { onChange({ ...query, editorMode: QueryEditorMode.Builder }); diff --git a/public/app/plugins/datasource/loki/querybuilder/parsing.ts b/public/app/plugins/datasource/loki/querybuilder/parsing.ts index 9121c14de43..54c248aba44 100644 --- a/public/app/plugins/datasource/loki/querybuilder/parsing.ts +++ b/public/app/plugins/datasource/loki/querybuilder/parsing.ts @@ -155,7 +155,7 @@ export function handleExpression(expr: string, node: SyntaxNode, context: Contex } default: { - // Any other nodes we just ignore and go to it's children. This should be fine as there are lot's of wrapper + // Any other nodes we just ignore and go to its children. This should be fine as there are lots of wrapper // nodes that can be skipped. // TODO: there are probably cases where we will just skip nodes we don't support and we should be able to // detect those and report back. diff --git a/public/app/plugins/datasource/prometheus/language_provider.ts b/public/app/plugins/datasource/prometheus/language_provider.ts index fc8d14e0d10..d40b3048e53 100644 --- a/public/app/plugins/datasource/prometheus/language_provider.ts +++ b/public/app/plugins/datasource/prometheus/language_provider.ts @@ -507,7 +507,7 @@ export default class PromQlLanguageProvider extends LanguageProvider { } /** - * Fetch labels for a series. This is cached by it's args but also by the global timeRange currently selected as + * Fetch labels for a series. This is cached by its args but also by the global timeRange currently selected as * they can change over requested time. * @param name * @param withName diff --git a/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryEditorSelector.tsx b/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryEditorSelector.tsx index fd45929ece1..65f5059ec7d 100644 --- a/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryEditorSelector.tsx +++ b/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryEditorSelector.tsx @@ -43,7 +43,7 @@ export const PromQueryEditorSelector = React.memo((props) => { if (newMetricEditorMode === QueryEditorMode.Builder) { const result = buildVisualQueryFromString(query.expr || ''); - // If there are errors, give user a chance to decide if they want to go to builder as that can loose some data. + // If there are errors, give user a chance to decide if they want to go to builder as that can lose some data. if (result.errors.length) { setParseModalOpen(true); return; @@ -77,7 +77,7 @@ export const PromQueryEditorSelector = React.memo((props) => { { changeEditorMode(query, QueryEditorMode.Builder, onChange); diff --git a/public/app/plugins/datasource/prometheus/querybuilder/parsing.ts b/public/app/plugins/datasource/prometheus/querybuilder/parsing.ts index c348ef708c9..f95410e97ee 100644 --- a/public/app/plugins/datasource/prometheus/querybuilder/parsing.ts +++ b/public/app/plugins/datasource/prometheus/querybuilder/parsing.ts @@ -154,7 +154,7 @@ export function handleExpression(expr: string, node: SyntaxNode, context: Contex // parsing. context.errors.push(makeError(expr, node)); } - // Any other nodes we just ignore and go to it's children. This should be fine as there are lot's of wrapper + // Any other nodes we just ignore and go to its children. This should be fine as there are lots of wrapper // nodes that can be skipped. // TODO: there are probably cases where we will just skip nodes we don't support and we should be able to // detect those and report back. diff --git a/public/app/plugins/datasource/prometheus/querybuilder/shared/operationUtils.ts b/public/app/plugins/datasource/prometheus/querybuilder/shared/operationUtils.ts index 024c441bc47..7374902925a 100644 --- a/public/app/plugins/datasource/prometheus/querybuilder/shared/operationUtils.ts +++ b/public/app/plugins/datasource/prometheus/querybuilder/shared/operationUtils.ts @@ -311,7 +311,7 @@ function getOnLabelAddedHandler(changeToOperationId: string) { return function onParamChanged(index: number, op: QueryBuilderOperation, def: QueryBuilderOperationDef) { // Check if we actually have the label param. As it's optional the aggregation can have one less, which is the // case of just simple aggregation without label. When user adds the label it now has the same number of params - // as it's definition, and now we can change it to it's `_by` variant. + // as its definition, and now we can change it to its `_by` variant. if (op.params.length === def.params.length) { return { ...op, diff --git a/public/app/plugins/datasource/prometheus/querybuilder/shared/parsingUtils.ts b/public/app/plugins/datasource/prometheus/querybuilder/shared/parsingUtils.ts index aac56d54a28..9d939ebc5c0 100644 --- a/public/app/plugins/datasource/prometheus/querybuilder/shared/parsingUtils.ts +++ b/public/app/plugins/datasource/prometheus/querybuilder/shared/parsingUtils.ts @@ -32,7 +32,7 @@ const variableRegex = /\$(\w+)|\[\[([\s\S]+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\ /** * As variables with $ are creating parsing errors, we first replace them with magic string that is parsable and at - * the same time we can get the variable and it's format back from it. + * the same time we can get the variable and its format back from it. * @param expr */ export function replaceVariables(expr: string) { diff --git a/public/app/plugins/panel/nodeGraph/NodeGraph.tsx b/public/app/plugins/panel/nodeGraph/NodeGraph.tsx index d421e8c8aad..3d627185774 100644 --- a/public/app/plugins/panel/nodeGraph/NodeGraph.tsx +++ b/public/app/plugins/panel/nodeGraph/NodeGraph.tsx @@ -162,7 +162,7 @@ export function NodeGraph({ getLinks, dataFrames, nodeLimit }: Props) { focusedNodeId ); - // If we move from grid to graph layout and we have focused node lets get it's position to center there. We want do + // If we move from grid to graph layout and we have focused node lets get its position to center there. We want do // do it specifically only in that case. const focusPosition = useFocusPositionOnLayout(config, nodes, focusedNodeId); const { panRef, zoomRef, onStepUp, onStepDown, isPanning, position, scale, isMaxZoom, isMinZoom } = usePanAndZoom( diff --git a/public/app/plugins/panel/nodeGraph/layout.worker.js b/public/app/plugins/panel/nodeGraph/layout.worker.js index a943cf68b7e..205289a1fcd 100644 --- a/public/app/plugins/panel/nodeGraph/layout.worker.js +++ b/public/app/plugins/panel/nodeGraph/layout.worker.js @@ -44,7 +44,7 @@ export function layout(nodes, edges, config) { } /** - * This initializes positions of the graph by going from the root to it's children and laying it out in a grid from left + * This initializes positions of the graph by going from the root to its children and laying it out in a grid from left * to right. This works only so, so because service map graphs can have cycles and children levels are not ordered in a * way to minimize the edge lengths. Nevertheless this seems to make the graph easier to nudge with the forces later on * than with the d3 default initial positioning. Also we can fix the root positions later on for a bit more neat @@ -125,7 +125,7 @@ function initializePositions(nodes, edges) { } /** - * Makes sure that the center of the graph based on it's bound is in 0, 0 coordinates. + * Makes sure that the center of the graph based on its bound is in 0, 0 coordinates. * Modifies the nodes directly. */ function centerNodes(nodes) { diff --git a/public/app/plugins/panel/timeseries/migrations.ts b/public/app/plugins/panel/timeseries/migrations.ts index 6fc292e66b3..dff624293a9 100644 --- a/public/app/plugins/panel/timeseries/migrations.ts +++ b/public/app/plugins/panel/timeseries/migrations.ts @@ -412,7 +412,7 @@ export function flotToGraphOptions(angular: any): { fieldConfig: FieldConfigSour value: threshold.value, color: 'transparent', }); - // if next is a lt we need to use it's color + // if next is a lt we need to use its color } else if (next && next.op === 'lt') { steps.push({ value: threshold.value, diff --git a/public/app/types/events.ts b/public/app/types/events.ts index fc4cc3ff05e..d4d984cfde5 100644 --- a/public/app/types/events.ts +++ b/public/app/types/events.ts @@ -111,7 +111,7 @@ export class PanelTransformationsChangedEvent extends BusEventBase { } /** - * Used by panel editor to know when panel plugin it'self trigger option updates + * Used by panel editor to know when panel plugin itself trigger option updates */ export class PanelOptionsChangedEvent extends BusEventBase { static type = 'panels-options-changed';