mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# 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> |
||
---|---|---|
.. | ||
common | ||
public | ||
server | ||
.gitignore | ||
jest.config.js | ||
jest.sh | ||
kibana.jsonc | ||
package.json | ||
README.mdx | ||
tsconfig.json |
# 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.