Skip to content

[Dashboards] Update response on HTTP API should return a 200, not 201 #217054

Merged
olapawlus merged 4 commits intoelastic:mainfrom
olapawlus:test
Apr 4, 2025
Merged

[Dashboards] Update response on HTTP API should return a 200, not 201 #217054
olapawlus merged 4 commits intoelastic:mainfrom
olapawlus:test

Conversation

@olapawlus
Copy link
Copy Markdown
Member

@olapawlus olapawlus commented Apr 3, 2025

Summary

Changes response from 201 to 200 in the dashboard updateRoute.

Closes: #212673

@olapawlus olapawlus added bug Fixes for quality problems that affect the customer experience Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// labels Apr 3, 2025
@olapawlus olapawlus self-assigned this Apr 3, 2025
@olapawlus olapawlus marked this pull request as ready for review April 4, 2025 11:51
@olapawlus olapawlus requested a review from a team as a code owner April 4, 2025 11:51
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Copy Markdown
Contributor

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

lgtm! Great work updating the code and the tests!

@olapawlus olapawlus merged commit 3c2b4da into elastic:main Apr 4, 2025
10 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x

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

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @olapawlus

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.18:
- [ES|QL] Fix CSV report time range when exporting from Discover (#216792)
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 217054

Questions ?

Please refer to the Backport tool documentation

@olapawlus olapawlus added v8.18.1 v8.17.5 v9.0.1 backport:version Backport to applied version labels and removed backport:prev-major labels Apr 7, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.17, 8.18, 9.0

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.18:
- [ES|QL] Fix CSV report time range when exporting from Discover (#216792)
9.0 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.0:
- [ES|QL] Fix CSV report time range when exporting from Discover (#216792)
- [scout] Add Jest events reporter (#214662)

Manual backport

To create the backport manually run:

node scripts/backport --pr 217054

Questions ?

Please refer to the Backport tool documentation

@olapawlus
Copy link
Copy Markdown
Member Author

💔 Some backports could not be created

Status Branch Result
9.0 Conflict resolution was aborted by the user
8.18
8.17

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 217054

Questions ?

Please refer to the Backport tool documentation

olapawlus added a commit to olapawlus/kibana that referenced this pull request Apr 8, 2025
…elastic#217054)

## Summary

Changes response from 201 to 200 in the dashboard updateRoute.

Closes: elastic#212673
(cherry picked from commit 3c2b4da)

# Conflicts:
#	src/platform/test/api_integration/apis/dashboards/update_dashboard/main.ts
@olapawlus
Copy link
Copy Markdown
Member Author

💚 All backports created successfully

Status Branch Result
9.0

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

Questions ?

Please refer to the Backport tool documentation

olapawlus added a commit to olapawlus/kibana that referenced this pull request Apr 8, 2025
…elastic#217054)

## Summary

Changes response from 201 to 200 in the dashboard updateRoute.

Closes: elastic#212673
(cherry picked from commit 3c2b4da)

# Conflicts:
#	src/platform/test/api_integration/apis/dashboards/update_dashboard/main.ts
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 8, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

olapawlus added a commit that referenced this pull request Apr 10, 2025
…not 201 (#217054) (#217494)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Dashboards] Update response on HTTP API should return a 200, not 201
(#217054)](#217054)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"Ola","email":"98127445+olapawlus@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-04T17:48:58Z","message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Presentation","backport:version","v9.1.0","v8.18.1","v9.0.1","v8.17.5"],"title":"[Dashboards]
Update response on HTTP API should return a 200, not 201
","number":217054,"url":"https://github.com/elastic/kibana/pull/217054","mergeCommit":{"message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217054","number":217054,"mergeCommit":{"message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0"}},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
olapawlus added a commit that referenced this pull request Apr 10, 2025
…ot 201 (#217054) (#217499)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Dashboards] Update response on HTTP API should return a 200, not 201
(#217054)](#217054)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"Ola","email":"98127445+olapawlus@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-04T17:48:58Z","message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Presentation","backport:version","v9.1.0","v8.18.1","v9.0.1","v8.17.5"],"title":"[Dashboards]
Update response on HTTP API should return a 200, not 201
","number":217054,"url":"https://github.com/elastic/kibana/pull/217054","mergeCommit":{"message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217054","number":217054,"mergeCommit":{"message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0"}},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/217494","number":217494,"state":"OPEN"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/217498","number":217498,"state":"OPEN"}]}]
BACKPORT-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
olapawlus added a commit that referenced this pull request Apr 11, 2025
…not 201 (#217054) (#217498)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Dashboards] Update response on HTTP API should return a 200, not 201
(#217054)](#217054)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"Ola","email":"98127445+olapawlus@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-04T17:48:58Z","message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Presentation","backport:version","v9.1.0","v8.18.1","v9.0.1","v8.17.5"],"title":"[Dashboards]
Update response on HTTP API should return a 200, not 201
","number":217054,"url":"https://github.com/elastic/kibana/pull/217054","mergeCommit":{"message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217054","number":217054,"mergeCommit":{"message":"[Dashboards]
Update response on HTTP API should return a 200, not 201 (#217054)\n\n##
Summary\n\nChanges response from 201 to 200 in the dashboard
updateRoute.\n\nCloses:
#212673","sha":"3c2b4daf97fdaea09cd1cd33b71c561344ec90b0"}},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 11, 2025
@mistic
Copy link
Copy Markdown
Contributor

mistic commented Apr 15, 2025

This PR didn't make it into the latest BC. Updating the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.17.6 v8.18.1 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dashboards as code] Update response on HTTP API should return a 200, not 201

5 participants