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

[Global search] Prevent unnecessary /internal/global_search/find http call at startup #112535

Merged
merged 2 commits into from
Oct 28, 2021

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Sep 20, 2021

Summary

Fixes #78785

Prevented unnecessary /internal/global_search/find http call at startup, calls will be made only when components has been in focus.

This was causing two http api calls each time kibana loaded, regardless of the page you are.

Overhauled tests, it seems like previous tests were broken, since input focus wasn't working in tests.

@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@shahzad31 shahzad31 changed the title load once [Global search] Prevent global calls from global search Oct 25, 2021
@shahzad31 shahzad31 changed the title [Global search] Prevent global calls from global search [Global search] Prevent unnecessary /internal/global_search/find http call at startup Oct 25, 2021
@elastic elastic deleted a comment from kibanamachine Oct 25, 2021
@shahzad31 shahzad31 marked this pull request as ready for review October 25, 2021 15:51
@shahzad31 shahzad31 requested a review from a team as a code owner October 25, 2021 15:51
@shahzad31 shahzad31 added release_note:skip Skip the PR/issue when compiling release notes v7.16.0 v8.0.0 labels Oct 25, 2021
@shahzad31
Copy link
Contributor Author

@elasticmachine merge upstream

@shahzad31 shahzad31 added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Oct 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
globalSearchBar 21.7KB 21.8KB +90.0B

History

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

Copy link
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for doing this.

@shahzad31 shahzad31 added the auto-backport Deprecated - use backport:version if exact versions are needed label Oct 28, 2021
@shahzad31 shahzad31 merged commit 9e7f1c8 into elastic:master Oct 28, 2021
@shahzad31 shahzad31 deleted the fix-global-search branch October 28, 2021 13:26
@kibanamachine
Copy link
Contributor

The following labels were identified as gaps in your version labels and will be added automatically:

  • v8.1.0

If any of these should not be on your pull request, please manually remove them.

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.16

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 28, 2021
… call at startup (#112535) (#116628)

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

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

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 29, 2021
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

pgayvallet pushed a commit that referenced this pull request Nov 2, 2021
… call at startup (#112535) (#116627)

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

Co-authored-by: Shahzad <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 2, 2021
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 release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.16.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GS] avoid unnecessary /internal/global_search/find http call at startup
4 participants