Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibana "Discover" default sorting policy #117617

Closed
Tracked by #114353
Tsukiand opened this issue Nov 5, 2021 · 4 comments · Fixed by #116145
Closed
Tracked by #114353

Kibana "Discover" default sorting policy #117617

Tsukiand opened this issue Nov 5, 2021 · 4 comments · Fixed by #116145
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@Tsukiand
Copy link

Tsukiand commented Nov 5, 2021

**Kibana version:7.14.0

**Elasticsearch version:7.14.0

**Server OS version:Centos7

**Browser version:Google Chrome 95.0.4638.69 (x86_64)

**Browser OS version:macOS Big Sur

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:

Steps to reproduce:

  1. Add a new index pattern, and use other field(we have field(not @timestamp) For example: @ts_nano) for time field
  2. Open "Discover" page and use "Time" for sorting
  3. Sort asc --> "sort": [{"@timestamp": {"order": "desc","unmapped_type": "boolean"}},{"@ts_nano": {"order": "asc","numeric_type": "date_nanos","unmapped_type": "boolean"}}]
  4. Sort desc --> "sort": [{"@timestamp": {"order": "desc","unmapped_type": "boolean"}},{"@ts_nano": {"order": "desc","numeric_type": "date_nanos","unmapped_type": "boolean"}}]

Expected behavior: I have use @ts_nano for sorting. When sort asc --> "sort": [{"@ts_nano": {"order": "asc","numeric_type": "date_nanos","unmapped_type": "boolean"}}] When sort desc --> "sort": [{"@ts_nano": {"order": "desc","numeric_type": "date_nanos","unmapped_type": "boolean"}}] *

Screenshots (if relevant):
Uploading 123.png…

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@Tsukiand Tsukiand added the bug Fixes for quality problems that affect the customer experience label Nov 5, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 5, 2021
@timroes timroes added Feature:Discover Discover Application Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. triage_needed labels Nov 5, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 5, 2021
@kertal
Copy link
Member

kertal commented Nov 5, 2021

Thx @Tsukiand for reporting! I've 2 questions for this:

  1. Is @timestamp also a valid field in the index pattern containing @ts_nano ?
  2. Before you switched to the new index pattern, was there an index pattern selected sorted by @timestamp
  3. If you click on New in Discovers toolbar, is the sorting still wrong?
    Thx!

@Tsukiand
Copy link
Author

Tsukiand commented Nov 8, 2021

Thx @Tsukiand for reporting! I've 2 questions for this:

  1. Is @timestamp also a valid field in the index pattern containing @ts_nano ?
  2. Before you switched to the new index pattern, was there an index pattern selected sorted by @timestamp
  3. If you click on New in Discovers toolbar, is the sorting still wrong?
    Thx!
  1. Yes
  2. Yes
  3. When i use "New" in Discover toolbar, the sorting is right.

Is this a feature by design? Or this is a kibana bug?

@kertal
Copy link
Member

kertal commented Nov 8, 2021

Thx, well, I'd call it a usability bug, and the good news here is: PR to fix it is on the way: #116145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants