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

[Console] Fix incorrect output message when status code is 200 and body is empty #199975

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

sabarasaba
Copy link
Member

@sabarasaba sabarasaba commented Nov 13, 2024

Fixes #198010

Summary

This small PR resolves an issue where the API returns a 200 status with an empty body. The update ensures that an “OK” message is displayed instead of an error.

@sabarasaba sabarasaba added Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Nov 13, 2024
@sabarasaba sabarasaba self-assigned this Nov 13, 2024
@sabarasaba sabarasaba changed the title [Console] fix out [Console] Fix incorrect output message when status code is 200 and body is empty Nov 13, 2024
@elasticmachine
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
console 205.6KB 205.6KB +23.0B

cc @sabarasaba

@sabarasaba sabarasaba marked this pull request as ready for review November 13, 2024 14:00
@sabarasaba sabarasaba requested a review from a team as a code owner November 13, 2024 14:00
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@mattkime mattkime self-requested a review November 13, 2024 18:27
Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look good and work well!

@sabarasaba sabarasaba merged commit 35c2a9e into elastic:main Nov 14, 2024
31 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11833411154

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 14, 2024
…and body is empty (#199975) (#200122)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Console] Fix incorrect output message when status code is 200 and
body is empty (#199975)](#199975)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ignacio
Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2024-11-14T08:27:31Z","message":"[Console]
Fix incorrect output message when status code is 200 and body is empty
(#199975)","sha":"35c2a9e31e39f068c62767dc455b26e7ce7efb0c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Console]
Fix incorrect output message when status code is 200 and body is
empty","number":199975,"url":"https://github.com/elastic/kibana/pull/199975","mergeCommit":{"message":"[Console]
Fix incorrect output message when status code is 200 and body is empty
(#199975)","sha":"35c2a9e31e39f068c62767dc455b26e7ce7efb0c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199975","number":199975,"mergeCommit":{"message":"[Console]
Fix incorrect output message when status code is 200 and body is empty
(#199975)","sha":"35c2a9e31e39f068c62767dc455b26e7ce7efb0c"}}]}]
BACKPORT-->

Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Console Dev Tools Console Feature release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kibana's Console displays misleading message when no response body is returned
4 participants