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

Fix normalize sort for scripted string fields #72681

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

nickofthyme
Copy link
Contributor

Summary

Fixes #72655

string type scripted fields were casted to type number causing an error when sorting.

Sorting scripted string fields now works as expected... 👇

Screen Recording 2020-07-21 at 11 04 AM

Checklist

For maintainers

@nickofthyme nickofthyme added bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana labels Jul 21, 2020
@nickofthyme nickofthyme marked this pull request as ready for review July 21, 2020 16:06
@nickofthyme nickofthyme requested a review from a team as a code owner July 21, 2020 16:06
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

page load bundle size

id value diff baseline
data 1.4MB -9.0B 1.4MB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM - thanks for adding those tests! tested chrome (macos), and all seems to work as expected.

@nickofthyme nickofthyme merged commit b0ef3e9 into elastic:master Jul 21, 2020
@nickofthyme nickofthyme deleted the scripted-string-sort branch July 21, 2020 20:32
nickofthyme added a commit to nickofthyme/kibana that referenced this pull request Jul 21, 2020
nickofthyme added a commit to nickofthyme/kibana that referenced this pull request Jul 21, 2020
nickofthyme added a commit to nickofthyme/kibana that referenced this pull request Jul 21, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 22, 2020
* master: (23 commits)
  Stabilize closing toast (elastic#72097)
  stabilize failing test (elastic#72086)
  Stabilize filter bar test (elastic#72032)
  Unskip vislib tests (elastic#71452)
  [ML] Fix layout of anomaly chart tooltip for long field values (elastic#72689)
  fix preAuth/preRouting mocks (elastic#72663)
  [Security Solution] Hide KQL bar (all pages) and alerts filters (Detections) when Resolver is full screen (elastic#72788)
  [Uptime] Rename Whitelist to Allowlist in parse_filter_map (elastic#71584)
  [Security Solution] Fixes exception modal not loading content (elastic#72770)
  [Security Solution][Exceptions] - Require non empty entries and non empty string values in exception list items (elastic#72748)
  [Detections] Add validation for Threshold value field (elastic#72611)
  [SIEM][Detection Engine][Lists] Adds version and immutability data structures (elastic#72730)
  [Security Solution][Detections] Validate file type of value lists (elastic#72746)
  [pre-req] New Component Layout proposal (elastic#72385)
  [ML] do not throw an error when agg is not supported by UI (elastic#72685)
  [Resolver] Origin process (elastic#72382)
  [Ingest Manager] Allow to force unenroll from the UI (elastic#72386)
  skip 6.8 branch when triggering baseline-capture builds (elastic#72706)
  [CI] In-progress PR comments (elastic#72211)
  Fix sorting of scripted string fields (elastic#72681)
  ...
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 22, 2020
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@nickofthyme nickofthyme removed v7.7.2 backport missing Added to PRs automatically when the are determined to be missing a backport. labels Jul 24, 2020
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:Search Querying infrastructure in Kibana release_note:fix v7.8.1 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Search] sorting scripted string fields throws error
3 participants