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

[Core] UiSettings Client: inline getRaw, remove deep merge #85027

Merged
merged 12 commits into from
May 7, 2021

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented Dec 4, 2020

Summary

Closes #97025
Tested locally:
getAll() duration on master: 20-60ms
getAll() duration on branch: 9-19ms

Checklist

@mshustov mshustov added chore Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Dec 4, 2020
@mshustov mshustov added v7.12.0 and removed v7.11.0 labels Dec 16, 2020
@mshustov mshustov changed the title [Core] UiSettings Client: inline getRow, remove deep merge [Core] UiSettings Client: inline getRaw, remove deep merge Apr 25, 2021
@mshustov
Copy link
Contributor Author

@elasticmachine merge upstream

@mshustov
Copy link
Contributor Author

mshustov commented May 4, 2021

@elasticmachine merge upstream

@mshustov mshustov added v7.14.0 and removed v7.12.0 labels May 6, 2021
@mshustov mshustov marked this pull request as ready for review May 6, 2021 11:33
@mshustov mshustov requested review from a team as code owners May 6, 2021 11:33
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

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

LGTM. Just added a couple of NITs

src/core/server/ui_settings/ui_settings_client.ts Outdated Show resolved Hide resolved
src/core/server/ui_settings/ui_settings_client.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

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

AppServices change LGTM.

@mshustov mshustov added the auto-backport Deprecated - use backport:version if exact versions are needed label May 6, 2021
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Metrics [docs]

✅ unchanged

History

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

@mshustov mshustov merged commit eb55a9b into elastic:master May 7, 2021
@mshustov mshustov deleted the uisc-remove-get-row branch May 7, 2021 07:36
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request May 7, 2021
…5027)

* inline getRow, remove deep merge

* make sure uiSettings.getAll returns immutable result

* update docs

* Revert "update docs"

This reverts commit a6c9bb3.

* use freeze to speed up the process

* apply Alejanro suggestion

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 7, 2021
…99566)

* inline getRow, remove deep merge

* make sure uiSettings.getAll returns immutable result

* update docs

* Revert "update docs"

This reverts commit a6c9bb3.

* use freeze to speed up the process

* apply Alejanro suggestion

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Mikhail Shustov <[email protected]>
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 chore performance release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core] uiSettingsClient.getRaw function is slow because of its use of _.defaultDeep
6 participants