From 5259615368bb5f7fa2ed2cc2bef0436cbacec363 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:08:30 +0800 Subject: [PATCH] Fix type about repeated word 'the the' (#7766) (#7806) (cherry picked from commit 6537bfb3c4a558716bd353c61eb0cbb92ed154b6) Signed-off-by: leedonggyu Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Yulong Ruan --- packages/osd-optimizer/README.md | 2 +- src/core/public/utils/share_weak_replay.ts | 2 +- .../server/tutorial/instructions/apm_agent_instructions.ts | 2 +- src/plugins/data/public/query/timefilter/timefilter.ts | 2 +- .../expressions/common/expression_functions/arguments.ts | 2 +- src/plugins/expressions/common/fonts.ts | 2 +- .../opensearch_ui_shared/public/request/use_request.test.ts | 2 +- .../vis_default_editor/public/components/agg_group_helper.tsx | 2 +- .../public/application/lib/set_is_reversed.js | 2 +- src/plugins/vis_type_vega/public/default.spec.hjson | 2 +- .../public/vislib/components/tooltip/_collect_branch.js | 2 +- .../public/vislib/helpers/point_series/_init_y_axis.test.ts | 4 ++-- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/osd-optimizer/README.md b/packages/osd-optimizer/README.md index c10f639a38fc..e737f881f125 100644 --- a/packages/osd-optimizer/README.md +++ b/packages/osd-optimizer/README.md @@ -26,7 +26,7 @@ We only limit the number of workers we will start at any given time. If we start ### Caching -Bundles built by the the optimizer include a cache file which describes the information needed to determine if the bundle needs to be rebuilt when the optimizer is restarted. Caching is enabled by default and is very aggressive about invalidating the cache output, but if you need to disable caching you can pass `--no-cache` to `node scripts/build_opensearch_dashboards_platform_plugins`, or set the `OSD_OPTIMIZER_NO_CACHE` environment variable to anything (env overrides everything). +Bundles built by the optimizer include a cache file which describes the information needed to determine if the bundle needs to be rebuilt when the optimizer is restarted. Caching is enabled by default and is very aggressive about invalidating the cache output, but if you need to disable caching you can pass `--no-cache` to `node scripts/build_opensearch_dashboards_platform_plugins`, or set the `OSD_OPTIMIZER_NO_CACHE` environment variable to anything (env overrides everything). When a bundle is determined to be up-to-date a worker is not started for the bundle. If running the optimizer with the `--dev/--watch` flag, then all the files referenced by cached bundles are watched for changes. Once a change is detected in any of the files referenced by the built bundle a worker is started. If a file is changed that is referenced by several bundles then workers will be started for each bundle, combining workers together to respect the worker limit. diff --git a/src/core/public/utils/share_weak_replay.ts b/src/core/public/utils/share_weak_replay.ts index 5cff5c7d817c..07357826c874 100644 --- a/src/core/public/utils/share_weak_replay.ts +++ b/src/core/public/utils/share_weak_replay.ts @@ -40,7 +40,7 @@ import { takeUntil } from 'rxjs/operators'; * - Replay-ability is only maintained while the source is active, if it completes or errors * then complete/error is sent to the current subscribers and the replay buffer is cleared. * - * - Any subscription after the the source completes or errors will create a new subscription + * - Any subscription after the source completes or errors will create a new subscription * to the source observable. * * @param bufferSize Optional, default is `Number.POSITIVE_INFINITY` diff --git a/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts b/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts index 2a8edbb4604b..a3248fdae065 100644 --- a/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts +++ b/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts @@ -608,7 +608,7 @@ export const createDotNetAgentInstructions = (apmServerUrl = '', secretToken = ' }), textPre: i18n.translate('apmOss.tutorial.dotNetClient.download.textPre', { defaultMessage: - 'Add the the agent package(s) from [NuGet]({allNuGetPackagesLink}) to your .NET application. There are multiple \ + 'Add the agent package(s) from [NuGet]({allNuGetPackagesLink}) to your .NET application. There are multiple \ NuGet packages available for different use cases. \n\nFor an ASP.NET Core application with Entity Framework \ Core download the [Elastic.Apm.NetCoreAll]({netCoreAllApmPackageLink}) package. This package will automatically add every \ agent component to your application. \n\n In case you would like to to minimize the dependencies, you can use the \ diff --git a/src/plugins/data/public/query/timefilter/timefilter.ts b/src/plugins/data/public/query/timefilter/timefilter.ts index 4810eadb3982..24a2f493aada 100644 --- a/src/plugins/data/public/query/timefilter/timefilter.ts +++ b/src/plugins/data/public/query/timefilter/timefilter.ts @@ -45,7 +45,7 @@ export class Timefilter { private enabledUpdated$ = new BehaviorSubject(false); // Fired when a user changes the timerange private timeUpdate$ = new Subject(); - // Fired when a user changes the the autorefresh settings + // Fired when a user changes the autorefresh settings private refreshIntervalUpdate$ = new Subject(); // Used when an auto refresh is triggered private autoRefreshFetch$ = new Subject(); diff --git a/src/plugins/expressions/common/expression_functions/arguments.ts b/src/plugins/expressions/common/expression_functions/arguments.ts index 9a7305e03044..4c71d1769715 100644 --- a/src/plugins/expressions/common/expression_functions/arguments.ts +++ b/src/plugins/expressions/common/expression_functions/arguments.ts @@ -42,7 +42,7 @@ export type ArgumentType = | UnresolvedMultipleArgumentType; /** - * Map the type within the the generic array to a string-based + * Map the type within the generic array to a string-based * representation of the type. */ // prettier-ignore diff --git a/src/plugins/expressions/common/fonts.ts b/src/plugins/expressions/common/fonts.ts index 23557010c6a3..29804391dda6 100644 --- a/src/plugins/expressions/common/fonts.ts +++ b/src/plugins/expressions/common/fonts.ts @@ -29,7 +29,7 @@ */ /** - * This type contains a unions of all supported font labels, or the the name of + * This type contains a unions of all supported font labels, or the name of * the font the user would see in a UI. */ export type FontLabel = typeof fonts[number]['label']; diff --git a/src/plugins/opensearch_ui_shared/public/request/use_request.test.ts b/src/plugins/opensearch_ui_shared/public/request/use_request.test.ts index 5b9964070d57..002b4cc5df33 100644 --- a/src/plugins/opensearch_ui_shared/public/request/use_request.test.ts +++ b/src/plugins/opensearch_ui_shared/public/request/use_request.test.ts @@ -309,7 +309,7 @@ describe('useRequest hook', () => { hookResult.resendRequest(); }); - // The original quest resolves but it's been marked as outdated by the the manual resendRequest + // The original quest resolves but it's been marked as outdated by the manual resendRequest // call "interrupts", so data is left undefined. await advanceTime(HALF_REQUEST_TIME); expect(getSendRequestSpy().callCount).toBe(1); diff --git a/src/plugins/vis_default_editor/public/components/agg_group_helper.tsx b/src/plugins/vis_default_editor/public/components/agg_group_helper.tsx index 62d9f1cbc371..336184e189db 100644 --- a/src/plugins/vis_default_editor/public/components/agg_group_helper.tsx +++ b/src/plugins/vis_default_editor/public/components/agg_group_helper.tsx @@ -39,7 +39,7 @@ const isAggRemovable = (agg: IAggConfig, group: IAggConfig[], schemas: Schema[]) (count, aggregation: IAggConfig) => (aggregation.schema === agg.schema ? ++count : count), 0 ); - // make sure the the number of these aggs is above the min + // make sure the number of these aggs is above the min return metricCount > schema.min; }; diff --git a/src/plugins/vis_type_timeseries/public/application/lib/set_is_reversed.js b/src/plugins/vis_type_timeseries/public/application/lib/set_is_reversed.js index e33bfe5b2295..a4b4ca354969 100644 --- a/src/plugins/vis_type_timeseries/public/application/lib/set_is_reversed.js +++ b/src/plugins/vis_type_timeseries/public/application/lib/set_is_reversed.js @@ -72,7 +72,7 @@ export const isBackgroundDark = (backgroundColor, currentTheme) => { }; /** - * Checks to see if `backgroundColor` is the the same lightness spectrum as `currentTheme`. + * Checks to see if `backgroundColor` is the same lightness spectrum as `currentTheme`. */ export const isBackgroundInverted = (backgroundColor, currentTheme) => { const backgroundIsDark = isBackgroundDark(backgroundColor, currentTheme); diff --git a/src/plugins/vis_type_vega/public/default.spec.hjson b/src/plugins/vis_type_vega/public/default.spec.hjson index 457a6398b9d5..fa9407b5856d 100644 --- a/src/plugins/vis_type_vega/public/default.spec.hjson +++ b/src/plugins/vis_type_vega/public/default.spec.hjson @@ -15,7 +15,7 @@ /* An object instead of a string for the "url" param is treated as an OpenSearch query. Anything inside this object is not part of the Vega language, but only understood by OpenSearch Dashboards and OpenSearch server. This query counts the number of documents per time interval, assuming you have a @timestamp field in your data. - OpenSearch Dashboards has a special handling for the fields surrounded by "%". They are processed before the the query is sent to OpenSearch. This way the query becomes context aware, and can use the time range and the dashboard filters. + OpenSearch Dashboards has a special handling for the fields surrounded by "%". They are processed before the query is sent to OpenSearch. This way the query becomes context aware, and can use the time range and the dashboard filters. */ // Apply dashboard context filters when set diff --git a/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_collect_branch.js b/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_collect_branch.js index b6245740f2c1..a08b82189fb4 100644 --- a/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_collect_branch.js +++ b/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_collect_branch.js @@ -31,7 +31,7 @@ export function collectBranch(leaf) { // walk up the branch for each parent function walk(item, memo) { - // record the the depth + // record the depth const depth = item.depth - 1; // For buckets, we use the column name to determine what the field name is. diff --git a/src/plugins/vis_type_vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts b/src/plugins/vis_type_vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts index 154f64b58f16..a617f99861a7 100644 --- a/src/plugins/vis_type_vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts +++ b/src/plugins/vis_type_vislib/public/vislib/helpers/point_series/_init_y_axis.test.ts @@ -51,7 +51,7 @@ describe('initYAxis', function () { const singleYBaseChart = _.cloneDeep(baseChart); singleYBaseChart.aspects.y = [singleYBaseChart.aspects.y[0]]; - it('sets the yAxisFormatter the the field formats convert fn', function () { + it('sets the yAxisFormatter the field formats convert fn', function () { const chart = _.cloneDeep(singleYBaseChart); initYAxis(chart); expect(chart).toHaveProperty('yAxisFormat'); @@ -65,7 +65,7 @@ describe('initYAxis', function () { }); describe('with multiple y aspects', function () { - it('sets the yAxisFormatter the the field formats convert fn for the first y aspect', function () { + it('sets the yAxisFormatter the field formats convert fn for the first y aspect', function () { const chart = _.cloneDeep(baseChart); initYAxis(chart);