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

Scripted Fields- Unable to sort on Date scripted fields in Discover - Unsupported script sort type -date #75711

Closed
rashmivkulkarni opened this issue Aug 21, 2020 · 4 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Feature:Scripted Fields Scripted fields features impact:critical This issue should be addressed immediately due to a critical level of impact on the product. SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week triage_needed

Comments

@rashmivkulkarni
Copy link
Contributor

Kibana 8.0

When I tried to sort on a date scripted field in discover, I encountered this error : unsupported script sort type: Date

Screen Shot 2020-08-21 at 1 23 43 PM

Screen Shot 2020-08-21 at 1 23 30 PM

@rashmivkulkarni rashmivkulkarni added bug Fixes for quality problems that affect the customer experience Feature:Scripted Fields Scripted fields features Feature:Discover Discover Application labels Aug 21, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@LeeDr
Copy link

LeeDr commented Oct 6, 2020

@maltoze
Copy link

maltoze commented Oct 14, 2020

same issue here.

@ppisljar ppisljar added impact:critical This issue should be addressed immediately due to a critical level of impact on the product. triage_needed labels Mar 1, 2021
@Dosant Dosant added the SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week label Mar 1, 2021
@mattkime
Copy link
Contributor

mattkime commented Mar 2, 2021

This will be resolved by using runtime fields instead of scripted fields in 7.12 - #88995

@mattkime mattkime closed this as completed Mar 2, 2021
mattkime added a commit that referenced this issue May 28, 2024
…list (#183955)

## Summary

tldr; Less field loading

Previously, this code would look at the field list to determine whether
a scripted field was involved necessitating special handling. This is
unnecessary because we could simply look for scripted or runtime fields
and determine the necessary output without a hit against the field_caps
api.

~~Of note, I removed a check to see if a given scripted field is
sortable. All supported scripted field types are sortable.~~

Due to a bug, date type scripted fields aren't sortable. This PR
prevents sorting based on a date type scripted field.
#75711

---------

Co-authored-by: Matthias Wilhelm <[email protected]>
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 Feature:Scripted Fields Scripted fields features impact:critical This issue should be addressed immediately due to a critical level of impact on the product. SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week triage_needed
Projects
None yet
Development

No branches or pull requests

8 participants