[Console] Fix ndjson output#280156
Conversation
|
@elasticmachine merge upstream |
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
damian-polewski
left a comment
There was a problem hiding this comment.
Hi @sabarasaba, I was testing the flow and I still get an empty response when exporting a saved object. Am I missing something?
odd i just tried it out and it works.. can you inspect the api call in the network request see what you see?
|
damian-polewski
left a comment
There was a problem hiding this comment.
I think I tested it on a wrong branch by accident. I retested the flow right now and everything works as expected! I added another small nit but overall LGTM!
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]Async chunks
History
cc @sabarasaba |
|
Starting backport for target branches: 9.4, 9.5 |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.5`: - [[Console] Fix ndjson output (#280156)](#280156) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2026-07-25T06:56:27Z","message":"[Console] Fix ndjson output (#280156)","sha":"68d2f14a1c00f34c11a9fa51d75367a3f3835e97","branchLabelMapping":{"^v9.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana Management","release_note:skip","backport:version","v9.5.0","v9.6.0","v9.4.5"],"title":"[Console] Fix ndjson output","number":280156,"url":"https://github.com/elastic/kibana/pull/280156","mergeCommit":{"message":"[Console] Fix ndjson output (#280156)","sha":"68d2f14a1c00f34c11a9fa51d75367a3f3835e97"}},"sourceBranch":"main","suggestedTargetBranches":["9.5","9.4"],"targetPullRequestStates":[{"branch":"9.5","label":"v9.5.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.6.0","branchLabelMappingKey":"^v9.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/280156","number":280156,"mergeCommit":{"message":"[Console] Fix ndjson output (#280156)","sha":"68d2f14a1c00f34c11a9fa51d75367a3f3835e97"}},{"branch":"9.4","label":"v9.4.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <rivasign@gmail.com>

Closes #235913
Summary
This PR adds support for ndjson output in consoles output panel
How to test
GET kbn://api/saved_objects/_find?per_page=10find any saved object and copy itsidAnd it should show you the response as json (this was previously broken)