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

Fix wrong import in data plugin causing 100kB bundle increase #93448

Merged
merged 6 commits into from
Mar 4, 2021

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Mar 3, 2021

Summary

Recently there was a spike in the bundle size of a data plugin:

Screen Shot 2021-03-03 at 9 19 39 AM

Bundle increase is due to a wrong import here: https://github.com/elastic/kibana/pull/89837/files#diff-f5d77ff6e6565947682c3df9063d53fe04bc19e5b3ee4ed292e9a33494308702R65

This pr fixes the import, hardens data plugin bundle limits, and adds that import into restricted imports.

@Dosant
Copy link
Contributor Author

Dosant commented Mar 3, 2021

@elasticmachine merge upstream

@Dosant Dosant added v7.12.0 v7.13.0 v8.0.0 bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana Team:AppServices release_note:skip Skip the PR/issue when compiling release notes labels Mar 3, 2021
@Dosant Dosant changed the title fix wrong import Fix wrong import in data plugin causing 100kB bundle increase Mar 3, 2021
@Dosant Dosant marked this pull request as ready for review March 3, 2021 19:45
@Dosant Dosant requested review from a team as code owners March 3, 2021 19:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

Operations: LGTM, though it looks like x-pack ciGroup11 never completed so this will need to run CI one more time

@spalger
Copy link
Contributor

spalger commented Mar 3, 2021

@elasticmachine merge upstream

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

nice work! changes lgtm

@Dosant
Copy link
Contributor Author

Dosant commented Mar 4, 2021

@elasticmachine merge upstream

@Dosant Dosant enabled auto-merge (squash) March 4, 2021 10:33
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
data 697 610 -87

Page load bundle

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

id before after diff
data 918.5KB 813.9KB -104.6KB

History

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

@Dosant Dosant merged commit fe1ae92 into elastic:master Mar 4, 2021
Dosant added a commit to Dosant/kibana that referenced this pull request Mar 4, 2021
…c#93448)

# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
Dosant added a commit to Dosant/kibana that referenced this pull request Mar 4, 2021
…c#93448)

# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
#	src/plugins/data/common/search/search_source/search_source.ts
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 4, 2021
* master: (48 commits)
  Fix wrong import in data plugin causing 100kB bundle increase (elastic#93448)
  [Fleet] Correctly track install status of an integration (elastic#93464)
  Reviews data frame analytics UI text (elastic#93033)
  Display multiple copyable fields for process.args in resolver node detail panel (elastic#93280)
  [Security Solution][Detections] ML Popover overflow fix (elastic#93525)
  chore(NA): do not use execa on bazel workspace status update script (elastic#93532)
  Bump dependencies (elastic#93511)
  [dev/build_ts_refs] support disabling the ts-refs build completely (elastic#93529)
  [Security Solution] fix data provider cypress test (elastic#93465)
  Fix service map for All environment single service (elastic#93517)
  [Fleet] Fix package version comparaison in the UI (elastic#93498)
  [alerting] adds doc on JSON-expanded action variables and task manager max_workers (elastic#92720)
  [dev/build_ts_refs] ignore type checking failures when building ts refs (elastic#93473)
  [core-new-docs] Adds a dev-doc for core documentation (elastic#92976)
  remove opacity from maps legacy style (elastic#93456)
  [Security Solution][Lists] Escape quotes in list ids and quote the id in KQL query (elastic#93176)
  Revert "Make tests deterministic by providing unique timestamps (elastic#93350)"
  [Discover] Fix link from dashboard saved search to Discover (elastic#92937)
  update public api docs
  App Search - Polishing Analytics Views (elastic#92939)
  ...
Dosant added a commit that referenced this pull request Mar 4, 2021
#93577)

# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
Dosant added a commit that referenced this pull request Mar 4, 2021
#93580)

# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
#	src/plugins/data/common/search/search_source/search_source.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants