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] Remove use_field_mapping from top hits agg #71168

Merged
merged 3 commits into from
Jul 14, 2020

Conversation

lukeelmers
Copy link
Member

Closes #47727
Closes #64734
Closes #68883

Summary

In #22771 we added a format parameter to docvalues fields in top hits aggs so that we could explicitly override date fields formats. For non-date fields we used use_field_mapping as a fallback, which ES introduced in 6.x to ease the transition to 7.0.

In 7.0, ES began formatting docvalues fields using the field's mapping definition by default, and added a deprecation warning for use_field_mapping as explained in #47727.

As of 8.0, the use_field_mapping option for docvalues fields has been removed altogether, which has been causing errors on master.

This PR removes use_field_mapping from the top hits agg docvalues fields, which should resolve #68883. It also re-enables a skipped functional test as explained in #64734.

I'll also backport this so that the deprecation warning can be removed as of 7.9.

This should have no effect on saved visualizations as that parameter was added to the DSL on-the-fly when the query was generated, but was never stored in saved objects.

@lukeelmers lukeelmers added bug Fixes for quality problems that affect the customer experience review Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) v8.0.0 Team:AppArch release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Jul 8, 2020
@lukeelmers lukeelmers requested a review from a team as a code owner July 8, 2020 22:03
@lukeelmers lukeelmers self-assigned this Jul 8, 2020
@elasticmachine
Copy link
Contributor

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

@lizozom
Copy link
Contributor

lizozom commented Jul 13, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

Copy link
Contributor

@streamich streamich 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.

@lukeelmers lukeelmers merged commit 7b026bb into elastic:master Jul 14, 2020
@lukeelmers lukeelmers deleted the fix/use-field-mapping branch July 14, 2020 14:19
sorenlouv pushed a commit to lukeelmers/kibana that referenced this pull request Jul 14, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 14, 2020
* master: (21 commits)
  [Maps] 7.9 design improvements (elastic#71563)
  [ML] Changing all calls to ML endpoints to use internal user (elastic#70487)
  [eventLog] prevent log writing when initialization fails (elastic#71339)
  [Observability] landing page always being displayed (elastic#71494)
  [IM] Address data stream copy feedback (elastic#71615)
  [Logs UI] Anomalies page dataset filtering (elastic#71110)
  [data.search.aggs] Remove `use_field_mapping` from top hits agg (elastic#71168)
  [ML] Anomaly swim lane embeddable navigation and filter actions (elastic#71082)
  Fixes typo in siem_cloudtrail job description (elastic#71569)
  Require granted API Keys to have a name (elastic#71623)
  Update  getUsageForCollection (elastic#71609)
  Only fetch saved elements once (elastic#71310)
  [SecuritySolution][Resolver] Adding siem index and guarding process ancestry (elastic#71570)
  [APM] Additional data telemetry changes (elastic#71112)
  [Visualize] Fix export table for table export links (elastic#71249)
  [Search] Server side search API (elastic#70446)
  use inclusive language (elastic#71607)
  [Security Solution] Hide timeline footer when Resolver is open (elastic#71516)
  [Index template wizard] Remove shadow and use border for components panels (elastic#71606)
  [ML] Kibana API endpoint for histogram chart data (elastic#70976)
  ...
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, ...) release_note:skip Skip the PR/issue when compiling release notes review v7.9.0 v8.0.0
Projects
None yet
5 participants