kibana/x-pack/plugins/serverless_search
Kibana Machine 2e175b9d3f
[8.16] [Search] Add ML as required plugin to Search Assistant (#204009) (#204035)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Search] Add ML as required plugin to Search Assistant
(#204009)](https://github.com/elastic/kibana/pull/204009)

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

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-12T14:20:09Z","message":"[Search]
Add ML as required plugin to Search Assistant (#204009)\n\n##
Summary\r\n\r\nThis adds the `ml` plugin as required to the Search
Assistant so that we\r\ndon't need users to navigate to an ml-based
plugin to initiate the\r\nknowledge
base.","sha":"16d45f503a886b13b9fbc04a8cd20bb7e0f14ece","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Search","backport:prev-major"],"title":"[Search]
Add ML as required plugin to Search
Assistant","number":204009,"url":"https://github.com/elastic/kibana/pull/204009","mergeCommit":{"message":"[Search]
Add ML as required plugin to Search Assistant (#204009)\n\n##
Summary\r\n\r\nThis adds the `ml` plugin as required to the Search
Assistant so that we\r\ndon't need users to navigate to an ml-based
plugin to initiate the\r\nknowledge
base.","sha":"16d45f503a886b13b9fbc04a8cd20bb7e0f14ece"}},"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/204009","number":204009,"mergeCommit":{"message":"[Search]
Add ML as required plugin to Search Assistant (#204009)\n\n##
Summary\r\n\r\nThis adds the `ml` plugin as required to the Search
Assistant so that we\r\ndon't need users to navigate to an ml-based
plugin to initiate the\r\nknowledge
base.","sha":"16d45f503a886b13b9fbc04a8cd20bb7e0f14ece"}}]}] BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2024-12-12 10:23:57 -06:00
..
common [Search] Set default ingest pipeline for serverless connectors (#188182) 2024-07-15 20:53:20 +10:00
public [8.16] [Stateful sidenav] Update feedback urls (#198143) (#198479) 2024-10-31 05:59:00 -05:00
server [8.x] [Search] Handle insufficient privileges nicely on Serverless (#196160) (#196383) 2024-10-15 13:23:28 -05:00
.gitignore
jest.config.js [Search] Create connectors plugin (#178663) 2024-03-26 06:56:16 -07:00
jest.sh [Serverless Search] Expanded unit testing (#161356) 2023-07-10 09:10:25 -04:00
kibana.jsonc [8.16] [Search] Add ML as required plugin to Search Assistant (#204009) (#204035) 2024-12-12 10:23:57 -06:00
package.json
README.mdx [Serverless Search] Add consistent toast messages for all APIs (#173989) 2024-01-04 00:45:10 -07:00
tsconfig.json [8.x] [Search] Handle insufficient privileges nicely on Serverless (#196160) (#196383) 2024-10-15 13:23:28 -05:00

# Serverless Search project plugin

This plugin contains configuration and code used to create a Serverless Search project. It leverages universal configuration and other APIs in the [`serverless`](../serverless/README.mdx) plugin to configure Kibana.

## Code guidance

We use Tanstack React Query to handle all API calls in the browser. To create consistent error behavior, all APIs will flash an error toast if they encounter an error, except for 404 errors on GET calls.
To skip the error message, add a boolean property `skipToast` to your error and set it to `true`.
To change the toast message, change the `name` property on your error to change the title and the `body.message` property to change the message contents.
You can do this by catching the error in your fetch function and modifying the error in your catch before rethrowing.