Skip to content
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] Refactor imports using 'elasticsearch' to '@elastic/elasticsearch'. Extend 'isPopulatedOjbect()'. #95651

Merged
merged 8 commits into from
Apr 1, 2021

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Mar 29, 2021

Summary

  • Gets rid of imports from 'elasticsearch' and replaces them with '@elastic/elasticsearch'.
  • Extends isPopulatedObject() to allow an optional array of attributes to check if they exist. Allows us to get rid of the manual and inconsistend usages of hasOwnProperty().

Checklist

@walterra walterra self-assigned this Mar 29, 2021
@walterra walterra added :ml v7.13.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Mar 29, 2021
@walterra walterra marked this pull request as ready for review March 30, 2021 12:14
@walterra walterra requested a review from a team as a code owner March 30, 2021 12:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
ml 1779 1780 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 5.9MB 5.9MB +216.0B
transform 907.9KB 907.3KB -604.0B
total -388.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
ml 64.9KB 65.5KB +532.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @walterra

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@walterra walterra added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 1, 2021
@walterra walterra merged commit a1c36e7 into elastic:master Apr 1, 2021
@walterra walterra deleted the ml-estypes branch April 1, 2021 09:46
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 1, 2021
…h'. Extend 'isPopulatedOjbect()'. (elastic#95651)

- Gets rid of imports from 'elasticsearch' and replaces them with '@elastic/elasticsearch'.
- Extends isPopulatedObject() to allow an optional array of attributes to check if they exist. Allows us to get rid of the manual and inconsistent usages of hasOwnProperty().
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #96027

This backport PR will be merged automatically after passing CI.

walterra added a commit to walterra/kibana that referenced this pull request Apr 1, 2021
…h'. Extend 'isPopulatedOjbect()'. (elastic#95651)

- Gets rid of imports from 'elasticsearch' and replaces them with '@elastic/elasticsearch'.
- Extends isPopulatedObject() to allow an optional array of attributes to check if they exist. Allows us to get rid of the manual and inconsistent usages of hasOwnProperty().
walterra added a commit that referenced this pull request Apr 1, 2021
…csearch'. Extend 'isPopulatedOjbect()'. (#95651) (#96058)

* [ML] Refactor imports using 'elasticsearch' to '@elastic/elasticsearch'. Extend 'isPopulatedOjbect()'. (#95651)

- Gets rid of imports from 'elasticsearch' and replaces them with '@elastic/elasticsearch'.
- Extends isPopulatedObject() to allow an optional array of attributes to check if they exist. Allows us to get rid of the manual and inconsistent usages of hasOwnProperty().

* [ML] Fix import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed :ml release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants