kibana/x-pack/platform
Kibana Machine 9610d902f2
[8.18] [Inference Endpoints] Fix non-required secret fields getting mangled (#214159) (#214751)
# Backport

This will backport the following commits from `main` to `8.18`:
- [[Inference Endpoints] Fix non-required secret fields getting mangled
(#214159)](https://github.com/elastic/kibana/pull/214159)

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

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-17T13:12:17Z","message":"[Inference
Endpoints] Fix non-required secret fields getting mangled
(#214159)\n\nThis fixes an issue with the inference flyout where a
'secret' field\nthat wasn't required would defocus after every keypress.
This happened\nbecause the validation accidentally removed those secrets
from the\nschema, which forced a destruction of the components, and then
on the\nnext render they got added back in.\n\nThis fixes that by no
longer filtering out documents in the validation,\nbut only mapping
them.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"cb6f8bbd3a0545eba76ef6cb3969a33377a4fa25","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:all-open","v9.1.0","v8.19.0","v8.18.1"],"title":"[Inference
Endpoints] Fix non-required secret fields getting
mangled","number":214159,"url":"https://github.com/elastic/kibana/pull/214159","mergeCommit":{"message":"[Inference
Endpoints] Fix non-required secret fields getting mangled
(#214159)\n\nThis fixes an issue with the inference flyout where a
'secret' field\nthat wasn't required would defocus after every keypress.
This happened\nbecause the validation accidentally removed those secrets
from the\nschema, which forced a destruction of the components, and then
on the\nnext render they got added back in.\n\nThis fixes that by no
longer filtering out documents in the validation,\nbut only mapping
them.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"cb6f8bbd3a0545eba76ef6cb3969a33377a4fa25"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x","8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214159","number":214159,"mergeCommit":{"message":"[Inference
Endpoints] Fix non-required secret fields getting mangled
(#214159)\n\nThis fixes an issue with the inference flyout where a
'secret' field\nthat wasn't required would defocus after every keypress.
This happened\nbecause the validation accidentally removed those secrets
from the\nschema, which forced a destruction of the components, and then
on the\nnext render they got added back in.\n\nThis fixes that by no
longer filtering out documents in the validation,\nbut only mapping
them.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"cb6f8bbd3a0545eba76ef6cb3969a33377a4fa25"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2025-03-17 15:43:14 +00:00
..
packages [8.18] [Inference Endpoints] Fix non-required secret fields getting mangled (#214159) (#214751) 2025-03-17 15:43:14 +00:00
plugins [8.18] [Automatic Import] Fix chunking of samples in ecs mapping (#214702) (#214737) 2025-03-17 14:59:06 +00:00