kibana/examples/content_management_examples
Nick Peihl 2a7e38b0fc
[Dashboard] Remove mSearch from content management (#210709)
## Summary

Removes the mSearch method from Dashboard content management.

The `mSearch` content management method was designed to be a temporary
implementation of search that allowed searching multiple saved object
types ([see more
[internal]](https://docs.google.com/document/d/1ssYmqSEUPrsuCR4iz8DohkEWekoYrm2yL4QR_fVxXLg/edit?tab=t.0#heading=h.6sj4n6bjcgp5)).
However, the mSearch implementation in the Dashboard Storage class lacks
extensibility as it requires a synchronous `toItemResult` function. As
we start migrating reference handling to the server, we will likely need
transforms that return Promises (ex. `savedObjectToItem`), such as
[retrieving tag saved objects from the SavedObjectTagging
client](https://github.com/elastic/kibana/issues/210619).

The Dashboard `mSearch` method was only used by the dashboard_picker and
this PR replaces its usage with the `search` method.

### Identify risks

There is a slight risk in serverless environments where a browser may
have already loaded the dashboard_picker module but lags behind the
server. In this case, the dashboard picker may fail to retrieve a list
of dashboards due to it calling the now non-existent `mSearch` method
provided by the server. In this case, the user simply needs to refresh
their browser to retrieve the latest UI modules.
2025-03-03 11:31:09 -05:00
..
.storybook Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
common/examples/todos Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
public [Dashboard] Remove mSearch from content management (#210709) 2025-03-03 11:31:09 -05:00
server Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc Make SavedObjectFinder backward compatible (#162904) 2023-08-08 13:10:29 +02:00
README.md [CM] Example plugin with server-side registry usage (#151885) 2023-02-28 14:57:57 +01:00
tsconfig.json [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00

Content Management Examples

An example plugin that shows how to integrate with the Kibana "content management" plugin.