From fbcd5558325788c6069b008bfae7683f867b1a78 Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Tue, 23 Jul 2024 10:40:13 +0800 Subject: [PATCH] feat: reuse applications (#1094) (#1096) Signed-off-by: SuZhou-Joe (cherry picked from commit 7565bcd9e7f7ec56cc88bdfdb41e77e37284efbd) --- public/plugin.ts | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/public/plugin.ts b/public/plugin.ts index 6f265e536..f2df956c8 100644 --- a/public/plugin.ts +++ b/public/plugin.ts @@ -171,18 +171,6 @@ export class IndexManagementPlugin implements Plugin { - return mountWrapper(params, ROUTES.INDEX_POLICIES); - }, - }); - // index templates route core.application.register({ id: `opensearch_index_management_dashboards_${encodeURIComponent(ROUTES.TEMPLATES)}`, @@ -243,18 +231,6 @@ export class IndexManagementPlugin implements Plugin { - return mountWrapper(params, ROUTES.SNAPSHOT_POLICIES); - }, - }); - // snapshot repositories route core.application.register({ id: `opensearch_index_management_dashboards_${encodeURIComponent(ROUTES.REPOSITORIES)}`, @@ -286,8 +262,10 @@ export class IndexManagementPlugin implements Plugin