Skip to content

[8.17] Fix sort for rollup data views (#214656)#215035

Merged
kibanamachine merged 1 commit intoelastic:8.17from
kibanamachine:backport/8.17/pr-214656
Mar 18, 2025
Merged

[8.17] Fix sort for rollup data views (#214656)#215035
kibanamachine merged 1 commit intoelastic:8.17from
kibanamachine:backport/8.17/pr-214656

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.17:

Questions ?

Please refer to the Backport tool documentation

## Summary

Resolves elastic#213629.

Since elastic#163784 we have included a
`format` parameter in the `sort` that we send to Elasticsearch. This
worked for everything except rollup data views, which break when the
`format` parameter is provided.

This restores the behavior prior to that PR (we still send the `sort`
but don't include the `format` parameter). Ideally we would probably not
send the timestamp field at all for rollup data views since we treat
them as if they are non-time-based, but this would require a bit of a
refactor, and rollups are deprecated anyway.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

### Release notes

Fixes opening a rollup data view in Discover.

Co-authored-by: Matthew Kime <matt@mattki.me>
(cherry picked from commit 2de4b33)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Mar 18, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) March 18, 2025 17:38
@kibanamachine kibanamachine merged commit 2eb08b7 into elastic:8.17 Mar 18, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
discover 44.1KB 44.1KB +42.0B

cc @lukasolson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants