Sorting field in Discover is not updated on index pattern changes #108186
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Discover
Discover Application
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Kibana version: 7.14.0
Elasticsearch version:
Server OS version:
Browser version:
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.):
Describe the bug:
Sorting field is not reset to the default time field when switching from an index pattern to another. Not sure if this is a bug or the expected behavior, but this seems to defeat the purpose of having a default time field.
Steps to reproduce:
Create 2 indices, and 2 index patterns:
timefield
is the time field ofmy_index
andtimefield_2
is the time field ofmy_index_2
. Inmy_index_2
also addtimefield
to the mapping but it won't contain data:Now in Discover, when switching from
my_index
tomy_index_2
, Discover sees the current sorting field (timefield
) exists inmy_index_2
and doesn’t change it. Since there is no data in this field inmy_index_2
, it shows up as unsorted.Expected behavior:
Sort on default time field by default.
The text was updated successfully, but these errors were encountered: