[Discover] Default Columns do not always apply with switching Data Views #168581
Labels
bug
Fixes for quality problems that affect the customer experience
:DataDiscovery/fix-it-week
Feature:Discover
Discover Application
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Kibana version:
main, 8.11, 8.10, ....
Describe the bug:
When switching Data Views in Discover, the Advanced Setting "Default Columns" does not always apply.
Steps to reproduce:
Kibana Sample Data Logs
andKibana Sample eCommerce Data
of ourSample data
Default Columns
entertimestamp, message, agent
and save this settingKibana Sample Data Logs
of the data view pickerKibana Sample eCommerce Data
of the data view pickertimestamp, Document
as columns, this is expected, unless you configureddiscover:modifyColumnsOnSwitch
toOff
, which prevents modifying the columns on switchingKibana Sample Data Logs
of the data view picker, againtimestamp, Document
Expected behavior:
When switching back to
Kibana Sample Data Logs
, the configuredDefault Columns
should be displayed** Recording **
Kapture.2023-10-11.at.12.27.33.mp4
Context
Here's the code responsible for the next state when switching data views:
kibana/src/plugins/discover/public/application/main/utils/get_switch_data_view_app_state.ts
Lines 17 to 65 in 1a213bd
Additional info
Reported by @sophiec20
The text was updated successfully, but these errors were encountered: