-
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
Use SavedObjectClass
from savedObject
start contract instead of createSavedObjectClass
#80063
Use SavedObjectClass
from savedObject
start contract instead of createSavedObjectClass
#80063
Conversation
createSavedObjectClass
from savedObject
start contractSavedObjectClass
from savedObject
start contract instead of createSavedObjectClass
…ObjectClass-from-start
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.
ML/Transform code LGTM
…ObjectClass-from-start
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.
Maps changes lgtm!
- tested locally in chrome
- code review
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.
LGTM for KibanaApp changes - everything still seems to work and I like the simplified setup.
…ObjectClass-from-start
💚 Build SucceededMetrics [docs]async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
…createSavedObjectClass` (elastic#80063) * no longer export static createSavedObjectClass from savedObject plugin * fix forgotten call * yet another usage * more fixes * move so to required plugins for timelion # Conflicts: # src/plugins/dashboard/public/plugin.tsx # src/plugins/visualizations/kibana.json # src/plugins/visualizations/public/plugin.ts
…createSavedObjectClass` (elastic#80063) * no longer export static createSavedObjectClass from savedObject plugin * fix forgotten call * yet another usage * more fixes * move so to required plugins for timelion
Summary
No longer export the static
createSavedObjectClass
function from thesavedObjects
bundle, and force to use the class (that was already exposed) from thesavedObjects
plugin'sstart
contract instead.Context: In addition to being closer to KP plugins design by consuming the plugin's contract instead of using static exports from the bundle, this is a required preliminary work for #74571 that will require to introduce a decorator registry to the savedObject plugin to allow enhancing the
SavedObject
class (see #74571 (comment) for the full context)