Skip to content

[Saved Objects] Allow exporting and importing hidden types#90178

Merged
Bamieh merged 22 commits intoelastic:masterfrom
Bamieh:saved_objects/export_import_hidden_types
Feb 14, 2021
Merged

[Saved Objects] Allow exporting and importing hidden types#90178
Bamieh merged 22 commits intoelastic:masterfrom
Bamieh:saved_objects/export_import_hidden_types

Conversation

@Bamieh
Copy link
Copy Markdown
Contributor

@Bamieh Bamieh commented Feb 3, 2021

Closes #82027

@Bamieh Bamieh requested a review from pgayvallet February 4, 2021 11:18
Copy link
Copy Markdown
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

Draft review

@Bamieh Bamieh requested a review from pgayvallet February 8, 2021 11:27
@kibanamachine
Copy link
Copy Markdown
Contributor

⏳ Build in-progress, with failures

History

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

@Bamieh
Copy link
Copy Markdown
Contributor Author

Bamieh commented Feb 8, 2021

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

Implementation looking good. Just need some plugin_functional FTR tests and it will be perfect!

Comment on lines +37 to +42
const includedHiddenTypes = chain(typesToInclude)
.uniq()
.filter(
(type) => typeRegistry.isHidden(type) && typeRegistry.isImportableAndExportable(type)
)
.value();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NIT: block used at least in 3 routes, may want to factorize.

@Bamieh Bamieh requested a review from pgayvallet February 11, 2021 10:27
@Bamieh Bamieh marked this pull request as ready for review February 11, 2021 10:29
@Bamieh Bamieh requested a review from a team as a code owner February 11, 2021 10:29
@Bamieh Bamieh added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0 labels Feb 11, 2021
@Bamieh Bamieh requested a review from rudolf February 11, 2021 16:06
Copy link
Copy Markdown
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

I would add a FTR test to ensure that exportable+hidden types are visible in the SO management UI

Apart from that, LGTM!

@Bamieh Bamieh mentioned this pull request Feb 14, 2021
14 tasks
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
savedObjectsManagement 164.1KB 164.1KB +49.0B

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SavedObjects should support importing/exporting even if they're hidden from the API

4 participants