-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[UnifiedFieldList] Convert from a plugin into a package #158718
[UnifiedFieldList] Convert from a plugin into a package #158718
Conversation
…e' into 149336-ufl-from-plugin-to-package
…e' into 149336-ufl-from-plugin-to-package
…e' into 149336-ufl-from-plugin-to-package
…e' into 149336-ufl-from-plugin-to-package
…e' into 149336-ufl-from-plugin-to-package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally in Discover and Lens and everything seems to be working as intended, LGTM 👍 Thanks for the dependency untangling too!
On a side note, adding 250kb to the async bundles does seem like a lot (although saving 50kb on page load is good), and I'm not really a fan of having to reach into src
folders to save on bundle size since it makes restructuring package internals later more difficult, but as @kertal mentioned these seem to be expected consequences of migrating to packages currently.
…gin-to-package # Conflicts: # src/plugins/discover/tsconfig.json
I do agree, there's definitely room for optimization beyond this PR, so something for optimizing the bundler where this part of the code can be a nice example for investigating it, FYI @elastic/kibana-operations |
…gin-to-package # Conflicts: # src/plugins/data/common/constants.ts
Hi @elastic/kibana-design and @elastic/apm-ui, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Visualizations team changes LGTM, I also tested annotations and I don't see any regression. Not a fan of 300KB addition on the async bundle but I know that it can't be avoided 😓
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @jughosta |
Summary
This PR converts
unifiedFieldList
plugin into a new@kbn/unified-field-list
package.Had to also move some deps:
uiActions
plugin to the existing@kbn/ui-actions-browser
packagedata
plugin to a new@kbn/data-service
packagePlease test that Field Stats from the package are still working on your pages.