From 0b6457f5eacddc877e3708c017b45a8c095e9c74 Mon Sep 17 00:00:00 2001 From: Chris Hesterman Date: Wed, 9 Nov 2022 11:12:01 -0800 Subject: [PATCH] Change help text in "RestoreSnapshotAdvancedSettings" , documentation url in "IndexSettingsInput" (#365) * Change help text - ignore unavailable indices Signed-off-by: Chris Hesterman Change url for "Learn more" links, IndexSettingsInput Signed-off-by: Chris Hesterman * Update ext link, IndexSettingsInput to ref 'Dynamic Index Settings' docs Signed-off-by: Chris Hesterman * Change url back to Static and Dynamic docs link Signed-off-by: Chris Hesterman * Change link in IndexSettingsInput to general "Index Settings" docs Signed-off-by: Chris Hesterman Signed-off-by: Chris Hesterman --- .../components/IndexSettingsInput/IndexSettingsInput.tsx | 4 ++-- .../SnapshotRestoreAdvancedOptions.tsx | 2 +- public/utils/constants.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/pages/Snapshots/components/IndexSettingsInput/IndexSettingsInput.tsx b/public/pages/Snapshots/components/IndexSettingsInput/IndexSettingsInput.tsx index e628ae8a8..8b72ca8e9 100644 --- a/public/pages/Snapshots/components/IndexSettingsInput/IndexSettingsInput.tsx +++ b/public/pages/Snapshots/components/IndexSettingsInput/IndexSettingsInput.tsx @@ -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; @@ -38,7 +38,7 @@ const IndexSettingsInput = ({ getIndexSettings, ignore, showError, inputError }:

{`${helperText} `} - + Learn more

diff --git a/public/pages/Snapshots/components/SnapshotRestoreAdvancedOptions/SnapshotRestoreAdvancedOptions.tsx b/public/pages/Snapshots/components/SnapshotRestoreAdvancedOptions/SnapshotRestoreAdvancedOptions.tsx index 6acfc4d03..965e0f451 100644 --- a/public/pages/Snapshots/components/SnapshotRestoreAdvancedOptions/SnapshotRestoreAdvancedOptions.tsx +++ b/public/pages/Snapshots/components/SnapshotRestoreAdvancedOptions/SnapshotRestoreAdvancedOptions.tsx @@ -77,7 +77,7 @@ const SnapshotRestoreAdvancedOptions = ({ label={ } checked={ignoreUnavailable} diff --git a/public/utils/constants.ts b/public/utils/constants.ts index b5967c37e..a45f5a14d 100644 --- a/public/utils/constants.ts +++ b/public/utils/constants.ts @@ -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 =