From 804bd4abe7e0df5f14a5f636794ec84680b6a859 Mon Sep 17 00:00:00 2001 From: abbyhu2000 Date: Tue, 21 Nov 2023 00:02:32 +0000 Subject: [PATCH] redirect to observability page --- src/plugins/data/opensearch_dashboards.json | 2 +- .../data/public/ui/query_string_input/query_string_input.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/data/opensearch_dashboards.json b/src/plugins/data/opensearch_dashboards.json index 9dff517d5524..c357da7c28db 100644 --- a/src/plugins/data/opensearch_dashboards.json +++ b/src/plugins/data/opensearch_dashboards.json @@ -4,7 +4,7 @@ "server": true, "ui": true, "requiredPlugins": ["expressions", "uiActions"], - "optionalPlugins": ["usageCollection", "dataSource"], + "optionalPlugins": ["usageCollection", "dataSource", "observability-dashboards"], "extraPublicDirs": ["common", "common/utils/abort_utils", "common/index_patterns/utils.ts"], "requiredBundles": [ "usageCollection", diff --git a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx index 00dec8ace879..4ca63eb75b22 100644 --- a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx +++ b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx @@ -464,7 +464,8 @@ export default class QueryStringInputUI extends Component { private onSelectLanguage = (language: string) => { if(language === 'PPL'){ - + this.services.application?.navigateToUrl('../observability-logs#/explorer') + return; } // Send telemetry info every time the user opts in or out of kuery // As a result it is important this function only ever gets called in the