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

[Maps] do not lazy load setup API methods #114150

Merged
merged 2 commits into from
Oct 7, 2021
Merged

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Oct 6, 2021

#113857 (comment) identified a regression caused when registerLayerWizard and registerSource were moved from start API to setup API. The problem is that using lazy load imports kibana_services which has not been populated when setup is called. This PR just removes the lazy loading for registerLayerWizard and registerSource.

@nreese nreese added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.16.0 labels Oct 6, 2021
@nreese nreese requested a review from a team as a code owner October 6, 2021 17:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
maps 841 840 -1

Async chunks

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

id before after diff
maps 2.7MB 2.7MB -255.0B

Page load bundle

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

id before after diff
maps 41.2KB 41.7KB +525.0B

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

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

Tested this together with #113857, can add ML anomaly layers.

image

This works as expected, thx.

@thomasneirynck thomasneirynck self-requested a review October 6, 2021 23:03
@nreese nreese added the auto-backport Deprecated - use backport:version if exact versions are needed label Oct 7, 2021
@nreese nreese merged commit c2aeac5 into elastic:master Oct 7, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 114150

nreese added a commit to nreese/kibana that referenced this pull request Oct 7, 2021
* [Maps] do not lazy load setup API methods

* remove test code
# Conflicts:
#	x-pack/plugins/maps/public/lazy_load_bundle/index.ts
@nreese
Copy link
Contributor Author

nreese commented Oct 7, 2021

7.x #114220

nreese added a commit that referenced this pull request Oct 7, 2021
* [Maps] do not lazy load setup API methods

* remove test code
# Conflicts:
#	x-pack/plugins/maps/public/lazy_load_bundle/index.ts
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 [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants