Skip to content

[9.4] [dashboards as code] only validate id on PUT route when creating new dashboard (#264161)#264243

Merged
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/commit-504f0ba0
Apr 18, 2026
Merged

[9.4] [dashboards as code] only validate id on PUT route when creating new dashboard (#264161)#264243
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/commit-504f0ba0

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…dashboard (elastic#264161)

Closes elastic#264135

Resolves issue by moving "as code" id validation from route to handler.
Id is only validated for "create" requests. Added integration tests to
verify both update and create case.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 504f0ba)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 18, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) April 18, 2026 01:58
@kibanamachine kibanamachine merged commit ed695b2 into elastic:9.4 Apr 18, 2026
19 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @nreese

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

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants