From f6052076a8e40b44bc81e58ef1e62408529900a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Jul 2024 22:56:00 +0000 Subject: [PATCH] [Navigation] Remove integrations from new NavGroups (#1950) * Remove integrations from new Nav Signed-off-by: Adam Tackett * Integrations only in observability Signed-off-by: Adam Tackett * Update snapshots Signed-off-by: Adam Tackett --------- Signed-off-by: Adam Tackett Co-authored-by: Adam Tackett (cherry picked from commit 0b472ec140f71f02061b6e19daaca8a944c19dc8) Signed-off-by: github-actions[bot] --- public/plugin.tsx | 16 ++++++++-------- public/plugin_nav.tsx | 37 ++++++++++++------------------------- 2 files changed, 20 insertions(+), 33 deletions(-) diff --git a/public/plugin.tsx b/public/plugin.tsx index 47d50ec97a..6de531c842 100644 --- a/public/plugin.tsx +++ b/public/plugin.tsx @@ -302,6 +302,14 @@ export class ObservabilityPlugin mount: appMountWithStartPage('applications'), }); + core.application.register({ + id: observabilityIntegrationsID, + title: observabilityIntegrationsTitle, + category: DEFAULT_APP_CATEGORIES.management, + order: observabilityIntegrationsPluginOrder, + mount: appMountWithStartPage('integrations'), + }); + if (core.chrome.navGroup.getNavGroupEnabled()) { core.application.register({ id: 'observability-traces-nav', @@ -351,14 +359,6 @@ export class ObservabilityPlugin mount: appMountWithStartPage('notebooks'), }); - core.application.register({ - id: observabilityIntegrationsID, - title: observabilityIntegrationsTitle, - category: DEFAULT_APP_CATEGORIES.management, - order: observabilityIntegrationsPluginOrder, - mount: appMountWithStartPage('integrations'), - }); - registerAllPluginNavGroups(core); core.application.register({ diff --git a/public/plugin_nav.tsx b/public/plugin_nav.tsx index ac60a0ab95..457167fe96 100644 --- a/public/plugin_nav.tsx +++ b/public/plugin_nav.tsx @@ -2,6 +2,7 @@ * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ + import { observabilityApplicationsID, observabilityIntegrationsID, @@ -21,6 +22,14 @@ export function registerAllPluginNavGroups(core: CoreSetup