-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Error when importing a file with file containing only excluded saved objects #103517
Comments
Pinging @elastic/kibana-core (Team:Core) |
It is erroring here:
because it can't destructure If I add
to line 42 to filter out entries without an id, I end up with a "successful" import and this in the UI: If that's ok for a short term fix, I will add it to my PR cc @pgayvallet |
kibana/src/core/server/saved_objects/routes/utils.ts Lines 34 to 36 in fd1d965
This condition is buggy when It should be replaced by (obj) => !!obj && (obj as SavedObjectsExportResultDetails).exportedCount === undefined |
@pgayvallet I used your recommendation in #103573 but before realizing you folks had come to a resolution already. I'll close that draft if the fix is in another PR. |
Fix included in this PR: #102999 in these commits: Thanks @pgayvallet and @TinaHeiligers for figuring out the bug fix & writing the test and letting me include it in my PR <3 |
With the recently added ability to filter out items
onExport
, it is possible to export an ndjson file that only contains "excluded" saved objects. If that file is then imported, the following error occurs:and the UI shows the following:
In this case, my ndjson contained a single line:
The text was updated successfully, but these errors were encountered: