-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Clear out old rollup strategy #59423
Clear out old rollup strategy #59423
Conversation
@elasticmachine merge upstream |
merge conflict between base and head |
19b0f52
to
820a256
Compare
…earch/clear-out-old-rollup-strategy
Pinging @elastic/kibana-app-arch (Team:AppArch) |
…earch/clear-out-old-rollup-strategy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ML bit LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
body: { size, aggs, query: _query }, |
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
@@ -348,9 +344,7 @@ export { | |||
SavedQuery, | |||
SavedQueryService, | |||
SavedQueryTimeFilter, | |||
SavedQueryAttributes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* 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 <[email protected]>
* 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 <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Summary
Depends on #59224
defaultSearchStrategy
incallClient
indexType
to the server sideChecklist
Delete any items that are not applicable to this PR.
For maintainers