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

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

Merged
merged 22 commits into from
Feb 14, 2021

Conversation

Bamieh
Copy link
Member

@Bamieh Bamieh commented Feb 3, 2021

Closes #82027

Copy link
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

src/core/server/core_route_handler_context.ts Outdated Show resolved Hide resolved
src/core/server/saved_objects/routes/delete.ts Outdated Show resolved Hide resolved
x-pack/plugins/features/server/plugin.ts Outdated Show resolved Hide resolved
src/plugins/saved_objects_management/server/routes/find.ts Outdated Show resolved Hide resolved
@kibanamachine
Copy link
Contributor

⏳ Build in-progress, with failures

History

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

@Bamieh
Copy link
Member Author

Bamieh commented Feb 8, 2021

@elasticmachine merge upstream

Copy link
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!

src/core/server/core_route_handler_context.ts Outdated Show resolved Hide resolved
Comment on lines +37 to +42
const includedHiddenTypes = chain(typesToInclude)
.uniq()
.filter(
(type) => typeRegistry.isHidden(type) && typeRegistry.isImportableAndExportable(type)
)
.value();
Copy link
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 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
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
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