# Backport
This will backport the following commits from `main` to `8.13`:
- [[Docs] Add missing setting in advanced options
(#212528)](https://github.com/elastic/kibana/pull/212528)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT
[{"author":{"name":"florent-leborgne","email":"florent.leborgne@elastic.co"},"sourceCommit":{"committedDate":"2025-02-26T15:23:13Z","message":"[Docs]
Add missing setting in advanced options (#212528)\n\nThis PR reproduces
https://github.com/elastic/kibana/pull/212514 to make\nit simpler to
backport down to the 8.13 version.\n\nI'll port the change to the new
location for 9.0+ docs as
well.","sha":"76ae900e1abb468a0015a62f90667c3c0c357e52","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","v9.0.0","docs","v8.13.0","v8.14.0","v8.15.0","v8.16.0","backport:version","v8.17.0","v8.18.0","v9.1.0","v8.19.0"],"title":"[Docs]
Add missing setting in advanced
options","number":212528,"url":"https://github.com/elastic/kibana/pull/212528","mergeCommit":{"message":"[Docs]
Add missing setting in advanced options (#212528)\n\nThis PR reproduces
https://github.com/elastic/kibana/pull/212514 to make\nit simpler to
backport down to the 8.13 version.\n\nI'll port the change to the new
location for 9.0+ docs as
well.","sha":"76ae900e1abb468a0015a62f90667c3c0c357e52"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.13","8.14","8.15","8.16","8.17","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.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/212528","number":212528,"mergeCommit":{"message":"[Docs]
Add missing setting in advanced options (#212528)\n\nThis PR reproduces
https://github.com/elastic/kibana/pull/212514 to make\nit simpler to
backport down to the 8.13 version.\n\nI'll port the change to the new
location for 9.0+ docs as
well.","sha":"76ae900e1abb468a0015a62f90667c3c0c357e52"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
# Backport
This will backport the following commits from `main` to `8.13`:
- [Deprecate search session documentation
(#192224)](https://github.com/elastic/kibana/pull/192224)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Lukas
Olson","email":"lukas@elastic.co"},"sourceCommit":{"committedDate":"2024-09-12T20:35:55Z","message":"Deprecate
search session documentation (#192224)\n\n## Summary\r\n\r\nResolves
https://github.com/elastic/kibana/issues/186334.\r\n(See
https://github.com/elastic/kibana/issues/187923
and\r\nhttps://github.com/elastic/kibana/pull/188037.)\r\n\r\nUpdates
the documentation to have a message that search sessions
are\r\ndeprecated and will be
removed.","sha":"040714c2b7b412be2d833540da95eec9462119fa","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","Team:DataDiscovery","v8.0.2","v8.1.4","v8.2.4","v8.3.4","v8.4.4","v8.5.4","v8.6.3","v8.7.2","v8.8.3","v8.9.3","v8.10.5","v8.11.5","v8.12.3","v8.15.0","v8.13.5","v8.16.0","v8.14.4","v7.17.24","backport:version"],"title":"Deprecate
search session
documentation","number":192224,"url":"https://github.com/elastic/kibana/pull/192224","mergeCommit":{"message":"Deprecate
search session documentation (#192224)\n\n## Summary\r\n\r\nResolves
https://github.com/elastic/kibana/issues/186334.\r\n(See
https://github.com/elastic/kibana/issues/187923
and\r\nhttps://github.com/elastic/kibana/pull/188037.)\r\n\r\nUpdates
the documentation to have a message that search sessions
are\r\ndeprecated and will be
removed.","sha":"040714c2b7b412be2d833540da95eec9462119fa"}},"sourceBranch":"main","suggestedTargetBranches":["8.0","8.1","8.2","8.3","8.4","8.5","8.6","8.7","8.8","8.9","8.10","8.11","8.12","8.15","8.13","8.14","7.17"],"targetPullRequestStates":[{"branch":"8.0","label":"v8.0.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.1","label":"v8.1.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.2","label":"v8.2.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.3","label":"v8.3.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.4","label":"v8.4.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.6","label":"v8.6.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.7","label":"v8.7.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.8","label":"v8.8.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.9","label":"v8.9.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.10","label":"v8.10.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.11","label":"v8.11.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.12","label":"v8.12.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192224","number":192224,"mergeCommit":{"message":"Deprecate
search session documentation (#192224)\n\n## Summary\r\n\r\nResolves
https://github.com/elastic/kibana/issues/186334.\r\n(See
https://github.com/elastic/kibana/issues/187923
and\r\nhttps://github.com/elastic/kibana/pull/188037.)\r\n\r\nUpdates
the documentation to have a message that search sessions
are\r\ndeprecated and will be
removed.","sha":"040714c2b7b412be2d833540da95eec9462119fa"}},{"branch":"8.14","label":"v8.14.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"7.17","label":"v7.17.24","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Lukas Olson <lukas@elastic.co>
# Backport
This will backport the following commits from `main` to `8.13`:
- [[DOCS] Fixes incorrect internal link
(#177256)](https://github.com/elastic/kibana/pull/177256)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Franಠ_ಠis
Conil","email":"frconil@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-03-19T20:51:51Z","message":"[DOCS]
Fixes incorrect internal link
(#177256)","sha":"b7c3c49bac961378ff9cb670fc1ed7c6f2ed813b","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","Feature:Actions/ConnectorTypes","v8.11.5","v8.14.0","v8.12.3","v8.13.1"],"title":"fixes
incorrect internal
link","number":177256,"url":"https://github.com/elastic/kibana/pull/177256","mergeCommit":{"message":"[DOCS]
Fixes incorrect internal link
(#177256)","sha":"b7c3c49bac961378ff9cb670fc1ed7c6f2ed813b"}},"sourceBranch":"main","suggestedTargetBranches":["8.11","8.12","8.13"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/177256","number":177256,"mergeCommit":{"message":"[DOCS]
Fixes incorrect internal link
(#177256)","sha":"b7c3c49bac961378ff9cb670fc1ed7c6f2ed813b"}},{"branch":"8.12","label":"v8.12.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Franಠ_ಠis Conil <frconil@users.noreply.github.com>
# Backport
This will backport the following commits from `main` to `8.13`:
- [[DOCS] Clarify that all rules support alert summaries
(#177755)](https://github.com/elastic/kibana/pull/177755)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2024-03-12T21:20:14Z","message":"[DOCS]
Clarify that all rules support alert summaries
(#177755)","sha":"ea99e780e7fbab19a0b11bd7eeb8c2f3428513ad","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","docs","v8.13.0","v8.14.0"],"title":"[DOCS]
Clarify that all rules support alert
summaries","number":177755,"url":"https://github.com/elastic/kibana/pull/177755","mergeCommit":{"message":"[DOCS]
Clarify that all rules support alert summaries
(#177755)","sha":"ea99e780e7fbab19a0b11bd7eeb8c2f3428513ad"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/177755","number":177755,"mergeCommit":{"message":"[DOCS]
Clarify that all rules support alert summaries
(#177755)","sha":"ea99e780e7fbab19a0b11bd7eeb8c2f3428513ad"}}]}]
BACKPORT-->
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
# Backport
This will backport the following commits from `main` to `8.13`:
- [[DOCS] Case custom field default values
(#178467)](https://github.com/elastic/kibana/pull/178467)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2024-03-12T16:04:08Z","message":"[DOCS]
Case custom field default values
(#178467)","sha":"e3d1a37075431cc97605007e48c3450c653cc572","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","docs","Feature:Cases","v8.13.0","v8.14.0"],"title":"[DOCS]
Case custom field default
values","number":178467,"url":"https://github.com/elastic/kibana/pull/178467","mergeCommit":{"message":"[DOCS]
Case custom field default values
(#178467)","sha":"e3d1a37075431cc97605007e48c3450c653cc572"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178467","number":178467,"mergeCommit":{"message":"[DOCS]
Case custom field default values
(#178467)","sha":"e3d1a37075431cc97605007e48c3450c653cc572"}}]}]
BACKPORT-->
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
# Backport
This will backport the following commits from `main` to `8.13`:
- [[DOCS] Clarify space awareness of maintenance windows
(#176628)](https://github.com/elastic/kibana/pull/176628)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2024-02-23T19:30:18Z","message":"[DOCS]
Clarify space awareness of maintenance windows
(#176628)","sha":"e6a6a478fd55b70a220b005e6927de1f664c1c47","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","docs","Feature:Alerting/RulesManagement","v8.8.3","v8.9.3","v8.10.5","v8.13.0","v8.11.5","v8.12.2","v8.14.0"],"title":"[DOCS]
Clarify space awareness of maintenance
windows","number":176628,"url":"https://github.com/elastic/kibana/pull/176628","mergeCommit":{"message":"[DOCS]
Clarify space awareness of maintenance windows
(#176628)","sha":"e6a6a478fd55b70a220b005e6927de1f664c1c47"}},"sourceBranch":"main","suggestedTargetBranches":["8.8","8.9","8.10","8.13","8.11","8.12"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.9","label":"v8.9.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.10","label":"v8.10.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.11","label":"v8.11.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.12","label":"v8.12.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/176628","number":176628,"mergeCommit":{"message":"[DOCS]
Clarify space awareness of maintenance windows
(#176628)","sha":"e6a6a478fd55b70a220b005e6927de1f664c1c47"}}]}]
BACKPORT-->
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
# Backport
This will backport the following commits from `main` to `8.13`:
- [[Infra] Add endpoints to manage Custom Dashboards
(#176612)](https://github.com/elastic/kibana/pull/176612)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Mykola
Harmash","email":"mykola.harmash@gmail.com"},"sourceCommit":{"committedDate":"2024-02-22T10:56:33Z","message":"[Infra]
Add endpoints to manage Custom Dashboards (#176612)\n\nCloses
https://github.com/elastic/kibana/issues/176069\r\n\r\n##
Summary\r\n\r\nThis adds the logic to register a new Saved Object type
to store custom\r\ndashboards for Asset Details and adds endpoints to
fetch and save custom\r\ndashboards.\r\n\r\nChanges highlights:\r\n*
Renamed the `enableInfrastructureHostsCustomDashboards`
to\r\n`enableInfrastructureAssetCustomDashboards` to make it more
generic and\r\nsupport additional asset types in the future\r\n* Added a
new Saved Object type\r\n* Moved initialization of all Infra endpoints
to plugin's `start`. This\r\none one of the points on [the BE tech
debt\r\nticket](https://github.com/elastic/kibana/issues/175975).
Having\r\nendpoint initialization in `start` makes it more convenient to
access\r\nstart dependencies which almost all endpoints require.\r\n*
Added `savedObjectClient` and `uiSettingsClient` to the custom
request\r\ncontext (also one of the ideas for endpoints improvement).
Right now\r\ninfra endpoints use custom `libs` object with all
dependencies required\r\nfor routes, the idea is to rely on the request
context instead because\r\nit automatically available for every route
handler and by default\r\nincludes some useful things like scoped
service clients.\r\n* Added a wrapper `handleRouteErrors` to avoid error
handling\r\nduplication which we now have in a few routes. In the future
we could do\r\nsomething similar right within `registerRoutes` framework
function, but\r\nthis would require a bit of refactoring.\r\n\r\n## Hot
to Test\r\n\r\n1. Toggle the UI setting off in Advanced
Settings\r\n\r\n2.
Go to the Dev Tools and try the endpoints, both should respond
with\r\n403\r\n```\r\nGET
kbn:api/infra/custom-dashboards/host\r\n\r\nPOST
kbn:api/infra/custom-dashboards\r\n{\r\n \"assetType\": \"host\",\r\n
\"dashboardIdList\": [\"0\", \"1\"]\r\n}\r\n```\r\n3. Toggle the UI
setting on\r\n4. Try the endpoints again, now they should work as
expected\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b50f5387fcf1e5e5e706a2f566455ee619f4b006","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-infra_services","Team:obs-ux-management","v8.13.0","v8.14.0"],"title":"[Infra]
Add endpoints to manage Custom
Dashboards","number":176612,"url":"https://github.com/elastic/kibana/pull/176612","mergeCommit":{"message":"[Infra]
Add endpoints to manage Custom Dashboards (#176612)\n\nCloses
https://github.com/elastic/kibana/issues/176069\r\n\r\n##
Summary\r\n\r\nThis adds the logic to register a new Saved Object type
to store custom\r\ndashboards for Asset Details and adds endpoints to
fetch and save custom\r\ndashboards.\r\n\r\nChanges highlights:\r\n*
Renamed the `enableInfrastructureHostsCustomDashboards`
to\r\n`enableInfrastructureAssetCustomDashboards` to make it more
generic and\r\nsupport additional asset types in the future\r\n* Added a
new Saved Object type\r\n* Moved initialization of all Infra endpoints
to plugin's `start`. This\r\none one of the points on [the BE tech
debt\r\nticket](https://github.com/elastic/kibana/issues/175975).
Having\r\nendpoint initialization in `start` makes it more convenient to
access\r\nstart dependencies which almost all endpoints require.\r\n*
Added `savedObjectClient` and `uiSettingsClient` to the custom
request\r\ncontext (also one of the ideas for endpoints improvement).
Right now\r\ninfra endpoints use custom `libs` object with all
dependencies required\r\nfor routes, the idea is to rely on the request
context instead because\r\nit automatically available for every route
handler and by default\r\nincludes some useful things like scoped
service clients.\r\n* Added a wrapper `handleRouteErrors` to avoid error
handling\r\nduplication which we now have in a few routes. In the future
we could do\r\nsomething similar right within `registerRoutes` framework
function, but\r\nthis would require a bit of refactoring.\r\n\r\n## Hot
to Test\r\n\r\n1. Toggle the UI setting off in Advanced
Settings\r\n\r\n2.
Go to the Dev Tools and try the endpoints, both should respond
with\r\n403\r\n```\r\nGET
kbn:api/infra/custom-dashboards/host\r\n\r\nPOST
kbn:api/infra/custom-dashboards\r\n{\r\n \"assetType\": \"host\",\r\n
\"dashboardIdList\": [\"0\", \"1\"]\r\n}\r\n```\r\n3. Toggle the UI
setting on\r\n4. Try the endpoints again, now they should work as
expected\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b50f5387fcf1e5e5e706a2f566455ee619f4b006"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/176612","number":176612,"mergeCommit":{"message":"[Infra]
Add endpoints to manage Custom Dashboards (#176612)\n\nCloses
https://github.com/elastic/kibana/issues/176069\r\n\r\n##
Summary\r\n\r\nThis adds the logic to register a new Saved Object type
to store custom\r\ndashboards for Asset Details and adds endpoints to
fetch and save custom\r\ndashboards.\r\n\r\nChanges highlights:\r\n*
Renamed the `enableInfrastructureHostsCustomDashboards`
to\r\n`enableInfrastructureAssetCustomDashboards` to make it more
generic and\r\nsupport additional asset types in the future\r\n* Added a
new Saved Object type\r\n* Moved initialization of all Infra endpoints
to plugin's `start`. This\r\none one of the points on [the BE tech
debt\r\nticket](https://github.com/elastic/kibana/issues/175975).
Having\r\nendpoint initialization in `start` makes it more convenient to
access\r\nstart dependencies which almost all endpoints require.\r\n*
Added `savedObjectClient` and `uiSettingsClient` to the custom
request\r\ncontext (also one of the ideas for endpoints improvement).
Right now\r\ninfra endpoints use custom `libs` object with all
dependencies required\r\nfor routes, the idea is to rely on the request
context instead because\r\nit automatically available for every route
handler and by default\r\nincludes some useful things like scoped
service clients.\r\n* Added a wrapper `handleRouteErrors` to avoid error
handling\r\nduplication which we now have in a few routes. In the future
we could do\r\nsomething similar right within `registerRoutes` framework
function, but\r\nthis would require a bit of refactoring.\r\n\r\n## Hot
to Test\r\n\r\n1. Toggle the UI setting off in Advanced
Settings\r\n\r\n2.
Go to the Dev Tools and try the endpoints, both should respond
with\r\n403\r\n```\r\nGET
kbn:api/infra/custom-dashboards/host\r\n\r\nPOST
kbn:api/infra/custom-dashboards\r\n{\r\n \"assetType\": \"host\",\r\n
\"dashboardIdList\": [\"0\", \"1\"]\r\n}\r\n```\r\n3. Toggle the UI
setting on\r\n4. Try the endpoints again, now they should work as
expected\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b50f5387fcf1e5e5e706a2f566455ee619f4b006"}}]}]
BACKPORT-->
Co-authored-by: Mykola Harmash <mykola.harmash@gmail.com>
This change allows the Universal Profiling agent to send error frames,
which will give us more accurate values for CO2 emission and $ costs.
The reason is that unwinding errors resulting in 0-length stacktraces
happen quite often. These are not sent to the backend currently, so the
related CPU activity doesn't go into the calculations. This can make up
showing 10% less CPU / CO2 / costs in the UI.
Adding artificial error frames in case of unwinding errors guarantees
that stacktraces always have a length of > 0.
Once we settled on how error frames can be displayed in a user-friendly
way, this code can be removed.
---------
Co-authored-by: Joel Höner <joel@elastic.co>
Co-authored-by: Caue Marcondes <caue.marcondes@elastic.co>
~This PR still needs work (tests, mainly), so keeping it in draft for
now, but feel free to take it for a spin.~
Implements Bedrock support, specifically for the Claude models.
Architecturally, this introduces LLM adapters: one for OpenAI (which is
what we already have), and one for Bedrock/Claude. The Bedrock/Claude
adapter does the following things:
- parses data from a SerDe (an AWS concept IIUC) stream using
`@smithy/eventstream-serde-node`.
- Converts function requests and results into XML and back (to some
extent)
- some slight changes to existing functionality to achieve _some_ kind
of baseline performance with Bedrock + Claude.
Generally, GPT seems better at implicit tasks. Claude needs explicit
tasks, otherwise it will take things too literally. For instance, I had
to use a function for generating a title because Claude was too eager to
add explanations. For the `classify_esql` function, I had to add extra
instructions to stop it from requesting information that is not there.
It is prone to generating invalid XML.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Closes https://github.com/elastic/kibana/issues/173154
Adds a UI setting to control Infra+Profiling integration from Kibana's
Advanced Settings as well as from the Infra Settings screen.
Note that the plugin config feature flag is still there because I
realized we need it to disable Profiling integration in serverless.
2a5ace9d-9e18-49a4-be95-c722f24072a7
### How to test
* Make sure profiling is enabled in `kibana.dev.yml`
```
xpack.profiling.enabled: true
```
* Start kibana in traditional mode, go to Infra Settings
* Make sure there is the new toggle for Profiling integration and it's
on
* Go to one of your host's details and make sure you see the profiling
tab
* Toggle the Profiling integration setting off and check that the tap in
host details is not visible
* Start kibana in serverless mode
* Make sure there is no new setting neither in Infra Settings nor in
Advanced Settings
* Make sure Profiling tab is not visible in host details
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>