-
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
Support for pretty format in Saved Object import and export #103021
Comments
Pinging @elastic/kibana-core (Team:Core) |
Given the spec of the
and the fact that a pretty format relies on new lines to indent the json content, I'm not sure the file you linked (https://github.com/elastic/kibana/blob/master/test/functional/fixtures/kbn_archiver/visualize.json) is actually a valid Can we really prettify the content of a |
@pgayvallet, is there a reason that the flag would need to produce an |
I get that this would be only for testing purposes. However, the fact that this flag would (AFAIK will have to, as FTR runs in prod mode) be enabled in production, while producing an invalid, non-reimportable file when used, from a public API, bothers me a bit, yea. Also,
Is the need only for |
Not needed anymore - closing |
Within the kbnClient used for functional tests, we have a helper to facilitate importing and exporting saved objects. Currently, we are using a custom format to make it easier to diff these objects and the raw ndjson format makes that difficult. It would be most ideal if the saved objects export/import supported a
?pretty
flag or similar. That way developers wouldn't need to use thescripts/kbn_archiver
CLI to export objects.Example object: https://github.com/elastic/kibana/blob/master/test/functional/fixtures/kbn_archiver/visualize.json
The text was updated successfully, but these errors were encountered: