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

Get rid of saved object loader #112635

Closed

Conversation

flash1293
Copy link
Contributor

tbd

savedObject.searchSourceFields = searchSourceValues;
}
} catch (error: any) {
if (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@VladLasitsa this stuff is only necessary for the legacy import - we need to create a valid saved vis instance which captures the error state. As this won't be used for legacy import, we can just bubble up the error.

const savedObject = {
id,
displayName: SAVED_VIS_TYPE,
getEsType: () => SAVED_VIS_TYPE,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is probably true for a bunch more places, but I think some of that cruft is not necessary anymore.

@VladLasitsa
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

user doesn't have permission to update head repository

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
visualizations 107 108 +1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
savedObjectsTaggingOss 51 56 +5
visualizations 257 297 +40
total +45

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
savedObjectsTaggingOss 3 5 +2
visualizations 13 15 +2
total +4

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visualizations 72.0KB 72.0KB -9.0B
visualize 51.7KB 53.2KB +1.5KB
total +1.5KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
savedObjectsTaggingOss 0 1 +1

Page load bundle

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

id before after diff
savedObjectsTaggingOss 3.7KB 3.8KB +51.0B
visualizations 32.9KB 38.8KB +5.9KB
visualize 15.9KB 15.9KB +16.0B
total +6.0KB
Unknown metric groups

API count

id before after diff
savedObjectsTaggingOss 90 95 +5
visualizations 275 315 +40
total +45

References to deprecated APIs

id before after diff
visualizations 89 87 -2

History

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

@VladLasitsa
Copy link
Contributor

VladLasitsa commented Sep 27, 2021

Closed because will opene new PR myself: #113121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants