Skip to content

Conversation

@flash1293
Copy link
Contributor

@flash1293 flash1293 commented Aug 18, 2020

Fixes #74348

This PR fixes problems with the Lens rollup integration.

  • useNormalizedEsIntervals has to be set to false for rollup date fields - this PR passes the index pattern to the toEsAggsConfig function of the individual operations to pull out the information about restrictions there
  • The field existence endpoint doesn't work for rolled up fields. This PR avoids the request when there are restrictions and simply shows all fields in this case - I extended the local IndexPattern type with a hasRestrictions flag
  • This PR also adds some functional tests for rollups in Lens

@flash1293
Copy link
Contributor Author

Jenkins, test this.

@flash1293 flash1293 marked this pull request as ready for review August 19, 2020 12:50
@flash1293 flash1293 requested a review from a team August 19, 2020 12:50
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

page load bundle size

id value diff baseline
lens 867.6KB +778.0B 866.8KB

History

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

@mbondyra mbondyra requested review from dej611 and wylieconlon August 25, 2020 13:40
Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Tested and it fixes the bugs in the issue.
Code looks good to me.

@mbondyra mbondyra merged commit ddf99b6 into elastic:master Aug 26, 2020
mbondyra added a commit to mbondyra/kibana that referenced this pull request Aug 26, 2020
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
mbondyra added a commit that referenced this pull request Aug 26, 2020
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
mshustov added a commit to mshustov/kibana that referenced this pull request Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens] Rollup indices don't work properly

3 participants