Skip to content

Commit

Permalink
Fix type about repeated word 'the the' (#7766) (#7806)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6537bfb)

Signed-off-by: leedonggyu <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yulong Ruan <[email protected]>
  • Loading branch information
3 people authored Aug 23, 2024
1 parent 702136b commit 5259615
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/osd-optimizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/core/public/utils/share_weak_replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/query/timefilter/timefilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export type ArgumentType<T> =
| UnresolvedMultipleArgumentType<T>;

/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/expressions/common/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_vega/public/default.spec.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);

Expand Down

0 comments on commit 5259615

Please sign in to comment.