From 2fe83854b9e22da91d4c1d476176e0e95321c5ff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 14 Aug 2024 05:38:42 +0000 Subject: [PATCH] feat: reorder features and rename title and description (#1106) Signed-off-by: SuZhou-Joe (cherry picked from commit c8cea518df0c99e175614b8db6f38e1d4e4c0e1e) Signed-off-by: github-actions[bot] --- public/plugin.ts | 161 ++++++++++++++++++++++++++--------------------- 1 file changed, 88 insertions(+), 73 deletions(-) diff --git a/public/plugin.ts b/public/plugin.ts index 98c179d78..e07e92589 100644 --- a/public/plugin.ts +++ b/public/plugin.ts @@ -31,62 +31,68 @@ interface IndexManagementSetupDeps { } const ISM_CATEGORIES: Record = Object.freeze({ - indexes: { - id: "indexes", - label: "Indexes", + automation_policies: { + id: "automation_policies", + label: "Automation policies", order: 2000, - euiIconType: "managementApp", + }, + templates: { + id: "templates", + label: "Templates", + order: 3000, }, index_backup_and_recovery: { id: "index_backup_and_recovery", - label: "Index Backup and Recovery", - order: 3000, - euiIconType: "managementApp", + label: "Index backup and recovery", + order: 4000, }, }); const ISM_FEATURE_DESCRIPTION: Record = Object.freeze({ - index_management: i18n.translate("indexManagement.description", { + index_management: i18n.translate("index-management-dashboards-plugin.indexManagement.description", { defaultMessage: "Manage your indexes with state polices, templates and aliases. You can also roll up or transform your indexes.", }), - snapshot_management: i18n.translate("snapshotManagement.description", { + snapshot_management: i18n.translate("index-management-dashboards-plugin.snapshotManagement.description", { defaultMessage: "Back up and restore your cluster's indexes and state. Setup a policy to automate snapshot creation and deletion.", }), - indexes: i18n.translate("indexes.description", { - defaultMessage: "Manage your indexes", + indexes: i18n.translate("index-management-dashboards-plugin.indexes.description", { + defaultMessage: "Configure and manage indexes.", + }), + policy_managed_indexes: i18n.translate("index-management-dashboards-plugin.policyManagedIndexes.description", { + defaultMessage: "View indexes managed by Index State Management (ISM) policies.", }), - policy_managed_indexes: i18n.translate("policyManagedIndexes.description", { - defaultMessage: "Manage your policy managed indexes", + data_streams: i18n.translate("index-management-dashboards-plugin.dataStreams.description", { + defaultMessage: "Simplify time-series data management.", }), - data_streams: i18n.translate("dataStreams.description", { - defaultMessage: "Manage your data streams", + aliases: i18n.translate("index-management-dashboards-plugin.aliases.description", { + defaultMessage: "Organize multiple indexes under virtual index names.", }), - aliases: i18n.translate("aliases.description", { - defaultMessage: "Manage your index aliases", + index_state_management_policies: i18n.translate("index-management-dashboards-plugin.indexStateManagementPolicies.description", { + defaultMessage: "Automate periodic administrative tasks.", }), - index_state_management_policies: i18n.translate("indexStateManagementPolicies.description", { - defaultMessage: "Manage your index state management policies", + index_templates: i18n.translate("index-management-dashboards-plugin.indexTemplates.description", { + defaultMessage: "Create predefined mappings and settings for new indexes.", }), - index_templates: i18n.translate("indexTemplates.description", { - defaultMessage: "Manage your index templates", + notification_settings: i18n.translate("index-management-dashboards-plugin.notificationSettings.description", { + defaultMessage: "Set default notifications on index operation statuses.", }), - notification_settings: i18n.translate("notificationSettings.description", { - defaultMessage: "Manage your notification settings", + rollup_jobs: i18n.translate("index-management-dashboards-plugin.rollupJobs.description", { + defaultMessage: "Reduce data granularity by rolling up old data into summarized indexes.", }), - rollup_jobs: i18n.translate("rollupJobs.description", { - defaultMessage: "Manage your rollup jobs", + transform_jobs: i18n.translate("index-management-dashboards-plugin.transformJobs.description", { + defaultMessage: "Create summarized views of your data organized by specific fields.", }), - transform_jobs: i18n.translate("transformJobs.description", { - defaultMessage: "Manage your transform jobs", + index_snapshots: i18n.translate("index-management-dashboards-plugin.indexSnapshots.description", { + defaultMessage: "Back up your indexes.", }), - index_snapshots: i18n.translate("indexSnapshots.description", { - defaultMessage: "Manage your index snapshots", + snapshot_policies: i18n.translate("index-management-dashboards-plugin.snapshotPolicies.description", { + defaultMessage: "Set up automatic data snapshots.", }), - snapshot_policies: i18n.translate("snapshotPolicies.description", { - defaultMessage: "Manage your snapshot policies", + snapshot_repositories: i18n.translate("index-management-dashboards-plugin.snapshotRepositories.description", { + defaultMessage: "Configure remote storage for snapshots.", }), - snapshot_repositories: i18n.translate("snapshotRepositories.description", { - defaultMessage: "Manage your snapshot repositories", + component_templates: i18n.translate("index-management-dashboards-plugin.componentTemplates.description", { + defaultMessage: "Define components for your index templates.", }), }); @@ -173,8 +179,6 @@ export class IndexManagementPlugin implements Plugin { + return mountWrapper(params, ROUTES.TEMPLATES); + }, + }); + // notification settings route core.application.register({ id: `opensearch_index_management_dashboards_${encodeURIComponent(ROUTES.NOTIFICATIONS)}`, - title: "Notification Settings", - order: 8040, - category: ISM_CATEGORIES.indexes, + title: "Index operation notifications", workspaceAvailability: WorkspaceAvailability.outsideWorkspace, description: ISM_FEATURE_DESCRIPTION.notification_settings, updater$: this.appStateUpdater, @@ -256,9 +262,7 @@ export class IndexManagementPlugin implements Plugin