Skip to content

Commit

Permalink
OSCI: rename indices to indexes
Browse files Browse the repository at this point in the history
Signed-off-by: Mansi Shinde <[email protected]>
  • Loading branch information
MansiShinde committed Nov 10, 2023
1 parent e96be29 commit 0ffd9f6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class IndexControls extends Component<IndexControlsProps, IndexCo
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSwitch
label="Show data stream indices"
label="Show data stream indexes"
checked={showDataStreams}
onChange={toggleShowDataStreams}
data-test-subj="toggleShowDataStreams"
Expand Down
2 changes: 1 addition & 1 deletion public/pages/Indices/containers/Indices/Indices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export default class Indices extends Component<IndicesProps, IndicesState> {
/>
}
bodyStyles={{ padding: "initial" }}
title="Indices"
title="Indexes"
itemCount={totalIndices}
>
<IndexControls
Expand Down
4 changes: 2 additions & 2 deletions public/pages/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class ManagedIndexControls extends Component<ManagedIndexControls
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSwitch
label="Show data stream indices"
label="Show data stream indexes"
checked={showDataStreams}
onChange={toggleShowDataStreams}
data-test-subj="toggleShowDataStreams"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
this.context.notifications.toasts.addDanger(getManagedIndicesResponse.error);
}
} catch (err) {
this.context.notifications.toasts.addDanger(getErrorMessage(err, "There was a problem loading the managed indices"));
this.context.notifications.toasts.addDanger(getErrorMessage(err, "There was a problem loading the managed indexes"));
}

// Avoiding flicker by showing/hiding the "Data stream" column only after the results are loaded.
Expand Down Expand Up @@ -288,7 +288,7 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
if (removePolicyResponse.ok) {
const { updatedIndices, failedIndices, failures } = removePolicyResponse.response;
if (updatedIndices) {
this.context.notifications.toasts.addSuccess(`Removed policy from ${updatedIndices} managed indices`);
this.context.notifications.toasts.addSuccess(`Removed policy from ${updatedIndices} managed indexes`);
}
if (failures) {
this.context.notifications.toasts.addDanger(
Expand Down Expand Up @@ -399,10 +399,10 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
onClickModal: (onShow: (component: any, props: object) => 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)),
Expand Down Expand Up @@ -442,7 +442,7 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
<ContentPanel
actions={<ContentPanelActions actions={actions} />}
bodyStyles={{ padding: "initial" }}
title="Policy managed indices"
title="Policy managed indexes"
itemCount={totalManagedIndices}
>
<ManagedIndexControls
Expand Down

0 comments on commit 0ffd9f6

Please sign in to comment.