diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js b/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js index 4d32227c8..0989b017a 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js @@ -9,7 +9,7 @@ import samplePolicy from "../../../fixtures/plugins/index-management-dashboards- const POLICY_ID = "test_policy_id"; const SAMPLE_INDEX = "sample_index"; -describe("Indices", () => { +describe("Indexes", () => { beforeEach(() => { // Set welcome screen tracking to false localStorage.setItem("home:welcome:show", "false"); @@ -52,7 +52,7 @@ describe("Indices", () => { }); }); - describe("can show data stream indices", () => { + describe("can show data stream indexes", () => { before(() => { cy.deleteAllIndices(); cy.deleteIMJobs(); @@ -169,7 +169,7 @@ describe("Indices", () => { }); }); - describe("can make indices deleted", () => { + describe("can make indexes deleted", () => { before(() => { cy.deleteAllIndices(); cy.deleteIMJobs(); @@ -417,7 +417,7 @@ describe("Indices", () => { cy.get('[data-test-subj="Close Action"]').should("exist").should("not.have.class", "euiContextMenuItem-isDisabled").click(); // Check for close index modal - cy.contains("Close indices"); + cy.contains("Close indexes"); // Close confirm button should be disabled cy.get('[data-test-subj="Close Confirm button"]').should("have.class", "euiButton-isDisabled"); @@ -457,7 +457,7 @@ describe("Indices", () => { cy.get('[data-test-subj="Open Action"]').should("exist").should("not.have.class", "euiContextMenuItem-isDisabled").click(); // Check for open index modal - cy.contains("Open indices"); + cy.contains("Open indexes"); cy.get('[data-test-subj="Open Confirm button"]').click(); diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/managed_indices_spec.js b/cypress/integration/plugins/index-management-dashboards-plugin/managed_indices_spec.js index 40e1a49cb..f9335e318 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/managed_indices_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/managed_indices_spec.js @@ -14,7 +14,7 @@ const POLICY_ID_ROLLOVER = "test_policy_rollover"; const SAMPLE_INDEX = "sample_index"; const SAMPLE_INDEX_ROLLOVER = "sample_index-01"; -describe("Managed indices", () => { +describe("Managed indexes", () => { beforeEach(() => { // Set welcome screen tracking to false localStorage.setItem("home:welcome:show", "false"); @@ -58,13 +58,13 @@ describe("Managed indices", () => { }); // Confirm we got a remove policy toaster - cy.contains("Removed policy from 1 managed indices"); + cy.contains("Removed policy from 1 managed indexes"); // Wait some time for remove policy to execute before reload cy.wait(3000).reload(); // Confirm we are back to empty loading state, give 20 seconds as OSD takes a while to load - cy.contains("There are no existing managed indices.", { timeout: 20000 }); + cy.contains("There are no existing managed indexes.", { timeout: 20000 }); }); }); @@ -121,7 +121,7 @@ describe("Managed indices", () => { cy.get(`[data-test-subj="retryModalRetryButton"]`).click({ force: true }); // Confirm we got retry toaster - cy.contains("Retried 1 managed indices"); + cy.contains("Retried 1 managed indexes"); // Reload the page cy.reload(); @@ -238,10 +238,10 @@ describe("Managed indices", () => { }); // Confirm we got the change policy toaster - cy.contains("Changed policy on 1 indices"); + cy.contains("Changed policy on 1 indexes"); // Click back to Managed Indices page by clicking "Managed indices" breadcrumb - cy.contains("Policy managed indices").click(); + cy.contains("Policy managed indexes").click(); // Speed up execution of managed index cy.updateManagedIndexConfigStartTime(SAMPLE_INDEX); @@ -257,7 +257,7 @@ describe("Managed indices", () => { }); }); - describe("can manage data stream indices", () => { + describe("can manage data stream indexes", () => { before(() => { cy.deleteAllIndices(); cy.deleteIMJobs(); diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/rollups_spec.js b/cypress/integration/plugins/index-management-dashboards-plugin/rollups_spec.js index 339ebaee2..570481f18 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/rollups_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/rollups_spec.js @@ -142,7 +142,7 @@ describe("Rollups", () => { cy.get("button").contains("Next").click({ force: true }); // Confirm that we got to step 4 of creation page - cy.contains("Job name and indices"); + cy.contains("Job name and indexes"); // Click the create button cy.get("button").contains("Create").click({ force: true }); diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/snapshots_spec.js b/cypress/integration/plugins/index-management-dashboards-plugin/snapshots_spec.js index 51560333a..2d1bc1afc 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/snapshots_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/snapshots_spec.js @@ -83,7 +83,7 @@ describe("Snapshots", () => { }); describe("Snapshot can be restored", () => { - it("Successfully restores indices from snapshot", () => { + it("Successfully restores indexes from snapshot", () => { // Must wait here before refreshing so snapshot status becomes 'success' cy.wait(5000); diff --git a/cypress/utils/commands.js b/cypress/utils/commands.js index 6e7ccbbc3..4dd68a224 100644 --- a/cypress/utils/commands.js +++ b/cypress/utils/commands.js @@ -97,13 +97,13 @@ Cypress.Commands.add("login", () => { }); Cypress.Commands.add("deleteAllIndices", () => { - cy.log("Deleting all indices"); + cy.log("Deleting all indexes"); cy.request("DELETE", `${Cypress.env("openSearchUrl")}/index*,sample*,opensearch_dashboards*`); cy.request("DELETE", `${Cypress.env("openSearchUrl")}/.opendistro-ism*?expand_wildcards=all`); }); Cypress.Commands.add("deleteADSystemIndices", () => { - cy.log("Deleting AD system indices"); + cy.log("Deleting AD system indexes"); cy.request("DELETE", `${Cypress.env("openSearchUrl")}/.opendistro-anomaly*`); }); diff --git a/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx b/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx index df7fe9f9e..ed7b9d500 100644 --- a/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx +++ b/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx @@ -98,7 +98,7 @@ export default class ChangePolicy extends Component } bodyStyles={{ padding: "initial" }} - title="Job name and indices" + title="Job name and indexes" titleSize="m" >
diff --git a/public/pages/CreateRollup/containers/CreateRollupForm/CreateRollupForm.test.tsx b/public/pages/CreateRollup/containers/CreateRollupForm/CreateRollupForm.test.tsx index dfd17f797..e01642d13 100644 --- a/public/pages/CreateRollup/containers/CreateRollupForm/CreateRollupForm.test.tsx +++ b/public/pages/CreateRollup/containers/CreateRollupForm/CreateRollupForm.test.tsx @@ -303,7 +303,7 @@ describe(" creation", () => { userEvent.click(getByTestId("createRollupNextButton")); //Check that it routes to step 4 - expect(queryByText("Job name and indices")).not.toBeNull(); + expect(queryByText("Job name and indexes")).not.toBeNull(); //Test create userEvent.click(getByTestId("createRollupSubmitButton")); @@ -430,6 +430,6 @@ describe(" creation", () => { //Check that it routes to step 4 userEvent.click(getByTestId("createRollupNextButton")); - expect(queryByText("Job name and indices")).not.toBeNull(); + expect(queryByText("Job name and indexes")).not.toBeNull(); }); }); diff --git a/public/pages/Indices/components/CloseIndexModal/CloseIndexModal.tsx b/public/pages/Indices/components/CloseIndexModal/CloseIndexModal.tsx index 8da8bee1a..78af2117f 100644 --- a/public/pages/Indices/components/CloseIndexModal/CloseIndexModal.tsx +++ b/public/pages/Indices/components/CloseIndexModal/CloseIndexModal.tsx @@ -44,7 +44,7 @@ export default function CloseIndexModal(props: CloseIndexModalProps) { return ( - Close indices + Close indexes diff --git a/public/pages/Indices/components/CloseIndexModal/__snapshots__/CloseIndexModal.test.tsx.snap b/public/pages/Indices/components/CloseIndexModal/__snapshots__/CloseIndexModal.test.tsx.snap index 04fde70d1..dd244c1cf 100644 --- a/public/pages/Indices/components/CloseIndexModal/__snapshots__/CloseIndexModal.test.tsx.snap +++ b/public/pages/Indices/components/CloseIndexModal/__snapshots__/CloseIndexModal.test.tsx.snap @@ -39,7 +39,7 @@ HTMLCollection [
- Close indices + Close indexes
- Delete indices + Delete indexes diff --git a/public/pages/Indices/components/DeleteIndexModal/__snapshots__/DeleteIndexModal.test.tsx.snap b/public/pages/Indices/components/DeleteIndexModal/__snapshots__/DeleteIndexModal.test.tsx.snap index 19062a096..aca0331c2 100644 --- a/public/pages/Indices/components/DeleteIndexModal/__snapshots__/DeleteIndexModal.test.tsx.snap +++ b/public/pages/Indices/components/DeleteIndexModal/__snapshots__/DeleteIndexModal.test.tsx.snap @@ -39,7 +39,7 @@ HTMLCollection [
- Delete indices + Delete indexes
spec renders data streams selection field 1`] = ` class="euiSwitch__label" id="some_html_id" > - Show data stream indices + Show data stream indexes
@@ -215,7 +215,7 @@ exports[` spec renders the component 1`] = ` class="euiSwitch__label" id="some_html_id" > - Show data stream indices + Show data stream indexes diff --git a/public/pages/Indices/components/OpenIndexModal/OpenIndexModal.tsx b/public/pages/Indices/components/OpenIndexModal/OpenIndexModal.tsx index a8dd8e4e6..d55d0137c 100644 --- a/public/pages/Indices/components/OpenIndexModal/OpenIndexModal.tsx +++ b/public/pages/Indices/components/OpenIndexModal/OpenIndexModal.tsx @@ -31,7 +31,7 @@ export default function OpenIndexModal(props: OpenIndexModalProps) { return ( - Open indices + Open indexes diff --git a/public/pages/Indices/components/OpenIndexModal/__snapshots__/OpenIndexModal.test.tsx.snap b/public/pages/Indices/components/OpenIndexModal/__snapshots__/OpenIndexModal.test.tsx.snap index d9053e8aa..02283748a 100644 --- a/public/pages/Indices/components/OpenIndexModal/__snapshots__/OpenIndexModal.test.tsx.snap +++ b/public/pages/Indices/components/OpenIndexModal/__snapshots__/OpenIndexModal.test.tsx.snap @@ -39,7 +39,7 @@ HTMLCollection [
- Open indices + Open indexes
{ /> } bodyStyles={{ padding: "initial" }} - title="Indices" + title="Indexes" itemCount={totalIndices} > spec renders the component 1`] = `

- Indices + Indexes @@ -187,7 +187,7 @@ exports[` spec renders the component 1`] = ` class="euiSwitch__label" id="some_html_id" > - Show data stream indices + Show data stream indexes

diff --git a/public/pages/Main/Main.tsx b/public/pages/Main/Main.tsx index af07627e6..f078730a6 100644 --- a/public/pages/Main/Main.tsx +++ b/public/pages/Main/Main.tsx @@ -52,8 +52,8 @@ import CreateComposableTemplate from "../CreateComposableTemplate"; enum Navigation { IndexManagement = "Index Management", IndexPolicies = "State management policies", - ManagedIndices = "Policy managed indices", - Indices = "Indices", + ManagedIndices = "Policy managed indexes", + Indices = "Indexes", Rollups = "Rollup jobs", Transforms = "Transform jobs", SnapshotManagement = "Snapshot Management", diff --git a/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx b/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx index 245cd8645..2c444326d 100644 --- a/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx +++ b/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx @@ -71,7 +71,7 @@ export default class ManagedIndexControls extends Component spec renders data streams selection field 1`] class="euiSwitch__label" id="some_html_id" > - Show data stream indices + Show data stream indexes @@ -204,7 +204,7 @@ exports[` spec renders the component 1`] = ` class="euiSwitch__label" id="some_html_id" > - Show data stream indices + Show data stream indexes diff --git a/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/ManagedIndexEmptyPrompt.tsx b/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/ManagedIndexEmptyPrompt.tsx index e06b5e20d..0d9eb8b5a 100644 --- a/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/ManagedIndexEmptyPrompt.tsx +++ b/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/ManagedIndexEmptyPrompt.tsx @@ -11,9 +11,9 @@ import CreatePolicyModal from "../../../../components/CreatePolicyModal"; import { ROUTES } from "../../../../utils/constants"; export const TEXT = { - RESET_FILTERS: "There are no managed indices matching your applied filters. Reset your filters to view your managed indices.", - NO_MANAGED_INDICES: "There are no existing managed indices. Create a policy to add to an index.", - LOADING: "Loading managed indices...", + RESET_FILTERS: "There are no managed indexes matching your applied filters. Reset your filters to view your managed indexes.", + NO_MANAGED_INDICES: "There are no existing managed indexes. Create a policy to add to an index.", + LOADING: "Loading managed indexes...", }; const getMessagePrompt = ({ filterIsApplied, loading }: ManagedIndexEmptyPromptProps): string => { diff --git a/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/__snapshots__/ManagedIndexEmptyPrompt.test.tsx.snap b/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/__snapshots__/ManagedIndexEmptyPrompt.test.tsx.snap index 01dd27e23..b3000d8e9 100644 --- a/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/__snapshots__/ManagedIndexEmptyPrompt.test.tsx.snap +++ b/public/pages/ManagedIndices/components/ManagedIndexEmptyPrompt/__snapshots__/ManagedIndexEmptyPrompt.test.tsx.snap @@ -15,7 +15,7 @@ exports[` spec renders the component 1`] = ` class="euiText euiText--medium" >

- There are no existing managed indices. Create a policy to add to an index. + There are no existing managed indexes. Create a policy to add to an index.

diff --git a/public/pages/ManagedIndices/components/RetryModal/RetryModal.test.tsx b/public/pages/ManagedIndices/components/RetryModal/RetryModal.test.tsx index 019afb2c6..620a3db0a 100644 --- a/public/pages/ManagedIndices/components/RetryModal/RetryModal.test.tsx +++ b/public/pages/ManagedIndices/components/RetryModal/RetryModal.test.tsx @@ -191,7 +191,7 @@ describe(" spec", () => { expect(browserServicesMock.managedIndexService.retryManagedIndexPolicy).toHaveBeenCalledWith(["some_index"], "two"); expect(coreServicesMock.notifications.toasts.addSuccess).toHaveBeenCalledTimes(1); - expect(coreServicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith("Retried 1 managed indices"); + expect(coreServicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith("Retried 1 managed indexes"); }); it("shows error toaster when error is thrown", async () => { diff --git a/public/pages/ManagedIndices/components/RetryModal/RetryModal.tsx b/public/pages/ManagedIndices/components/RetryModal/RetryModal.tsx index a8ea1ed22..0ea23909f 100644 --- a/public/pages/ManagedIndices/components/RetryModal/RetryModal.tsx +++ b/public/pages/ManagedIndices/components/RetryModal/RetryModal.tsx @@ -103,14 +103,14 @@ export default class RetryModal extends Component - + spec renders the component 1`] = ` class="euiFormHelpText euiFormRow__text" id="some_html_id-help-0" > - Only common states shared across all selected indices are available + Only common states shared across all selected indexes are available diff --git a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.test.tsx b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.test.tsx index 51478c29b..f1319ec49 100644 --- a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.test.tsx +++ b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.test.tsx @@ -156,7 +156,7 @@ describe(" spec", () => { await waitFor(() => {}); expect(coreServicesMock.notifications.toasts.addSuccess).toHaveBeenCalledTimes(1); - expect(coreServicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith("Removed policy from 1 managed indices"); + expect(coreServicesMock.notifications.toasts.addSuccess).toHaveBeenCalledWith("Removed policy from 1 managed indexes"); }); it("sorts/paginates the table", async () => { diff --git a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx index 260104748..f393d6168 100644 --- a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx +++ b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx @@ -246,7 +246,7 @@ export default class ManagedIndices extends Component void) => () => onShow(ConfirmationModal, { title: `Remove ${ - selectedItems.length === 1 ? `policy from ${selectedItems[0].index}` : `policies from ${selectedItems.length} indices` + selectedItems.length === 1 ? `policy from ${selectedItems[0].index}` : `policies from ${selectedItems.length} indexes` }`, bodyMessage: `Remove ${ - selectedItems.length === 1 ? `policy from ${selectedItems[0].index}` : `policies from ${selectedItems.length} indices` + selectedItems.length === 1 ? `policy from ${selectedItems[0].index}` : `policies from ${selectedItems.length} indexes` } permanently? This action cannot be undone.`, actionMessage: "Remove", onAction: () => this.onClickRemovePolicy(selectedItems.map((item) => item.index)), @@ -442,7 +442,7 @@ export default class ManagedIndices extends Component} bodyStyles={{ padding: "initial" }} - title="Policy managed indices" + title="Policy managed indexes" itemCount={totalManagedIndices} > spec renders the component 1`] = `

- Policy managed indices + Policy managed indexes @@ -233,7 +233,7 @@ exports[` spec renders the component 1`] = ` class="euiSwitch__label" id="some_html_id" > - Show data stream indices + Show data stream indexes @@ -497,7 +497,7 @@ exports[` spec renders the component 1`] = ` class="euiText euiText--medium" >

- Loading managed indices... + Loading managed indexes...

diff --git a/public/utils/constants.ts b/public/utils/constants.ts index 93e6efd85..a924b2bc9 100644 --- a/public/utils/constants.ts +++ b/public/utils/constants.ts @@ -72,9 +72,9 @@ export const ROUTES = Object.freeze({ export const BREADCRUMBS = Object.freeze({ INDEX_MANAGEMENT: { text: "Index Management", href: "#/" }, - INDICES: { text: "Indices", href: `#${ROUTES.INDICES}` }, + INDICES: { text: "Indexes", href: `#${ROUTES.INDICES}` }, INDEX_POLICIES: { text: "State management policies", href: `#${ROUTES.INDEX_POLICIES}` }, - MANAGED_INDICES: { text: "Policy managed indices", href: `#${ROUTES.MANAGED_INDICES}` }, + MANAGED_INDICES: { text: "Policy managed indexes", href: `#${ROUTES.MANAGED_INDICES}` }, EDIT_POLICY: { text: "Edit policy" }, CREATE_POLICY: { text: "Create policy" }, CHANGE_POLICY: { text: "Change policy" },