-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 config
type export broken on master
#59349
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
@pgayvallet would you be able to look at this one since you’re working in this area? My guess is that we broke this in one of the recent changes to these routes or the validation parsing of arrays. |
The fact that we have no tests to catch this is a little alarming as well 😬 |
The fact that we actually do might scare you even more then: |
I was able to reproduce this issue as well I'm guessing that the input data in the API tests don't match what the UI is actually sending right now. We probably need true e2e tests that click through the UI. |
This part of the error message makes me think the export is sending a nested array of types, which definitly should not be permitted (but that probably was accepted before the migration...)
@majagrubic is the |
I'm sorry, not sure what this refers to. I've run this on about a day-old master and a brand new ES snapshot, whatever was in master by then is what you're seeing here. |
TIL the kibana/src/core/server/saved_objects/migrations/core/build_active_mappings.ts Lines 131 to 142 in ea7c78d
The legacy SO service was using the root properties of the mappings as the 'types' references, therefor accessing it const allTypes = Object.keys(getRootPropertiesObjects(mappings)); In NP, we properly check the type registry instead, where the We should handle This depends on #59291, as we need to be able to register the management section for the type. |
config
type export broken on master
Marking as a blocker for 7.7 to make sure this doesn't get missed. |
Kibana version: Master
Elasticsearch version: Snapshot
Server OS version: Mac OS 10.14.5
Browser version: Chrome 80.0
Browser OS version: Mac OS 10.14.5
Original install method (e.g. download page, yum, from source, etc.):
Describe the bug:
Saved Objects Export fails with status 400.
Steps to reproduce:
0. Add Kibana Sample Data
Expected behavior:
.ndjson
file is generated and ready for download.Screenshots (if relevant):
Errors in browser console (if relevant):
Response:
Provide logs and/or server output (if relevant):
I don't see anything weird in the server log.
Any additional context:
Selecting individual objects and exporting them succeeds.
This works fine on 7.6.0 so must have been recently introduced.
The text was updated successfully, but these errors were encountered: