-
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] @kbn/ml-agg-utils, @kbn/ml-is-populated-object, @kbn/ml-string-hash packages. #132963
Conversation
80abf19
to
3ed02f4
Compare
3ed02f4
to
bafadef
Compare
7ef9146
to
253de5f
Compare
Pinging @elastic/ml-ui (:ml) |
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!
|
||
let aggInterval = 1; | ||
|
||
if (delta > MAX_CHART_COLUMNS || delta <= 1) { |
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.
For future follow ups: Since we are making this utility generic now, I think we should be able to pass in an optional maxChartColumns arg with MAX_CHART_COLUMNS as fallback so it's not so opinionated.
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.
file_upload changes LGTM
code review
💛 Build succeeded, but was flakyFailed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @walterra |
@qn895 This is ready for another look. I moved |
Latest code changes LGTM 🎉 |
Summary
Part of #136265.
Moves some ML utility code to packages.
@kbn/ml-agg-utils
contains multiple utilities used in combination related to building aggregations.@kbn/ml-is-populated-object
contains theisPopulatedObject()
utility function used across several plugins.@kbn/ml-string-hash
contains thestringHash()
utility function used across several plugins.This is in preparation for this code also to be consumed by the
aiops
plugin.Checklist