-
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
[Lens][Event annotations] Move logic into packages #161500
[Lens][Event annotations] Move logic into packages #161500
Conversation
…notation-application-plugin
…om:drewdaemon/kibana into create-event-annotation-application-plugin
…om:drewdaemon/kibana into create-event-annotation-application-plugin
…notation-application-plugin
…om:drewdaemon/kibana into create-event-annotation-application-plugin
…om:drewdaemon/kibana into create-event-annotation-application-plugin
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
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.
This looks great, I tested it locally and I dont see any regression.
Can we run the bundle analyzer and understand why Lens async bundle has been increased so?
@stratoula good idea. I just added the label |
@elasticmachine merge upstream |
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.
Code review only. LGTM.
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.
The jump in async load seems a bit too much. I've left few suggestions on treeshake, attempting to reduce such increase.
…om:drewdaemon/kibana into create-event-annotation-application-plugin
@stratoula how do you feel about the new bundle stats? Lens grew, but expressions shrunk. |
…notation-application-plugin
💛 Build succeeded, but was flakyFailed CI StepsTest Failures
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 in files
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Resolve #161140
Note — this PR doesn't change any behavior. Purely reorganizing existing code.
Specifically, this PR creates three new packages and removes one plugin:
@kbn/visualization-ui-components
— the plugin has been moved to a static package since there's no need of Kibana dependency injection or lifecycle. Leaf dependency.@kbn/event-annotation-common
— a few core annotation-related types and utilities that are available in both server and browser contexts. Leaf dependency.@kbn/event-annotation-components
— a collection of static components used for interacting with event annotations