Skip to content

Commit

Permalink
Change help text in "RestoreSnapshotAdvancedSettings" , documentation…
Browse files Browse the repository at this point in the history
… url in "IndexSettingsInput" (#365)

* Change help text - ignore unavailable indices

Signed-off-by: Chris Hesterman <[email protected]>

Change url for "Learn more" links, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Update ext link, IndexSettingsInput to ref 'Dynamic Index Settings' docs

Signed-off-by: Chris Hesterman <[email protected]>

* Change url back to Static and Dynamic docs link

Signed-off-by: Chris Hesterman <[email protected]>

* Change link in IndexSettingsInput to general "Index Settings" docs

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
(cherry picked from commit 0b6457f)
  • Loading branch information
phestecAMZN authored and github-actions[bot] committed Nov 9, 2022
1 parent 46ee768 commit 49f0f3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { EuiFormRow, EuiText, EuiTextArea, EuiSpacer, EuiLink } from "@elastic/eui";
import React, { useState, ChangeEvent } from "react";
import { RESTORE_SNAPSHOT_DOCUMENTATION_URL } from "../../../../utils/constants"
import { INDEX_SETTINGS_URL } from "../../../../utils/constants"

interface IndexSettingsInputProps {
getIndexSettings: (indexSettings: string, ignore: boolean) => void;
Expand Down Expand Up @@ -38,7 +38,7 @@ const IndexSettingsInput = ({ getIndexSettings, ignore, showError, inputError }:
<EuiText size="xs" style={{ padding: "0px 0px 5px 0px" }}>
<p style={{ fontWeight: 200 }}>
{`${helperText} `}
<EuiLink href={RESTORE_SNAPSHOT_DOCUMENTATION_URL} target="_blank" external={true} rel="noopener noreferrer">
<EuiLink href={INDEX_SETTINGS_URL} target="_blank" external={true} rel="noopener noreferrer">
Learn more
</EuiLink>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const SnapshotRestoreAdvancedOptions = ({
label={
<CheckBoxLabel
title="Ignore unavailable indices"
helpText="Instead of failing snapshot, ignore any indexes that are unavailable or do not exist."
helpText="Instead of failing restore operation, ignore any indices that are unavailable or do not exist."
/>
}
checked={ignoreUnavailable}
Expand Down
2 changes: 1 addition & 1 deletion public/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const ACTIONS_DOCUMENTATION_URL = "https://opensearch.org/docs/im-plugin/
export const STATES_DOCUMENTATION_URL = "https://opensearch.org/docs/im-plugin/ism/policies/#states";
export const ERROR_NOTIFICATION_DOCUMENTATION_URL = "https://opensearch.org/docs/im-plugin/ism/policies/#error-notifications";
export const TRANSITION_DOCUMENTATION_URL = "https://opensearch.org/docs/im-plugin/ism/policies/#transitions";

export const INDEX_SETTINGS_URL = "https://opensearch.org/docs/latest/api-reference/index-apis/create-index/#index-settings";
export const SNAPSHOT_MANAGEMENT_DOCUMENTATION_URL = "https://opensearch.org/docs/latest/opensearch/snapshots/snapshot-management/";
export const CRON_EXPRESSION_DOCUMENTATION_URL = "https://opensearch.org/docs/latest/monitoring-plugins/alerting/cron/";
export const RESTORE_SNAPSHOT_DOCUMENTATION_URL =
Expand Down

0 comments on commit 49f0f3d

Please sign in to comment.