-
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
[ML] Migrate bucket span estimator button to EUI/React. #19045
Conversation
Pinging @elastic/ml-ui |
💚 Build Succeeded |
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. Just a question about whether we should still be flagging this up as an experimental feature.
return ( | ||
<div className="bucket-span-estimator"> | ||
<EuiToolTip | ||
content="Experimental feature for estimating bucket span." |
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 wonder if this warning about it being an experimental feature is still needed?
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.
We are adding in k-api tests shortly. I'm not sure how far we'll get in terms of depth of coverage in this release, so let's keep as experimental till we have a stronger set of data scenario tests.
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
fd3762a
to
ea5e2c5
Compare
💚 Build Succeeded |
// watch for these changes | ||
$scope.$watch('formConfig.agg.type', updateButton, true); | ||
$scope.$watch('jobStateWrapper.jobState', updateButton, true); | ||
$scope.$watch('JOB_STATE', updateButton, true); |
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.
JOB_STATE
is a constant and so doesn't need to be watched.
💔 Build Failed |
jenkins test this |
💔 Build Failed |
jenkins test this |
💚 Build Succeeded |
This migrates the bucket span estimator button to use React/EUI. The existing mlBucketSpanEstimator is refactored to use React without ngReact to have more detailed control in regards to the $scope being transformed to a trimmed down props object with only the information necessary for the React component. This also allows more control in regards to the $scope attributes being watched. Instead of custom styles and classes this now uses the options available for EuiButton. However, there were some minimal overrides necessary to the EUI styles to replicate the narrower height and padding to fit within the input element.
) This migrates the bucket span estimator button to use React/EUI. The existing mlBucketSpanEstimator is refactored to use React without ngReact to have more detailed control in regards to the $scope being transformed to a trimmed down props object with only the information necessary for the React component. This also allows more control in regards to the $scope attributes being watched. Instead of custom styles and classes this now uses the options available for EuiButton. However, there were some minimal overrides necessary to the EUI styles to replicate the narrower height and padding to fit within the input element.
💚 Build Succeeded |
This migrates the bucket span estimator button to use React/EUI.
The existing
mlBucketSpanEstimator
is refactored to use React withoutngReact
to have more detailed control in regards to the$scope
being transformed to a trimmed downprops
object with only the information necessary for the React component. This also allows more control in regards to the$scope
attributes being watched. Instead of custom styles and classes this now uses the options available forEuiButton
. However, there were some minimal overrides necessary to the EUI styles to replicate the narrower height and padding to fit within the input element.Part of #18374.