-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ML] Transform: Fix use of saved search in pivot wizard. #51079
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
[ML] Transform: Fix use of saved search in pivot wizard. #51079
Conversation
|
Pinging @elastic/ml-ui (:ml) |
💔 Build Failed
|
💔 Build Failed
|
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.
Typo - should refer to the avg(responsetime) agg I think.
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.
Fixed in a2fc19a.
pheyos
left a comment
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.
Great stuff 🎉
Left a couple suggestions around the tests.
...ublic/app/sections/create_transform/components/source_index_preview/source_index_preview.tsx
Outdated
Show resolved
Hide resolved
...gins/transform/public/app/sections/create_transform/components/step_define/pivot_preview.tsx
Outdated
Show resolved
Hide resolved
x-pack/test/functional/apps/transform/creation_index_pattern.ts
Outdated
Show resolved
Hide resolved
💔 Build Failed
|
pheyos
left a comment
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.
pheyos
left a comment
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.
Failed test: Error: expected 'Ahmed Al,Eddie,Robert' to equal 'Ahmed Al,Kamal,Robert'
It seems that the source preview doesn't load the same data each time. Probably because we're not sorting in the ES query and in that case ES doesn't give guarantees on the order.
alvarezmelissa87
left a comment
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 once tests have been updated and typo fixed 👌
|
@peteharverson I fixed the filtered preview in the transform list in 8c54cdb. |
|
@pheyos Addressed your comments. I changed the source table assertion for the index based tests to only check for the number of rows and columns. The preview on the management page should now be filtered correctly too. |
💔 Build Failed
|
pheyos
left a comment
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
I think the validation for number of columns and rows could be also useful (in addition to the existing validations) for
a) the pivot preview table
b) the saved search transforms
but this can be done in a follow-up.
💔 Build Failed
|
|
retest |
|
@elasticmachine merge upstream |
💚 Build Succeeded
|
d478e38 to
3a47245
Compare
💔 Build Failed |
💚 Build Succeeded |
Fixes applying saved searches in the transform wizard. Previously, upon initializing the transform wizard's state, we would miss passing on the initialized data from kibanaContext. The resulting bug was that saved search were not applied in the generated transform config and source preview table.
…1555) Fixes applying saved searches in the transform wizard. Previously, upon initializing the transform wizard's state, we would miss passing on the initialized data from kibanaContext. The resulting bug was that saved search were not applied in the generated transform config and source preview table.
Fixes applying saved searches in the transform wizard. Previously, upon initializing the transform wizard's state, we would miss passing on the initialized data from kibanaContext. The resulting bug was that saved search were not applied in the generated transform config and source preview table.
… (#52210) * [ML] Transform: Fix use of saved search in pivot wizard. (#51079) Fixes applying saved searches in the transform wizard. Previously, upon initializing the transform wizard's state, we would miss passing on the initialized data from kibanaContext. The resulting bug was that saved search were not applied in the generated transform config and source preview table. * [ML] Fix search for Transforms and Analytics tables (#52163) * [ML] fix TransformTable init * [ML] fix Analytics table * [ML] Fix table imports.


Summary
Fixes applying saved searches in the transform wizard. Previously, upon initializing the transform wizard's state, we would miss passing on the initialized data from
kibanaContext. The resulting bug was that saved search were not applied in the generated transform config and source preview table.useKibanaContextcustom hook, in combination with theRenderOnlyWithInitializedKibanaContextcomponent we don't need to check in components further down ifkibanaContextwas already initialized. We already have a similaruseKibanaContextinplugins/mlbutplugins/transformwas missing a similar custom hook.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.Documentation was added for features that require explanation or tutorialsFor maintainers