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

refact(NA): remove set loop from upgrade assistant usage collector #63977

Merged
merged 6 commits into from
Apr 22, 2020

Conversation

mistic
Copy link
Member

@mistic mistic commented Apr 20, 2020

Small refactor to remove set loop from the upgrade assistant usage collector.

@mistic mistic requested a review from legrego April 20, 2020 16:34
@mistic mistic requested a review from a team as a code owner April 20, 2020 16:34
@mistic mistic self-assigned this Apr 20, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@mistic mistic added the release_note:skip Skip the PR/issue when compiling release notes label Apr 20, 2020
@mistic mistic changed the title refact(NA): use default telemetry obj in the set loop refact(NA): use default telemetry obj as a check before set loop Apr 20, 2020
Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

@mistic Thanks for adding this logic, would you mind describing in the PR what issue it was causing?

Also, I really would prefer to not use a dependency for this functionality, especially because there is native functionality Object.prototype.hasOwnProperty which does exactly what we want here. Use of lodash in general should be scaled back where possible.

@mistic mistic changed the title refact(NA): use default telemetry obj as a check before set loop refact(NA): remove set loop from usage collector Apr 21, 2020
@mistic mistic changed the title refact(NA): remove set loop from usage collector refact(NA): remove set loop from upgrade assistant collector Apr 21, 2020
@mistic mistic changed the title refact(NA): remove set loop from upgrade assistant collector refact(NA): remove set loop from upgrade assistant usage collector Apr 21, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Happy with the updated changes 👍.

@mistic mistic merged commit 5e2dbda into elastic:master Apr 22, 2020
@mistic
Copy link
Member Author

mistic commented Apr 22, 2020

7.x: ac06ad8
7.7: 6867456
6.8: 0aea444

mistic added a commit to mistic/kibana that referenced this pull request Apr 22, 2020
…lastic#63977)

* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
mistic added a commit to mistic/kibana that referenced this pull request Apr 22, 2020
…lastic#63977)

* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
mistic added a commit to mistic/kibana that referenced this pull request Apr 22, 2020
…lastic#63977)

* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
mistic added a commit that referenced this pull request Apr 22, 2020
…63977) (#64180)

* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
mistic added a commit that referenced this pull request Apr 22, 2020
…63977) (#64181)

* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
mistic added a commit that referenced this pull request Apr 22, 2020
…63977) (#64197)

* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
@legrego legrego mentioned this pull request Jul 8, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v6.8.9 v7.7.1 v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants