[Discover] Decouple sidebar from search results by fetching unmapped fields too #145796
Labels
chore
Feature:Discover
Discover Application
Feature:UnifiedFieldList
The unified field list component used by Lens & Discover
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Once #144772 is implemented, allowing to get also unmappedFields when using getFieldsForIndexPattern it should be integrated in Discover.
Currently, the sidebar is waiting for the fetched documents before it renders https://github.com/elastic/kibana/blob/main/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx#L167
That was necessary to find unmapped fields. The recently implemented "unmappedFields" can be used instead so we have a full list of fields (mapped and unmapped) in https://github.com/elastic/kibana/blob/main/src/plugins/discover/public/application/main/components/sidebar/lib/sidebar_reducer.ts#L98.
The text was updated successfully, but these errors were encountered: