Clear out old rollup strategy#59423
Conversation
|
@elasticmachine merge upstream |
|
merge conflict between base and head |
19b0f52 to
820a256
Compare
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
…earch/clear-out-old-rollup-strategy
lukasolson
left a comment
There was a problem hiding this comment.
Tested and things seem to be functioning well.
A couple of things we should probably note: The original rollup search strategy only sent the aggs/query/index/size from searchRequest, not everything else (like stored_fields, script_fields, docvalue_fields). We should probably do something similar:
Other than that, left a couple of comments below.
src/plugins/data/public/index_patterns/lib/get_index_pattern_type.ts
Outdated
Show resolved
Hide resolved
| SavedQuery, | ||
| SavedQueryService, | ||
| SavedQueryTimeFilter, | ||
| SavedQueryAttributes, |
There was a problem hiding this comment.
I'm not sure why changes to SavedQueryAttributes and TimefilterSetup are included in this PR... Could you explain?
There was a problem hiding this comment.
Cleaning up while working.
Not related, but didn't feel like dropping those either.
…earch/clear-out-old-rollup-strategy
There was a problem hiding this comment.
Nice that rollups are supported now, but there's one thing to discuss, concerning Discover. the rollup @timestamp works in a different way, it's not a single value. Therefore it would need adaptions, because currently the "Time" column is empty when a rollup pattern is used. also sorting and time filter don't work
So I think it's better to keep the warning that the index pattern is not supported, and to open an issue "Support rollup index patterns" in discover
|
@lukasolson I addressed most of your feedback. |
kertal
left a comment
There was a problem hiding this comment.
Code LGTM, wasn't aware that the handling of rollup data in Discover is no regression, but a thing that should be improved in the future.
|
@elasticmachine merge upstream |
…earch/clear-out-old-rollup-strategy
…thub.com:lizozom/kibana into newplatform/search/clear-out-old-rollup-strategy
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* Old search strategy cleanup * restore rollup strategy * Remove hasSearchStategyForIndexPattern * ts * fix jest tests * cleanup exports * pass index pattern type to server for rollups * merge fix * Fix types * ts fixes * oss strategy error handling * update translations * jest test fix * Use indexType instead of index * code review 1 * updated docs * jest test * jest snapshot Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Old search strategy cleanup * restore rollup strategy * Remove hasSearchStategyForIndexPattern * ts * fix jest tests * cleanup exports * pass index pattern type to server for rollups * merge fix * Fix types * ts fixes * oss strategy error handling * update translations * jest test fix * Use indexType instead of index * code review 1 * updated docs * jest test * jest snapshot Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Summary
Depends on #59224
defaultSearchStrategyincallClientindexTypeto the server sideChecklist
Delete any items that are not applicable to this PR.
For maintainers