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

[data.search.aggs] Ensure Other bucket works on scripted fields. #71329

Merged
merged 2 commits into from
Jul 13, 2020

Conversation

lukeelmers
Copy link
Member

Fixes #48570

Summary

"Other" buckets in terms aggregations were not working for scripted fields, because we include an exists filter in our postFlightRequest, which always filters out the hits as scripted fields don't exist in the index.

This PR adds a check to ensure exists filters are not added for scripted fields, and cleans up the conditional to make it a bit more readable.

Checklist

@lukeelmers lukeelmers added bug Fixes for quality problems that affect the customer experience review Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Scripted Fields Scripted fields features v8.0.0 Team:AppArch v7.9.0 v7.8.2 labels Jul 9, 2020
@lukeelmers lukeelmers requested a review from lukasolson July 9, 2020 21:45
@lukeelmers lukeelmers requested a review from a team as a code owner July 9, 2020 21:45
@lukeelmers lukeelmers self-assigned this Jul 9, 2020
@elasticmachine
Copy link
Contributor

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

@lizozom
Copy link
Contributor

lizozom commented Jul 13, 2020

@elasticmachine merge upstream

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

image
Was able to use other agg with scripted field.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@lukeelmers lukeelmers merged commit 4925a49 into elastic:master Jul 13, 2020
@lukeelmers lukeelmers deleted the fix/other-scripted branch July 13, 2020 15:11
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 13, 2020
* master: (28 commits)
  skip flaky suite (elastic#71361)
  [Ingest Manager] Add UI to enroll standalone agent (elastic#71288)
  Node options from cfg file for production (elastic#62468)
  [APM] Improvements to the ML Settings page (elastic#71309)
  add old .chromium to gitignore to prevent it from being accidentally committed
  [Ingest Manager] Simplify add/edit package config (integration) form (elastic#71187)
  Ensure Other bucket works on scripted fields. (elastic#71329)
  [APM] Anomaly detection setup link with alert if job doesn't exist (elastic#71229)
  [APM] Anomaly detection integration with transaction duration chart (elastic#71230)
  inclusive language (elastic#71438)
  [Ingest Manager] During fleet setup create an enrollment for every config (elastic#71308)
  Improvements to our developer guide (elastic#67764)
  [SIEM][Detections] Fixes index patterns order (elastic#71270)
  [Metrics + Logs UI] Add test for logs and metrics telemetry (elastic#70858)
  [Maps] Inclusive language (elastic#71427)
  [Logs UI] Unskip log highlight api integration test (elastic#71058)
  [Security_Solution][Resolver] Style adjustments per UX (elastic#71179)
  [Functional test] Increase the timeout to click new vis function (elastic#71226)
  [Discover] Migrate async import of embeddable factory to actual embeddable (elastic#70920)
  fix overflow (elastic#70723)
  ...
lukeelmers added a commit to lukeelmers/kibana that referenced this pull request Jul 13, 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:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Scripted Fields Scripted fields features release_note:fix review v7.8.2 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group other values doesn't work for scripted fields
4 participants