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

[KibanaLegacy] Remove unused stuff and make things async if it is easy #104638

Merged
merged 9 commits into from
Jul 12, 2021

Conversation

flash1293
Copy link
Contributor

This PR removes a few unused files and lazy loads angular bootstrap in the places where it's needed

@flash1293 flash1293 added Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.15.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jul 7, 2021
@flash1293 flash1293 marked this pull request as ready for review July 7, 2021 19:12
@flash1293 flash1293 requested review from a team July 7, 2021 19:12
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@stratoula
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

expected head sha didn’t match current head ref.

Copy link
Contributor

@stratoula stratoula 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, I tested it locally and it works fine for Discover, graph and legacy datatable

Copy link
Contributor

@estermv estermv left a comment

Choose a reason for hiding this comment

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

Stack monitoring changes LGTM 🚀

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 377 378 +1
kibanaLegacy 63 59 -4
total -3

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
kibanaLegacy 85 62 -23

Async chunks

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

id before after diff
discover 420.6KB 425.0KB +4.3KB
graph 1.1MB 1.1MB -7.0B
kibanaLegacy 112.7KB 122.7KB +10.0KB
visTypeTable 102.2KB 102.2KB +3.0B
total +14.3KB

Page load bundle

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

id before after diff
discover 92.8KB 92.9KB +126.0B
graph 11.2KB 11.2KB -41.0B
kibanaLegacy 59.2KB 46.2KB -12.9KB
monitoring 45.5KB 45.6KB +67.0B
timelion 9.6KB 9.5KB -41.0B
total -12.8KB
Unknown metric groups

API count

id before after diff
kibanaLegacy 93 66 -27

async chunk count

id before after diff
kibanaLegacy 1 2 +1

History

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

@stratoula stratoula merged commit 832d349 into elastic:master Jul 12, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 12, 2021
elastic#104638)

* remove unused stuff and make things async if it is easy

* fix problems

* load bootstrap in monitoring

* load angular bootstrap for saved searches and in  unit tests

* fix vis_type_table tests

* Update x-pack/plugins/monitoring/public/plugin.ts

Co-authored-by: Ester Martí Vilaseca <[email protected]>

* Update x-pack/plugins/monitoring/public/plugin.ts

Co-authored-by: Ester Martí Vilaseca <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Stratoula Kalafateli <[email protected]>
Co-authored-by: Ester Martí Vilaseca <[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 Jul 12, 2021
#104638) (#105208)

* remove unused stuff and make things async if it is easy

* fix problems

* load bootstrap in monitoring

* load angular bootstrap for saved searches and in  unit tests

* fix vis_type_table tests

* Update x-pack/plugins/monitoring/public/plugin.ts

Co-authored-by: Ester Martí Vilaseca <[email protected]>

* Update x-pack/plugins/monitoring/public/plugin.ts

Co-authored-by: Ester Martí Vilaseca <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Stratoula Kalafateli <[email protected]>
Co-authored-by: Ester Martí Vilaseca <[email protected]>

Co-authored-by: Joe Reuter <[email protected]>
Co-authored-by: Stratoula Kalafateli <[email protected]>
Co-authored-by: Ester Martí Vilaseca <[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 release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants