diff --git a/cypress/integration/aliases.js b/cypress/integration/aliases.js index 5b9aa9d9b..f4330cf3c 100644 --- a/cypress/integration/aliases.js +++ b/cypress/integration/aliases.js @@ -59,7 +59,7 @@ describe("Aliases", () => { describe("can create a alias with wildcard and specific name", () => { it("successfully", () => { - cy.get('[data-test-subj="Create AliasButton"]').click(); + cy.get('[data-test-subj="Create aliasButton"]').click(); cy.get('[data-test-subj="form-name-alias"]').type(CREATE_ALIAS); cy.get('[data-test-subj="form-name-indexArray"] [data-test-subj="comboBoxSearchInput"]').type( `${EDIT_INDEX}{enter}${SAMPLE_INDEX_PREFIX}-*{enter}` diff --git a/cypress/integration/rollover.js b/cypress/integration/rollover.js index 9132220dc..4068d3831 100644 --- a/cypress/integration/rollover.js +++ b/cypress/integration/rollover.js @@ -55,7 +55,7 @@ describe("Rollover", () => { // click create cy.get('[data-test-subj="rolloverSubmitButton"]').click({ force: true }); - cy.contains(/has been successfully rollover./); + cy.contains(/has been successfully rolled over./); }); it("rollover valid alias successfully", () => { @@ -66,7 +66,7 @@ describe("Rollover", () => { // click create cy.get('[data-test-subj="rolloverSubmitButton"]').click({ force: true }); - cy.contains(/has been successfully rollover./); + cy.contains(/has been successfully rolled over./); }); it("rollover invalid alias successfully", () => { @@ -84,7 +84,7 @@ describe("Rollover", () => { // click create cy.get('[data-test-subj="rolloverSubmitButton"]').click({ force: true }); - cy.contains(/has been successfully rollover./); + cy.contains(/has been successfully rolled over./); }); }); diff --git a/public/JobHandler/callbacks/reindex.tsx b/public/JobHandler/callbacks/reindex.tsx index 09bd4ba78..7bd9056fd 100644 --- a/public/JobHandler/callbacks/reindex.tsx +++ b/public/JobHandler/callbacks/reindex.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { ReactChild } from "react"; import { CallbackType } from "../interface"; import { ReindexJobMetaData } from "../../models/interfaces"; diff --git a/public/JobHandler/callbacks/shrink.tsx b/public/JobHandler/callbacks/shrink.tsx index 41e5e94ce..e06d99504 100644 --- a/public/JobHandler/callbacks/shrink.tsx +++ b/public/JobHandler/callbacks/shrink.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { CallbackType } from "../interface"; import { RecoveryJobMetaData } from "../../models/interfaces"; diff --git a/public/JobHandler/callbacks/split.tsx b/public/JobHandler/callbacks/split.tsx index 5b24e68f6..f6695d24f 100644 --- a/public/JobHandler/callbacks/split.tsx +++ b/public/JobHandler/callbacks/split.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { CallbackType } from "../interface"; import { RecoveryJobMetaData } from "../../models/interfaces"; diff --git a/public/JobHandler/components/DetailLink.tsx b/public/JobHandler/components/DetailLink.tsx index 68d740c42..cc675ac87 100644 --- a/public/JobHandler/components/DetailLink.tsx +++ b/public/JobHandler/components/DetailLink.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { EuiLink } from "@elastic/eui"; import { ROUTES } from "../../utils/constants"; diff --git a/public/JobHandler/index.ts b/public/JobHandler/index.ts index ce73d9781..593f1c6ee 100644 --- a/public/JobHandler/index.ts +++ b/public/JobHandler/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { jobSchedulerInstance } from "../context/JobSchedulerContext"; import { CoreSetup } from "../../../../src/core/public"; import { callbackForReindex, callbackForReindexTimeout } from "./callbacks/reindex"; diff --git a/public/JobHandler/interface.ts b/public/JobHandler/interface.ts index aa6ec6bed..985830b4a 100644 --- a/public/JobHandler/interface.ts +++ b/public/JobHandler/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { IJobItemMetadata } from "../lib/JobScheduler/interface"; import { CoreSetup } from "../../../../src/core/public"; diff --git a/public/JobHandler/utils.ts b/public/JobHandler/utils.ts index 50a227f10..110c5fde3 100644 --- a/public/JobHandler/utils.ts +++ b/public/JobHandler/utils.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ export const EVENT_MAP = { REINDEX_COMPLETE: "REINDEX_COMPLETE", SPLIT_COMPLETE: "SPLIT_COMPLETE", diff --git a/public/components/AdvancedSettings/index.scss b/public/components/AdvancedSettings/index.scss index 07125c22d..0030118d8 100644 --- a/public/components/AdvancedSettings/index.scss +++ b/public/components/AdvancedSettings/index.scss @@ -1,5 +1,9 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ .accordion-in-advanced-settings.euiAccordion-isOpen { .euiAccordion__childWrapper { transform: none!important; } -} \ No newline at end of file +} diff --git a/public/components/AdvancedSettings/index.tsx b/public/components/AdvancedSettings/index.tsx index 196ee4525..fb4e00d00 100644 --- a/public/components/AdvancedSettings/index.tsx +++ b/public/components/AdvancedSettings/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef } from "react"; import { EuiAccordion, EuiAccordionProps, EuiSpacer, EuiFormRowProps } from "@elastic/eui"; import SwitchableEditor, { SwitchableEditorProps, ISwitchableEditorRef } from "../SwitchableEditor"; diff --git a/public/components/ComboBoxWithoutWarning/index.tsx b/public/components/ComboBoxWithoutWarning/index.tsx index 4c676825c..19c297006 100644 --- a/public/components/ComboBoxWithoutWarning/index.tsx +++ b/public/components/ComboBoxWithoutWarning/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiComboBox, EuiComboBoxProps } from "@elastic/eui"; /** diff --git a/public/components/CustomFormRow/index.tsx b/public/components/CustomFormRow/index.tsx index 22bec5d39..56796a19d 100644 --- a/public/components/CustomFormRow/index.tsx +++ b/public/components/CustomFormRow/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { EuiDescribedFormGroup, EuiFormRow, EuiFormRowProps } from "@elastic/eui"; diff --git a/public/components/DescriptionListHoz/DescriptionListHoz.tsx b/public/components/DescriptionListHoz/DescriptionListHoz.tsx index 12d97e8d4..87b47d419 100644 --- a/public/components/DescriptionListHoz/DescriptionListHoz.tsx +++ b/public/components/DescriptionListHoz/DescriptionListHoz.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiDescriptionList, EuiDescriptionListProps, EuiFlexGrid, EuiFlexGridProps, EuiFlexItem } from "@elastic/eui"; import React from "react"; diff --git a/public/components/DescriptionListHoz/index.ts b/public/components/DescriptionListHoz/index.ts index 706f8c2d2..6816f55f5 100644 --- a/public/components/DescriptionListHoz/index.ts +++ b/public/components/DescriptionListHoz/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import DescriptionListHoz from "./DescriptionListHoz"; export default DescriptionListHoz; diff --git a/public/components/EuiToolTipWrapper/index.tsx b/public/components/EuiToolTipWrapper/index.tsx index e3f309cac..fd651068c 100644 --- a/public/components/EuiToolTipWrapper/index.tsx +++ b/public/components/EuiToolTipWrapper/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { forwardRef } from "react"; import ToolTipWithoutWarning from "../ToolTipWithoutWarning"; diff --git a/public/components/FormGenerator/built_in_components/index.tsx b/public/components/FormGenerator/built_in_components/index.tsx index c725d7da0..1e48b812c 100644 --- a/public/components/FormGenerator/built_in_components/index.tsx +++ b/public/components/FormGenerator/built_in_components/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { forwardRef, useRef } from "react"; import { EuiFieldNumber, EuiFieldText, EuiSwitch, EuiSelect, EuiText, EuiCheckbox } from "@elastic/eui"; import EuiToolTipWrapper, { IEuiToolTipWrapperProps } from "../../EuiToolTipWrapper"; diff --git a/public/components/FormGenerator/index.tsx b/public/components/FormGenerator/index.tsx index 9ca7d7241..aa4156420 100644 --- a/public/components/FormGenerator/index.tsx +++ b/public/components/FormGenerator/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { forwardRef, useRef, useImperativeHandle, useEffect, useMemo } from "react"; import { EuiForm, EuiFormProps, EuiSpacer } from "@elastic/eui"; import { isEqual, omit, pick } from "lodash"; diff --git a/public/components/IndexMapping/IndexMapping.scss b/public/components/IndexMapping/IndexMapping.scss index 44d2f388a..4c1fc11e6 100644 --- a/public/components/IndexMapping/IndexMapping.scss +++ b/public/components/IndexMapping/IndexMapping.scss @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ .index-mapping-tree { .euiTreeView__node { max-height: unset; @@ -16,4 +20,4 @@ margin-right: 8px; vertical-align: middle; } -} \ No newline at end of file +} diff --git a/public/components/IndexMapping/helper.ts b/public/components/IndexMapping/helper.ts index 11ec3c81f..52d905ea0 100644 --- a/public/components/IndexMapping/helper.ts +++ b/public/components/IndexMapping/helper.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { MappingsProperties, MappingsPropertiesObject } from "../../../models/interfaces"; export const transformObjectToArray = (obj: MappingsPropertiesObject): MappingsProperties => { diff --git a/public/components/IndexMapping/interfaces.ts b/public/components/IndexMapping/interfaces.ts index d830f59dd..02fb4f019 100644 --- a/public/components/IndexMapping/interfaces.ts +++ b/public/components/IndexMapping/interfaces.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { MappingsProperties, MappingsPropertiesObject } from "../../../models/interfaces"; export type IndexMappingsAll = { diff --git a/public/components/JSONDiffEditor/JSONDiffEditor.scss b/public/components/JSONDiffEditor/JSONDiffEditor.scss index fa97c6c34..1dd845441 100644 --- a/public/components/JSONDiffEditor/JSONDiffEditor.scss +++ b/public/components/JSONDiffEditor/JSONDiffEditor.scss @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ .json-diff-editor-validate-error { outline: 1px solid red; -} \ No newline at end of file +} diff --git a/public/components/JSONDiffEditor/interface.ts b/public/components/JSONDiffEditor/interface.ts index 622504ab6..890ed1594 100644 --- a/public/components/JSONDiffEditor/interface.ts +++ b/public/components/JSONDiffEditor/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import type { MonacoDiffEditorProps } from "react-monaco-editor"; import { JSONEditorProps } from "../JSONEditor"; diff --git a/public/components/MappingLabel/MappingLabel.tsx b/public/components/MappingLabel/MappingLabel.tsx index 6146233f8..63c923a4c 100644 --- a/public/components/MappingLabel/MappingLabel.tsx +++ b/public/components/MappingLabel/MappingLabel.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { forwardRef, useCallback, useRef, useImperativeHandle } from "react"; import { EuiIcon, diff --git a/public/components/MappingLabel/index.ts b/public/components/MappingLabel/index.ts index c0deb2c16..8b6fb9cb2 100644 --- a/public/components/MappingLabel/index.ts +++ b/public/components/MappingLabel/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import MappingLabel from "./MappingLabel"; export default MappingLabel; diff --git a/public/components/SwitchableEditor/SwitchableEditor.scss b/public/components/SwitchableEditor/SwitchableEditor.scss index faafe20d4..0ca9d142a 100644 --- a/public/components/SwitchableEditor/SwitchableEditor.scss +++ b/public/components/SwitchableEditor/SwitchableEditor.scss @@ -1,6 +1,10 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ .switch-diff-editor-modal { .euiModal__flex { max-height: unset; overflow-y: unset; } -} \ No newline at end of file +} diff --git a/public/components/Toast/index.tsx b/public/components/Toast/index.tsx index fc0679f6e..a37d9ca66 100644 --- a/public/components/Toast/index.tsx +++ b/public/components/Toast/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useEffect, useState } from "react"; import { render } from "react-dom"; import { EuiGlobalToastList, EuiGlobalToastListProps } from "@elastic/eui"; diff --git a/public/components/ToolTipWithoutWarning/index.tsx b/public/components/ToolTipWithoutWarning/index.tsx index 8626293bd..641c6367a 100644 --- a/public/components/ToolTipWithoutWarning/index.tsx +++ b/public/components/ToolTipWithoutWarning/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiToolTip } from "@elastic/eui"; /** diff --git a/public/components/UnsavedChangesBottomBar/UnsavedChangesBottomBar.tsx b/public/components/UnsavedChangesBottomBar/UnsavedChangesBottomBar.tsx index 3dab4ca98..b147e8ea1 100644 --- a/public/components/UnsavedChangesBottomBar/UnsavedChangesBottomBar.tsx +++ b/public/components/UnsavedChangesBottomBar/UnsavedChangesBottomBar.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useEffect, useRef, useState } from "react"; import { EuiButton, EuiBottomBar, EuiFlexGroup, EuiFlexItem, EuiButtonEmpty } from "@elastic/eui"; diff --git a/public/components/UnsavedChangesBottomBar/index.ts b/public/components/UnsavedChangesBottomBar/index.ts index e9107336f..6473decf8 100644 --- a/public/components/UnsavedChangesBottomBar/index.ts +++ b/public/components/UnsavedChangesBottomBar/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import UnsavedChangesBottomBar from "./UnsavedChangesBottomBar"; export default UnsavedChangesBottomBar; diff --git a/public/containers/IndexDetail/index.tsx b/public/containers/IndexDetail/index.tsx index b353d8573..0faa0aa2d 100644 --- a/public/containers/IndexDetail/index.tsx +++ b/public/containers/IndexDetail/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiSpacer } from "@elastic/eui"; import React, { useContext, useEffect, useState } from "react"; import { CatIndex } from "../../../server/models/interfaces"; diff --git a/public/context/JobSchedulerContext.tsx b/public/context/JobSchedulerContext.tsx index 73353dc78..e9d32de39 100644 --- a/public/context/JobSchedulerContext.tsx +++ b/public/context/JobSchedulerContext.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { JobScheduler } from "../lib/JobScheduler"; diff --git a/public/lib/JobScheduler/JobScheduler.ts b/public/lib/JobScheduler/JobScheduler.ts index 4711afb68..35c33e675 100644 --- a/public/lib/JobScheduler/JobScheduler.ts +++ b/public/lib/JobScheduler/JobScheduler.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { IJobSchedulerOptions, IJobItemMetadata, IStorage, JobItemMetadata, TimeoutId } from "./interface"; import { StoreLocalStorage } from "./store-localstorage"; diff --git a/public/lib/JobScheduler/index.ts b/public/lib/JobScheduler/index.ts index 86f934b50..4db66ae6a 100644 --- a/public/lib/JobScheduler/index.ts +++ b/public/lib/JobScheduler/index.ts @@ -1,2 +1,6 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ export * from "./interface"; export { JobScheduler } from "./JobScheduler"; diff --git a/public/lib/JobScheduler/interface.ts b/public/lib/JobScheduler/interface.ts index 9e907fee2..7990ff98f 100644 --- a/public/lib/JobScheduler/interface.ts +++ b/public/lib/JobScheduler/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ export interface IJobItemMetadata { interval: number; extras: any; // extra fields to store job-related info diff --git a/public/lib/JobScheduler/store-localstorage.ts b/public/lib/JobScheduler/store-localstorage.ts index cdb69a4b7..9fa12bbba 100644 --- a/public/lib/JobScheduler/store-localstorage.ts +++ b/public/lib/JobScheduler/store-localstorage.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { IStorage, JobItemMetadata } from "./interface"; const JOB_STORAGE_KEY = "ISM_JOBS"; diff --git a/public/lib/field/index.tsx b/public/lib/field/index.tsx index 6e0384e43..2151c3412 100644 --- a/public/lib/field/index.tsx +++ b/public/lib/field/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useEffect, useRef, useState } from "react"; import { set, get, unset } from "lodash"; import { Rule, FieldOption, FieldInstance, InitOption, InitResult, ValidateFunction, FieldName } from "./interfaces"; diff --git a/public/lib/field/interfaces.ts b/public/lib/field/interfaces.ts index 244de3a06..59f54db31 100644 --- a/public/lib/field/interfaces.ts +++ b/public/lib/field/interfaces.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; // if it's a string[], the value will become nested. diff --git a/public/lib/field/messages.ts b/public/lib/field/messages.ts index df8e34dc4..30c8bd50f 100644 --- a/public/lib/field/messages.ts +++ b/public/lib/field/messages.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ export default { default: "%s verification failed", required: "%s is a required field", diff --git a/public/lib/field/rules/index.ts b/public/lib/field/rules/index.ts index d26b0d365..89db62390 100644 --- a/public/lib/field/rules/index.ts +++ b/public/lib/field/rules/index.ts @@ -1,10 +1,14 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { ValidateFunction } from "../interfaces"; import messages from "../messages"; import { format as messageFormat } from "../util"; const pattern = { - email: /[\w\u4E00-\u9FA5]+([-+.][\w\u4E00-\u9FA5]+)*@[\w\u4E00-\u9FA5]+([-.][\w\u4E00-\u9FA5]+)*\.[\w\u4E00-\u9FA5]+([-.][\w\u4E00-\u9FA5]+)*/, - url: /^(?:(?:http|https|ftp):\/\/|\/\/)(?:(?:(?:[-\w\u00a1-\uffff]+)(?:\.[-\w\u00a1-\uffff]+)+|localhost)(?::\d{2,5})?(?:(?:\/|#)[^\s]*)?)$/, + email: /[\w一-龥]+([-+.][\w一-龥]+)*@[\w一-龥]+([-.][\w一-龥]+)*\.[\w一-龥]+([-.][\w一-龥]+)*/, + url: /^(?:(?:http|https|ftp):\/\/|\/\/)(?:(?:(?:[-\w¡-￿]+)(?:\.[-\w¡-￿]+)+|localhost)(?::\d{2,5})?(?:(?:\/|#)[^\s]*)?)$/, number: /\d*/, tel: /^(1\d{10})$|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{3,4})-(\d{7,8})|(\d{7,8})-(\d{1,4}))$)$|^([ ]?)$/, }; diff --git a/public/lib/field/util.ts b/public/lib/field/util.ts index 6511e2160..c7df9f036 100644 --- a/public/lib/field/util.ts +++ b/public/lib/field/util.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ const formatRegExp = /%[sdj%]/g; export function format(...args: string[]) { diff --git a/public/pages/Aliases/containers/AliasActions/index.tsx b/public/pages/Aliases/containers/AliasActions/index.tsx index 24654043c..6a2a490b2 100644 --- a/public/pages/Aliases/containers/AliasActions/index.tsx +++ b/public/pages/Aliases/containers/AliasActions/index.tsx @@ -54,7 +54,14 @@ export default function AliasesActions(props: AliasesActionsProps) { onClick: onUpdateAlias, }, { - name: "Rollover", + name: "Force merge", + "data-test-subj": "ForceMergeAction", + onClick: () => { + props.history.push(`${ROUTES.FORCE_MERGE}/${selectedItems.map((item) => item.alias).join(",")}`); + }, + }, + { + name: "Roll over", disabled: selectedItems.length > 1, "data-test-subj": "rolloverAction", onClick: () => history.push(selectedItems.length ? `${ROUTES.ROLLOVER}/${selectedItems[0].alias}` : ROUTES.ROLLOVER), diff --git a/public/pages/Aliases/containers/Aliases/Aliases.test.tsx b/public/pages/Aliases/containers/Aliases/Aliases.test.tsx index f381107bc..d733499d1 100644 --- a/public/pages/Aliases/containers/Aliases/Aliases.test.tsx +++ b/public/pages/Aliases/containers/Aliases/Aliases.test.tsx @@ -190,10 +190,10 @@ describe(" spec", () => { }); }); - userEvent.click(getByTestId("Create AliasButton")); + userEvent.click(getByTestId("Create aliasButton")); await findByTestId("createAliasButton"); userEvent.click(getByTestId("cancelCreateAliasButton")); - userEvent.click(getByTestId("Create AliasButton")); + userEvent.click(getByTestId("Create aliasButton")); await findByTestId("createAliasButton"); userEvent.click(getByTestId("createAliasButton")); await waitFor(() => { diff --git a/public/pages/Aliases/containers/Aliases/Aliases.tsx b/public/pages/Aliases/containers/Aliases/Aliases.tsx index ebf82f12e..d9ca4ac22 100644 --- a/public/pages/Aliases/containers/Aliases/Aliases.tsx +++ b/public/pages/Aliases/containers/Aliases/Aliases.tsx @@ -299,7 +299,7 @@ class Aliases extends Component { ), }, { - text: "Create Alias", + text: "Create alias", buttonProps: { fill: true, onClick: () => { @@ -323,7 +323,7 @@ class Aliases extends Component { helpText={
An alias is a virtual index name that can point to one or more indexes. If your data is spread across multiple indexes, - rather than keeping track of which indexes to query, you can create an alias and query it instead.{" "} + you can create and query an alias instead of keeping track of which indexes to query.{" "} Learn more. @@ -370,7 +370,7 @@ class Aliases extends Component { }, { field: "writeIndex", - name: "Writing index", + name: "Write index", render: (value: string) => { if (value) { return {value}; diff --git a/public/pages/Aliases/containers/Aliases/__snapshots__/Aliases.test.tsx.snap b/public/pages/Aliases/containers/Aliases/__snapshots__/Aliases.test.tsx.snap index e1292d0ca..173fe80af 100644 --- a/public/pages/Aliases/containers/Aliases/__snapshots__/Aliases.test.tsx.snap +++ b/public/pages/Aliases/containers/Aliases/__snapshots__/Aliases.test.tsx.snap @@ -31,7 +31,7 @@ exports[` spec renders the component 1`] = `
- An alias is a virtual index name that can point to one or more indexes. If your data is spread across multiple indexes, rather than keeping track of which indexes to query, you can create an alias and query it instead. + An alias is a virtual index name that can point to one or more indexes. If your data is spread across multiple indexes, you can create and query an alias instead of keeping track of which indexes to query. spec renders the component 1`] = ` > @@ -354,9 +354,9 @@ exports[` spec renders the component 1`] = ` > - Writing index + Write index diff --git a/public/pages/Aliases/containers/CreateAlias/index.tsx b/public/pages/Aliases/containers/CreateAlias/index.tsx index 4cbb815ec..4931c4e9d 100644 --- a/public/pages/Aliases/containers/CreateAlias/index.tsx +++ b/public/pages/Aliases/containers/CreateAlias/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useContext, useEffect, useRef } from "react"; import { EuiButton, diff --git a/public/pages/Aliases/interface.ts b/public/pages/Aliases/interface.ts index 2c1c8ac91..86633da3b 100644 --- a/public/pages/Aliases/interface.ts +++ b/public/pages/Aliases/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ export interface IAlias { alias: string; index: string; diff --git a/public/pages/CreateDataStream/components/IndexSettings/IndexSettings.tsx b/public/pages/CreateDataStream/components/IndexSettings/IndexSettings.tsx index e6f999247..1a5b2f201 100644 --- a/public/pages/CreateDataStream/components/IndexSettings/IndexSettings.tsx +++ b/public/pages/CreateDataStream/components/IndexSettings/IndexSettings.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { EuiLink, EuiSpacer, EuiTitle } from "@elastic/eui"; import flat from "flat"; diff --git a/public/pages/CreateDataStream/components/IndexSettings/index.ts b/public/pages/CreateDataStream/components/IndexSettings/index.ts index 640205ae7..b4caf3a71 100644 --- a/public/pages/CreateDataStream/components/IndexSettings/index.ts +++ b/public/pages/CreateDataStream/components/IndexSettings/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import IndexSettings from "./IndexSettings"; export default IndexSettings; diff --git a/public/pages/CreateDataStream/containers/BackingIndices/BackingIndices.tsx b/public/pages/CreateDataStream/containers/BackingIndices/BackingIndices.tsx index fc64c82f8..b7f327a83 100644 --- a/public/pages/CreateDataStream/containers/BackingIndices/BackingIndices.tsx +++ b/public/pages/CreateDataStream/containers/BackingIndices/BackingIndices.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useContext, useEffect, useState } from "react"; import { EuiBasicTable, EuiHealth, EuiLink, EuiSpacer, EuiTitle } from "@elastic/eui"; import { ServicesContext } from "../../../../services"; diff --git a/public/pages/CreateDataStream/containers/BackingIndices/index.ts b/public/pages/CreateDataStream/containers/BackingIndices/index.ts index 33d4f13e0..9270422ae 100644 --- a/public/pages/CreateDataStream/containers/BackingIndices/index.ts +++ b/public/pages/CreateDataStream/containers/BackingIndices/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import BackingIndices from "./BackingIndices"; export default BackingIndices; diff --git a/public/pages/CreateDataStream/containers/CreateDataStream/__snapshots__/CreateDataStream.test.tsx.snap b/public/pages/CreateDataStream/containers/CreateDataStream/__snapshots__/CreateDataStream.test.tsx.snap index 4139954d2..beac5ce3a 100644 --- a/public/pages/CreateDataStream/containers/CreateDataStream/__snapshots__/CreateDataStream.test.tsx.snap +++ b/public/pages/CreateDataStream/containers/CreateDataStream/__snapshots__/CreateDataStream.test.tsx.snap @@ -28,7 +28,7 @@ exports[` spec it goes to data streams page when click cance style="padding-top: 0px; padding-bottom: 4px;" >
- Data streams simplify the management of time-series data. Data streams are composed of multiple backing indices. Search requests are routed to all backing indexes, while indexing requests are routed to the latest write index. + A data stream is composed of multiple backing indexes. Search requests are routed to all the backing indexes, while indexing requests are routed to the latest write index. +
+
+
+ +
spec it goes to data streams page when click cance rel="noopener noreferrer" target="_blank" > - Manage templates + Manage templates. EuiIconMock spec it goes to data streams page when click cance

- Specify data stream name + Enter data stream name

spec it goes to data streams page when click cance class="euiFormLabel euiFormRow__label" for="some_html_id" > - Matching index template + Matching template
) index_template: TemplateItemRemote; }[] >([]); - const [isSubmitting, setIsSubmitting] = useState(false); + const [isLoading, setIsLoading] = useState(false); const field = useField({ values: {} as Partial, }); @@ -57,7 +57,7 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref) if (errors) { return; } - setIsSubmitting(true); + setIsLoading(true); const result = await createDataStream({ value: dataStream.name, commonService: services.commonService, @@ -72,7 +72,7 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref) if (destroyRef.current) { return; } - setIsSubmitting(false); + setIsLoading(false); }; useImperativeHandle(ref, () => field); useEffect(() => { @@ -89,9 +89,14 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref) props.history.replace(ROUTES.DATA_STREAMS); }); } else { + setIsLoading(true); getAllDataStreamTemplate({ commonService: services.commonService, - }).then((result) => setTemplates(result)); + }) + .then((result) => setTemplates(result)) + .finally(() => { + setIsLoading(false); + }); } return () => { destroyRef.current = true; @@ -115,8 +120,8 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref) label="" helpText={
- Data streams simplify the management of time-series data. Data streams are composed of multiple backing indices. Search - requests are routed to all backing indexes, while indexing requests are routed to the latest write index.{" "} + A data stream is composed of multiple backing indexes. Search requests are routed to all the backing indexes, while + indexing requests are routed to the latest write index.{" "} Learn more. @@ -161,11 +166,25 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref) ) : null} + {!isLoading && !templates.length && !isEdit ? ( + <> + + To create a data stream, you must first define its mappings and settings by creating a data stream template. + +
+ props.history.push(`${ROUTES.CREATE_TEMPLATE}?values=${JSON.stringify({ data_stream: {} })}`)}> + Create template + +
+
+ + + ) : null} {values.matchedTemplate ? ( <> - + @@ -192,7 +211,7 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref) - + {isEdit ? "Save changes" : "Create data stream"} diff --git a/public/pages/CreateDataStream/containers/DataStreamDetail/__snapshots__/DataStreamDetail.test.tsx.snap b/public/pages/CreateDataStream/containers/DataStreamDetail/__snapshots__/DataStreamDetail.test.tsx.snap index 96a257e2a..e971f395f 100644 --- a/public/pages/CreateDataStream/containers/DataStreamDetail/__snapshots__/DataStreamDetail.test.tsx.snap +++ b/public/pages/CreateDataStream/containers/DataStreamDetail/__snapshots__/DataStreamDetail.test.tsx.snap @@ -25,7 +25,7 @@ exports[` spec render component 1`] = ` style="padding-top: 0px; padding-bottom: 4px;" >
- Data streams simplify the management of time-series data. Data streams are composed of multiple backing indices. Search requests are routed to all backing indexes, while indexing requests are routed to the latest write index. + A data stream is composed of multiple backing indexes. Search requests are routed to all the backing indexes, while indexing requests are routed to the latest write index. +
+
+
+
+
spec render component 1`] = ` rel="noopener noreferrer" target="_blank" > - Manage templates + Manage templates. EuiIconMock spec render component 1`] = `

- Specify data stream name + Enter data stream name

spec render component 1`] = ` class="euiFormLabel euiFormRow__label" for="some_html_id" > - Matching index template + Matching template
Enter a data stream name. It must match an index pattern from a data stream template.{" "} - Manage templates + Manage templates. } > ({ label: item.name, value: item, @@ -153,11 +157,12 @@ export default function DefineDataStream( }} async {...suggestionRegister} + value={comboBoxRef.current?.state.hasFocus ? undefined : suggestionRegister.value} ref={comboBoxRef} onCreateOption={() => {}} customOptionText={ searchValue - ? `{searchValue} doesn’t match index patterns from any templates. Specify another name or create a data stream template.` + ? `{searchValue} does not match index patterns from any templates. Enter another name or create a data stream template.` : `There are no data stream templates. Please create a data stream template.` } onSearchChange={(dataStreamName: string) => { @@ -210,7 +215,7 @@ export default function DefineDataStream( /> - + {values.matchedTemplate ? ( {values.matchedTemplate} diff --git a/public/pages/CreateDataStream/containers/DefineDataStream/index.ts b/public/pages/CreateDataStream/containers/DefineDataStream/index.ts index 5d157003d..8766b4786 100644 --- a/public/pages/CreateDataStream/containers/DefineDataStream/index.ts +++ b/public/pages/CreateDataStream/containers/DefineDataStream/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import DefineDataStream from "./DefineDataStream"; export default DefineDataStream; diff --git a/public/pages/CreateDataStream/containers/IndexAlias/IndexAlias.tsx b/public/pages/CreateDataStream/containers/IndexAlias/IndexAlias.tsx index d14f29b91..ac4f8773b 100644 --- a/public/pages/CreateDataStream/containers/IndexAlias/IndexAlias.tsx +++ b/public/pages/CreateDataStream/containers/IndexAlias/IndexAlias.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useContext } from "react"; import { EuiSpacer, EuiTitle } from "@elastic/eui"; import AliasSelect from "../../../../components/AliasSelect"; diff --git a/public/pages/CreateDataStream/containers/IndexAlias/index.ts b/public/pages/CreateDataStream/containers/IndexAlias/index.ts index 04b13591d..a3452e8ee 100644 --- a/public/pages/CreateDataStream/containers/IndexAlias/index.ts +++ b/public/pages/CreateDataStream/containers/IndexAlias/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import IndexAlias from "./IndexAlias"; export default IndexAlias; diff --git a/public/pages/CreateDataStream/containers/TemplateMappings/TemplateMappings.tsx b/public/pages/CreateDataStream/containers/TemplateMappings/TemplateMappings.tsx index ce68cc41c..da24070e8 100644 --- a/public/pages/CreateDataStream/containers/TemplateMappings/TemplateMappings.tsx +++ b/public/pages/CreateDataStream/containers/TemplateMappings/TemplateMappings.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useContext, useRef } from "react"; import { EuiFormRow, EuiLink, EuiSpacer, EuiTitle } from "@elastic/eui"; import { CoreStart } from "opensearch-dashboards/public"; diff --git a/public/pages/CreateDataStream/containers/TemplateMappings/index.ts b/public/pages/CreateDataStream/containers/TemplateMappings/index.ts index d32142ff3..23121c4fe 100644 --- a/public/pages/CreateDataStream/containers/TemplateMappings/index.ts +++ b/public/pages/CreateDataStream/containers/TemplateMappings/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import TemplateMappings from "./TemplateMappings"; export default TemplateMappings; diff --git a/public/pages/CreateDataStream/hooks.tsx b/public/pages/CreateDataStream/hooks.tsx index f8dbeb74b..1af6649b7 100644 --- a/public/pages/CreateDataStream/hooks.tsx +++ b/public/pages/CreateDataStream/hooks.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiFormRowProps } from "@elastic/eui"; import { flatten } from "flat"; import { get, set } from "lodash"; diff --git a/public/pages/CreateDataStream/interface.ts b/public/pages/CreateDataStream/interface.ts index 9401a5d8d..dd3a2682e 100644 --- a/public/pages/CreateDataStream/interface.ts +++ b/public/pages/CreateDataStream/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { RouteComponentProps } from "react-router-dom"; import { FieldInstance } from "../../lib/field"; import { DataStream } from "../../../server/models/interfaces"; diff --git a/public/pages/CreateIndexTemplate/components/DefineTemplate/DefineTemplate.tsx b/public/pages/CreateIndexTemplate/components/DefineTemplate/DefineTemplate.tsx index 3127f4349..79c6d6d2b 100644 --- a/public/pages/CreateIndexTemplate/components/DefineTemplate/DefineTemplate.tsx +++ b/public/pages/CreateIndexTemplate/components/DefineTemplate/DefineTemplate.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { EuiCallOut, EuiSpacer } from "@elastic/eui"; import { SubDetailProps } from "../../interface"; diff --git a/public/pages/CreateIndexTemplate/components/DefineTemplate/index.ts b/public/pages/CreateIndexTemplate/components/DefineTemplate/index.ts index 3d8933939..fc2694a3c 100644 --- a/public/pages/CreateIndexTemplate/components/DefineTemplate/index.ts +++ b/public/pages/CreateIndexTemplate/components/DefineTemplate/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import DefineTemplate from "./DefineTemplate"; export default DefineTemplate; diff --git a/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx b/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx index 058fb6888..ed044bc49 100644 --- a/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx +++ b/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from "react"; import { EuiLink, EuiSpacer } from "@elastic/eui"; import flat from "flat"; diff --git a/public/pages/CreateIndexTemplate/components/IndexSettings/index.ts b/public/pages/CreateIndexTemplate/components/IndexSettings/index.ts index 640205ae7..b4caf3a71 100644 --- a/public/pages/CreateIndexTemplate/components/IndexSettings/index.ts +++ b/public/pages/CreateIndexTemplate/components/IndexSettings/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import IndexSettings from "./IndexSettings"; export default IndexSettings; diff --git a/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx b/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx index ba927f6b1..ebac81f2d 100644 --- a/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx +++ b/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiRadio, EuiSpacer } from "@elastic/eui"; import { TEMPLATE_TYPE } from "../../../../utils/constants"; import React from "react"; diff --git a/public/pages/CreateIndexTemplate/components/TemplateType/index.ts b/public/pages/CreateIndexTemplate/components/TemplateType/index.ts index d8bd5aedd..f444c0741 100644 --- a/public/pages/CreateIndexTemplate/components/TemplateType/index.ts +++ b/public/pages/CreateIndexTemplate/components/TemplateType/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import TemplateType from "./TemplateType"; export { TemplateConvert } from "./TemplateType"; diff --git a/public/pages/CreateIndexTemplate/containers/IndexAlias/IndexAlias.tsx b/public/pages/CreateIndexTemplate/containers/IndexAlias/IndexAlias.tsx index d95d7f127..02f1ca7a1 100644 --- a/public/pages/CreateIndexTemplate/containers/IndexAlias/IndexAlias.tsx +++ b/public/pages/CreateIndexTemplate/containers/IndexAlias/IndexAlias.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useContext } from "react"; import { EuiSpacer, EuiTitle } from "@elastic/eui"; import { ContentPanel } from "../../../../components/ContentPanel"; diff --git a/public/pages/CreateIndexTemplate/containers/IndexAlias/index.ts b/public/pages/CreateIndexTemplate/containers/IndexAlias/index.ts index 04b13591d..a3452e8ee 100644 --- a/public/pages/CreateIndexTemplate/containers/IndexAlias/index.ts +++ b/public/pages/CreateIndexTemplate/containers/IndexAlias/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import IndexAlias from "./IndexAlias"; export default IndexAlias; diff --git a/public/pages/CreateIndexTemplate/containers/TemplateDetail/hooks.tsx b/public/pages/CreateIndexTemplate/containers/TemplateDetail/hooks.tsx index f9e4fb94d..2b4a59528 100644 --- a/public/pages/CreateIndexTemplate/containers/TemplateDetail/hooks.tsx +++ b/public/pages/CreateIndexTemplate/containers/TemplateDetail/hooks.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { get, set } from "lodash"; import { flatten } from "flat"; import { CoreStart } from "opensearch-dashboards/public"; diff --git a/public/pages/CreateIndexTemplate/containers/TemplateMappings/TemplateMappings.tsx b/public/pages/CreateIndexTemplate/containers/TemplateMappings/TemplateMappings.tsx index da75d3a54..7295cfd48 100644 --- a/public/pages/CreateIndexTemplate/containers/TemplateMappings/TemplateMappings.tsx +++ b/public/pages/CreateIndexTemplate/containers/TemplateMappings/TemplateMappings.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useContext, useRef } from "react"; import { EuiFormRow, EuiLink, EuiSpacer, EuiTitle } from "@elastic/eui"; import { CoreStart } from "opensearch-dashboards/public"; diff --git a/public/pages/CreateIndexTemplate/containers/TemplateMappings/index.ts b/public/pages/CreateIndexTemplate/containers/TemplateMappings/index.ts index d32142ff3..23121c4fe 100644 --- a/public/pages/CreateIndexTemplate/containers/TemplateMappings/index.ts +++ b/public/pages/CreateIndexTemplate/containers/TemplateMappings/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import TemplateMappings from "./TemplateMappings"; export default TemplateMappings; diff --git a/public/pages/CreateIndexTemplate/hooks.tsx b/public/pages/CreateIndexTemplate/hooks.tsx index 8560a5e1b..732c1a61d 100644 --- a/public/pages/CreateIndexTemplate/hooks.tsx +++ b/public/pages/CreateIndexTemplate/hooks.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiFormRowProps } from "@elastic/eui"; import { FieldInstance, transformNameToString } from "../../lib/field"; diff --git a/public/pages/CreateIndexTemplate/interface.ts b/public/pages/CreateIndexTemplate/interface.ts index 36d8a4a89..de2ce1fb6 100644 --- a/public/pages/CreateIndexTemplate/interface.ts +++ b/public/pages/CreateIndexTemplate/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { RouteComponentProps } from "react-router-dom"; import { FieldInstance } from "../../lib/field"; diff --git a/public/pages/DataStreams/containers/DataStreams/DataStreams.tsx b/public/pages/DataStreams/containers/DataStreams/DataStreams.tsx index bfe6b8bcc..2e538a0b7 100644 --- a/public/pages/DataStreams/containers/DataStreams/DataStreams.tsx +++ b/public/pages/DataStreams/containers/DataStreams/DataStreams.tsx @@ -277,7 +277,7 @@ class DataStreams extends Component { fullWidth helpText={
- Data streams simplify the management of time-series data. Data streams are composed of multiple backing indices. Search + Data streams simplify the management of time-series data. Data streams are composed of multiple backing indexes. Search requests are routed to all backing indexes, while indexing requests are routed to the latest write index.{" "} Learn more. diff --git a/public/pages/DataStreams/containers/DataStreams/__snapshots__/DataStreams.test.tsx.snap b/public/pages/DataStreams/containers/DataStreams/__snapshots__/DataStreams.test.tsx.snap index 6a732d219..cf2310174 100644 --- a/public/pages/DataStreams/containers/DataStreams/__snapshots__/DataStreams.test.tsx.snap +++ b/public/pages/DataStreams/containers/DataStreams/__snapshots__/DataStreams.test.tsx.snap @@ -29,7 +29,7 @@ exports[` spec renders the component 1`] = ` id="some_html_id-help-0" >
- Data streams simplify the management of time-series data. Data streams are composed of multiple backing indices. Search requests are routed to all backing indexes, while indexing requests are routed to the latest write index. + Data streams simplify the management of time-series data. Data streams are composed of multiple backing indexes. Search requests are routed to all backing indexes, while indexing requests are routed to the latest write index.
- Expunge deleted documents + Remove deleted documents
- Expunge all segments containing more than 10% of deleted documents. The percentage is configurable with the setting index.merge.policy.expunge_deletes_allowed. + Expunge all segments containing more than 10% of deleted documents. The percentage is configurable in the index.merge.policy.expunge_deletes_allowed setting.
- Only expunge delete + Completely remove deleted documents
@@ -197,7 +197,7 @@ Object { class="euiFormLabel euiFormRow__label" for="some_html_id" > - Segment indexes + Index segments
- Expunge deleted documents + Remove deleted documents
- Expunge all segments containing more than 10% of deleted documents. The percentage is configurable with the setting index.merge.policy.expunge_deletes_allowed. + Expunge all segments containing more than 10% of deleted documents. The percentage is configurable in the index.merge.policy.expunge_deletes_allowed setting.
- Only expunge delete + Completely remove deleted documents
diff --git a/public/pages/ForceMerge/components/SwitchNumber/index.tsx b/public/pages/ForceMerge/components/SwitchNumber/index.tsx index 011feeb88..7ef9de185 100644 --- a/public/pages/ForceMerge/components/SwitchNumber/index.tsx +++ b/public/pages/ForceMerge/components/SwitchNumber/index.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React, { useState } from "react"; import { EuiRadioGroup, EuiSpacer } from "@elastic/eui"; import CustomFormRow from "../../../../components/CustomFormRow"; @@ -38,7 +42,7 @@ export default function SwitchNumber(props: SwitchNumberProps) { diff --git a/public/pages/ForceMerge/container/ForceMerge/ForceMerge.tsx b/public/pages/ForceMerge/container/ForceMerge/ForceMerge.tsx index 38677b195..e830cfe92 100644 --- a/public/pages/ForceMerge/container/ForceMerge/ForceMerge.tsx +++ b/public/pages/ForceMerge/container/ForceMerge/ForceMerge.tsx @@ -215,16 +215,22 @@ export default function ForceMergeWrapper(props: Omit

Force merge

+ + <> + spec renders the component 1`] = ` > Force merge +
+
+
+ Manually merge data stream index shards or backing indexes. You can also use force merge to remove deleted documents within indexes. +
+
+
@@ -57,7 +72,7 @@ exports[` spec renders the component 1`] = ` class="euiFormLabel euiFormRow__label" for="some_html_id" > - Specify source indexes or data streams + Select source indexes or data streams
spec renders the component 1`] = ` class="euiFormHelpText euiFormRow__text" style="padding-top: 0px; padding-bottom: 4px;" > - Specify one or more indexes or data streams you want to force merge. + Select one or more indexes or data streams you want to force merge.
- Assign a write index from this alias before performing rollover. + Select a write index from this alias before performing rollover. -

Rollover

+

Roll over

-
{tempValue.source} has been successfully rollover.
+
{tempValue.source} has been successfully rolled over.
{result.response?.new_index ? (
{result.response?.new_index} is @@ -370,7 +370,7 @@ export default function Rollover(props: RolloverProps) { isLoading={loading} data-test-subj="rolloverSubmitButton" > - Rollover + Roll over diff --git a/public/pages/Rollover/containers/Rollover/__snapshots__/Rollover.test.tsx.snap b/public/pages/Rollover/containers/Rollover/__snapshots__/Rollover.test.tsx.snap index 16ea25078..53f64dd13 100644 --- a/public/pages/Rollover/containers/Rollover/__snapshots__/Rollover.test.tsx.snap +++ b/public/pages/Rollover/containers/Rollover/__snapshots__/Rollover.test.tsx.snap @@ -7,7 +7,7 @@ exports[`container spec render the component 1`] = `

- Rollover + Roll over

spec render the component 1`] = ` class="euiFormLabel euiFormRow__label" for="some_html_id" > - Specify source alias or data stream + Select an alias or data stream
spec render the component 1`] = ` class="euiFormHelpText euiFormRow__text" style="padding-top: 0px; padding-bottom: 4px;" > - Specify one alias or data stream you want to rollover from. + Select an alias or data stream to roll over.
spec render the component 1`] = ` - Rollover + Roll over diff --git a/public/pages/Rollover/containers/Rollover/index.ts b/public/pages/Rollover/containers/Rollover/index.ts index c6d13070d..1dc2e0d18 100644 --- a/public/pages/Rollover/containers/Rollover/index.ts +++ b/public/pages/Rollover/containers/Rollover/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import IndexDetail from "./Rollover"; export default IndexDetail; diff --git a/public/pages/Rollover/hooks.tsx b/public/pages/Rollover/hooks.tsx index 5cc7339c6..d34bc7d33 100644 --- a/public/pages/Rollover/hooks.tsx +++ b/public/pages/Rollover/hooks.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { EuiFormRowProps } from "@elastic/eui"; import { merge, isEmpty } from "lodash"; import { FieldInstance, transformNameToString } from "../../lib/field"; diff --git a/public/pages/Rollover/interface.ts b/public/pages/Rollover/interface.ts index 8dd1a258b..f7d9c0580 100644 --- a/public/pages/Rollover/interface.ts +++ b/public/pages/Rollover/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { FieldInstance } from "../../lib/field"; import { IndexItem } from "../../models/interfaces"; diff --git a/public/pages/Templates/containers/Templates/index.ts b/public/pages/Templates/containers/Templates/index.ts index fa0604c61..b666cc63c 100644 --- a/public/pages/Templates/containers/Templates/index.ts +++ b/public/pages/Templates/containers/Templates/index.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import Templates from "./Templates"; export default Templates; diff --git a/public/pages/Templates/interface.ts b/public/pages/Templates/interface.ts index fba36eac9..c5847ab0e 100644 --- a/public/pages/Templates/interface.ts +++ b/public/pages/Templates/interface.ts @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import { TemplateItemRemote } from "../../../models/interfaces"; export interface ITemplate {