From baaa10b7946f65c8a6f3f1c3857ce4765f3ab9a0 Mon Sep 17 00:00:00 2001 From: abbyhu2000 Date: Fri, 30 Sep 2022 21:35:19 +0000 Subject: [PATCH] Add changelog Signed-off-by: abbyhu2000 --- CHANGELOG.md | 1 + config/opensearch_dashboards.yml | 1 - .../wizard/public/application/components/top_nav.tsx | 10 +++++++++- .../public/application/utils/get_top_nav_config.tsx | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57181ef33f45..df35a1f20ba5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * Add updated_at column to objects' tables ([#1218](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1218)) * [Viz Builder] State validation before dispatching and loading ([#2351](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2351)) +* [Viz Builder] Create a new wizard directly on a dashboard ([#2384](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2384)) ### 🐛 Bug Fixes diff --git a/config/opensearch_dashboards.yml b/config/opensearch_dashboards.yml index da2dfb10d9c3..4f23dc42c050 100644 --- a/config/opensearch_dashboards.yml +++ b/config/opensearch_dashboards.yml @@ -232,4 +232,3 @@ #data_source.encryption.wrappingKeyName: 'changeme' #data_source.encryption.wrappingKeyNamespace: 'changeme' #data_source.encryption.wrappingKey: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] - diff --git a/src/plugins/wizard/public/application/components/top_nav.tsx b/src/plugins/wizard/public/application/components/top_nav.tsx index 173709264f5c..470babdf782f 100644 --- a/src/plugins/wizard/public/application/components/top_nav.tsx +++ b/src/plugins/wizard/public/application/components/top_nav.tsx @@ -53,7 +53,15 @@ export const TopNav = () => { }; setConfig(getConfig()); - }, [rootState, savedWizardVis, services, visualizationIdFromUrl, saveDisabledReason, dispatch, indexPattern]); + }, [ + rootState, + savedWizardVis, + services, + visualizationIdFromUrl, + saveDisabledReason, + dispatch, + indexPattern, + ]); // reset validity before component destroyed useUnmount(() => { diff --git a/src/plugins/wizard/public/application/utils/get_top_nav_config.tsx b/src/plugins/wizard/public/application/utils/get_top_nav_config.tsx index 529d91f76f86..c239f5547c86 100644 --- a/src/plugins/wizard/public/application/utils/get_top_nav_config.tsx +++ b/src/plugins/wizard/public/application/utils/get_top_nav_config.tsx @@ -58,7 +58,7 @@ export const getTopNavConfig = ( scopedHistory, } = services; - const { originatingApp: originatingApp } = + const { originatingApp } = embeddable .getStateTransfer(scopedHistory) .getIncomingEditorState({ keysToRemoveAfterFetch: ['id', 'input'] }) || {};