From 04ec9a231ab3166cc8b711057156e9ddfc3d8493 Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Wed, 4 Dec 2019 10:54:14 -0800 Subject: [PATCH] Fixes outdated URLs (#52104) --- x-pack/legacy/plugins/actions/README.md | 2 +- .../actions/server/builtin_action_types/es_index.ts | 2 +- .../legacy/plugins/security/public/documentation_links.js | 8 ++++---- .../__snapshots__/elasticsearch_privileges.test.tsx.snap | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/x-pack/legacy/plugins/actions/README.md b/x-pack/legacy/plugins/actions/README.md index a982565fc6d07..72e4d28bad97d 100644 --- a/x-pack/legacy/plugins/actions/README.md +++ b/x-pack/legacy/plugins/actions/README.md @@ -272,7 +272,7 @@ This action type interfaces with the [Slack Incoming Webhooks feature](https://a ## index, action id: `.index` -The config and params properties are modelled after the [Watcher Index Action](https://www.elastic.co/guide/en/elastic-stack-overview/master/actions-index.html). The index can be set in the config or params, and if set in config, then the index set in the params will be ignored. +The config and params properties are modelled after the [Watcher Index Action](https://www.elastic.co/guide/en/elasticsearch/reference/master/actions-index.html). The index can be set in the config or params, and if set in config, then the index set in the params will be ignored. #### config properties diff --git a/x-pack/legacy/plugins/actions/server/builtin_action_types/es_index.ts b/x-pack/legacy/plugins/actions/server/builtin_action_types/es_index.ts index 1d5fe9271ad11..01853ee9cb870 100644 --- a/x-pack/legacy/plugins/actions/server/builtin_action_types/es_index.ts +++ b/x-pack/legacy/plugins/actions/server/builtin_action_types/es_index.ts @@ -24,7 +24,7 @@ const ConfigSchema = schema.object({ export type ActionParamsType = TypeOf; -// see: https://www.elastic.co/guide/en/elastic-stack-overview/current/actions-index.html +// see: https://www.elastic.co/guide/en/elasticsearch/reference/current/actions-index.html // - timeout not added here, as this seems to be a generic thing we want to do // eventually: https://github.com/elastic/kibana/projects/26#card-24087404 const ParamsSchema = schema.object({ diff --git a/x-pack/legacy/plugins/security/public/documentation_links.js b/x-pack/legacy/plugins/security/public/documentation_links.js index 993db1cc1b396..8050289b95e9d 100644 --- a/x-pack/legacy/plugins/security/public/documentation_links.js +++ b/x-pack/legacy/plugins/security/public/documentation_links.js @@ -6,11 +6,11 @@ import { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } from 'ui/documentation_links'; -const STACK_OVERVIEW_URL = `${ELASTIC_WEBSITE_URL}guide/en/elastic-stack-overview/${DOC_LINK_VERSION}`; +const ES_REF_URL = `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}`; export const documentationLinks = { dashboardViewMode: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/xpack-view-modes.html`, - esClusterPrivileges: `${STACK_OVERVIEW_URL}/security-privileges.html#privileges-list-cluster`, - esIndicesPrivileges: `${STACK_OVERVIEW_URL}/security-privileges.html#privileges-list-indices`, - esRunAsPrivileges: `${STACK_OVERVIEW_URL}/security-privileges.html#_run_as_privilege`, + esClusterPrivileges: `${ES_REF_URL}/security-privileges.html#privileges-list-cluster`, + esIndicesPrivileges: `${ES_REF_URL}/security-privileges.html#privileges-list-indices`, + esRunAsPrivileges: `${ES_REF_URL}/security-privileges.html#_run_as_privilege`, }; diff --git a/x-pack/legacy/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap b/x-pack/legacy/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap index a87ddbcaa033a..795131337c31f 100644 --- a/x-pack/legacy/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap +++ b/x-pack/legacy/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap @@ -15,7 +15,7 @@ exports[`it renders without crashing 1`] = ` />