From e15b6fc46b4fc6f7623c8fe9198d9b7e106abdd4 Mon Sep 17 00:00:00 2001
From: Craig Perkins
Date: Fri, 2 Dec 2022 21:56:25 -0500
Subject: [PATCH] Update URLs referencing old docs-beta site (#1231)
Signed-off-by: Craig Perkins
---
public/apps/configuration/constants.tsx | 37 ++++++++++---------
.../__snapshots__/audit-logging.test.tsx.snap | 2 +-
.../internal-user-edit/backend-role-panel.tsx | 2 +-
.../external-identities-panel.tsx | 2 +-
.../__snapshots__/role-view.test.tsx.snap | 6 +--
.../__snapshots__/tenant-list.test.tsx.snap | 4 +-
.../__snapshots__/get-started.test.tsx.snap | 16 ++++----
7 files changed, 36 insertions(+), 33 deletions(-)
diff --git a/public/apps/configuration/constants.tsx b/public/apps/configuration/constants.tsx
index e9c6230ac..0dd46a2aa 100644
--- a/public/apps/configuration/constants.tsx
+++ b/public/apps/configuration/constants.tsx
@@ -260,41 +260,44 @@ export const RoleViewTenantInvalidText = 'N/A';
// External Links
export const DocLinks = {
BackendConfigurationDoc:
- 'https://docs-beta.opensearch.org/docs/security/configuration/configuration/',
+ 'https://opensearch.org/docs/latest/security-plugin/configuration/configuration/',
BackendConfigurationAuthenticationDoc:
- 'https://docs-beta.opensearch.org/docs/security/configuration/configuration/#authentication',
+ 'https://opensearch.org/docs/latest/security-plugin/configuration/configuration/#authentication',
BackendConfigurationAuthorizationDoc:
- 'https://docs-beta.opensearch.org/docs/security/configuration/configuration/#authorization',
- AuthenticationFlowDoc: 'https://docs-beta.opensearch.org/docs/security/configuration/concepts/',
- UsersAndRolesDoc: 'https://docs-beta.opensearch.org/docs/security/access-control/users-roles/',
+ 'https://opensearch.org/docs/latest/security-plugin/configuration/configuration/#authorization',
+ AuthenticationFlowDoc:
+ 'https://opensearch.org/docs/latest/security-plugin/configuration/concepts/',
+ AccessControlDoc: 'https://opensearch.org/docs/latest/security-plugin/access-control/index/',
+ UsersAndRolesDoc:
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/',
CreateRolesDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/users-roles/#create-roles',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/#create-roles',
MapUsersToRolesDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/users-roles/#map-users-to-roles',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/#map-users-to-roles',
CreateUsersDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/users-roles/#create-users',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/#create-users',
AuditLogsDoc: translateMessage(
'audit.logs.docLink',
- 'https://docs-beta.opensearch.org/docs/security/audit-logs/'
+ 'https://opensearch.org/docs/latest/security-plugin/audit-logs/'
),
AuditLogsStorageDoc: translateMessage(
'audit.logs.storageDocLink',
- 'https://docs-beta.opensearch.org/docs/security/audit-logs/storage-types/'
+ 'https://opensearch.org/docs/latest/security-plugin/audit-logs/storage-types/'
),
PermissionsDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/default-action-groups/',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/default-action-groups/',
ClusterPermissionsDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/default-action-groups/#cluster-level',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/default-action-groups/#cluster-level',
IndexPermissionsDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/default-action-groups/#index-level',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/default-action-groups/#index-level',
DocumentLevelSecurityDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/document-level-security/',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/document-level-security/',
TenantPermissionsDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/multi-tenancy/',
+ 'https://opensearch.org/docs/latest/security-plugin/multi-tenancy/multi-tenancy-config',
AttributeBasedSecurityDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/document-level-security/#attribute-based-security',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/document-level-security/#attribute-based-security',
BackendRoleDoc:
- 'https://docs-beta.opensearch.org/docs/security/access-control/users-roles/#map-users-to-roles',
+ 'https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/#map-users-to-roles',
};
export enum ToolTipContent {
diff --git a/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap b/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap
index ea9688f40..6d8e9167f 100644
--- a/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap
+++ b/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap
@@ -288,7 +288,7 @@ exports[`Audit logs render when AuditLoggingSettings.enabled is true 1`] = `
/>
diff --git a/public/apps/configuration/panels/internal-user-edit/backend-role-panel.tsx b/public/apps/configuration/panels/internal-user-edit/backend-role-panel.tsx
index 44912ef3b..73b6c3075 100644
--- a/public/apps/configuration/panels/internal-user-edit/backend-role-panel.tsx
+++ b/public/apps/configuration/panels/internal-user-edit/backend-role-panel.tsx
@@ -83,7 +83,7 @@ export function BackendRolePanel(props: {
{generateBackendRolesPanels(state, setState)}
diff --git a/public/apps/configuration/panels/role-mapping/external-identities-panel.tsx b/public/apps/configuration/panels/role-mapping/external-identities-panel.tsx
index a48512c7c..5b11d04eb 100644
--- a/public/apps/configuration/panels/role-mapping/external-identities-panel.tsx
+++ b/public/apps/configuration/panels/role-mapping/external-identities-panel.tsx
@@ -100,7 +100,7 @@ export function ExternalIdentitiesPanel(props: {
{panel}
diff --git a/public/apps/configuration/panels/role-view/test/__snapshots__/role-view.test.tsx.snap b/public/apps/configuration/panels/role-view/test/__snapshots__/role-view.test.tsx.snap
index 52bd4026b..6b65e56f7 100644
--- a/public/apps/configuration/panels/role-view/test/__snapshots__/role-view.test.tsx.snap
+++ b/public/apps/configuration/panels/role-view/test/__snapshots__/role-view.test.tsx.snap
@@ -168,7 +168,7 @@ exports[`Role view basic rendering when permission tab is selected 1`] = `
You can map two types of users: users and backend roles. A user can have its own backend role and host for an external authentication and authorization. A backend role directly maps to roles through an external authentication system.
@@ -364,7 +364,7 @@ exports[`Role view renders when mapped user tab is selected 1`] = `
You can map two types of users: users and backend roles. A user can have its own backend role and host for an external authentication and authorization. A backend role directly maps to roles through an external authentication system.
@@ -551,7 +551,7 @@ exports[`Role view renders when mapped user tab is selected 1`] = `
You can map two types of users: users and backend roles. A user can have its own backend role and host for an external authentication and authorization. A backend role directly maps to roles through an external authentication system.
diff --git a/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap b/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap
index 547c69568..c43eeda0b 100644
--- a/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap
+++ b/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap
@@ -35,7 +35,7 @@ exports[`Tenant list Action menu click Duplicate click 1`] = `
>
Tenants in OpenSearch Dashboards are spaces for saving index patterns, visualizations, dashboards, and other OpenSearch Dashboards objects. Use tenants to safely share your work with other OpenSearch Dashboards users. You can control which roles have access to a tenant and whether those roles have read or write access. The “Current” label indicates which tenant you are using now. Switch to another tenant anytime from your user profile, which is located on the top right of the screen.
@@ -221,7 +221,7 @@ exports[`Tenant list Action menu click Edit click 1`] = `
>
Tenants in OpenSearch Dashboards are spaces for saving index patterns, visualizations, dashboards, and other OpenSearch Dashboards objects. Use tenants to safely share your work with other OpenSearch Dashboards users. You can control which roles have access to a tenant and whether those roles have read or write access. The “Current” label indicates which tenant you are using now. Switch to another tenant anytime from your user profile, which is located on the top right of the screen.
diff --git a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap
index 61132ae57..8581923fe 100644
--- a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap
+++ b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap
@@ -47,7 +47,7 @@ exports[`Get started (landing page) renders when backend configuration is disabl
Roles are reusable collections of permissions. The default roles are a great starting point, but you might need to create custom roles that meet your exact needs.
section contains any backends to fetch backend roles from. The most common example of a backend role is an LDAP group.
@@ -321,7 +321,7 @@ exports[`Get started (landing page) renders when backend configuration is enable
Roles are reusable collections of permissions. The default roles are a great starting point, but you might need to create custom roles that meet your exact needs.