From 40ba1f51602e82e6a9539431e339706c7b564b83 Mon Sep 17 00:00:00 2001 From: Qiwen Li Date: Wed, 15 Nov 2023 15:38:31 -0500 Subject: [PATCH] [OSCI][FIX] Discover: Fix the Subfields Display Issue (#5429) * set flattenHit() deep param as true to allow iterate on nested object Signed-off-by: Qiwen Li --------- Signed-off-by: qiwen li Signed-off-by: Qiwen Li Signed-off-by: Miki Signed-off-by: Anan Zhuang Co-authored-by: Miki Co-authored-by: Anan Zhuang --- CHANGELOG.md | 1 + .../data/common/index_patterns/index_patterns/flatten_hit.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78beabd17e87..234075f7a6de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - [Workspace] Add core workspace service module to enable the implementation of workspace features within OSD plugins ([#5092](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5092)) - [Workspace] Setup workspace skeleton and implement basic CRUD API ([#5075](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5075)) - [Decouple] Add new cross compatibility check core service which export functionality for plugins to verify if their OpenSearch plugin counterpart is installed on the cluster or has incompatible version to configure the plugin behavior([#4710](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4710)) +- [Discover] Display inner properties in the left navigation bar [#5429](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5429) ### 🐛 Bug Fixes diff --git a/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts b/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts index 63dc3eb453dd..73ace5e41a05 100644 --- a/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts +++ b/src/plugins/data/common/index_patterns/index_patterns/flatten_hit.ts @@ -112,7 +112,7 @@ export function flattenHitWrapper( metaFields = {}, cache = new WeakMap() ) { - return function cachedFlatten(hit: Record, deep = false) { + return function cachedFlatten(hit: Record, deep = true) { const decorateFlattened = decorateFlattenedWrapper(hit, metaFields); const cached = cache.get(hit); const flattened = cached || flattenHit(indexPattern, hit, deep);