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

Use SavedObjectClass from savedObject start contract instead of createSavedObjectClass #80063

Merged

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Oct 8, 2020

Summary

No longer export the static createSavedObjectClass function from the savedObjects bundle, and force to use the class (that was already exposed) from the savedObjects plugin's start 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)

@pgayvallet pgayvallet changed the title Use createSavedObjectClass from savedObject start contract Use SavedObjectClass from savedObject start contract instead of createSavedObjectClass Oct 8, 2020
@pgayvallet pgayvallet mentioned this pull request Oct 8, 2020
41 tasks
@pgayvallet pgayvallet added Feature:Saved Objects release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Oct 8, 2020
@pgayvallet pgayvallet marked this pull request as ready for review October 9, 2020 06:07
@pgayvallet pgayvallet requested a review from a team October 9, 2020 06:07
@pgayvallet pgayvallet requested review from a team as code owners October 9, 2020 06:07
Copy link
Contributor

@walterra walterra left a 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

Copy link
Contributor

@kindsun kindsun left a 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

Copy link
Contributor

@flash1293 flash1293 left a 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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
maps 3.2MB 3.2MB -236.0B
timelion 461.4KB 461.2KB -227.0B
transform 1.2MB 1.2MB +3.0B
visualize 264.2KB 264.2KB -61.0B
total -521.0B

page load bundle size

id before after diff
dashboard 340.1KB 340.0KB -131.0B
discover 88.0KB 87.9KB -144.0B
maps 164.7KB 164.8KB +165.0B
savedObjects 91.8KB 91.7KB -112.0B
visualizations 272.3KB 272.2KB -127.0B
total -349.0B

History

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

@pgayvallet pgayvallet merged commit bb174fd into elastic:master Oct 14, 2020
pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Oct 14, 2020
…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
pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Oct 14, 2020
…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
pgayvallet added a commit that referenced this pull request Oct 14, 2020
…createSavedObjectClass` (#80063) (#80459)

* no longer export static createSavedObjectClass from savedObject plugin

* fix forgotten call

* yet another usage

* more fixes

* move so to required plugins for timelion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Saved Objects release_note:skip Skip the PR/issue when compiling release notes v7.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants