kibana/x-pack/plugins/cases/kibana.jsonc
Anton Dosov 304cb256cf
Make SavedObjectFinder backward compatible (#162904)
## Summary

close https://github.com/elastic/kibana/issues/161545
close https://github.com/elastic/kibana/issues/153257

This PR makes `SavedObjectFinder` component backward compatible. It is
achieved by going through content- management layer, more technical
details
[here](https://docs.google.com/document/d/1ssYmqSEUPrsuCR4iz8DohkEWekoYrm2yL4QR_fVxXLg/edit)

### Testing

`SavedObjectFinder` is this component that allows to pick a saved object
(supports: `search` `index-pattern` `map` `visualization` `lens`
`event-annotation-group`:

![Screenshot 2023-08-07 at 16 53
32](5c283ea5-3682-4dc8-a8ff-422e6f4f3195)


It is used in the following places: 

- Dashboard 
  - Add panel
  - Replace panel 
- Discover - Open Search 
- Visualization - Select search as a source for new viz
- Graph - select source
- Cases - markdown editor add lens 
- ML (3 places) 
- Canvas - select embeddable panel 
- Transform 
- Lens > select event annotation 




### Risks / Follow up 

The `SavedObjectFinder` should stay mostly the same, the only notable
functional change is that now `SavedObjectFinder` doesn't support
`includeFields` which allowed partial saved object returns, this was
done to make the call backward-compatible without making the system even
more complicated as otherwise we'll need a way to abstract
`includeFields` from so attributes and allow to run migrations on it
before making a search. follow up issue to bring it back
https://github.com/elastic/kibana/issues/163043

The risk with that is that some client that have a lot of large objects
might run into performance issues when using `SavedObjectFinder`. This
can be mitigated by changing listing limit in advanced setting from
default 1000 to something lower
2023-08-08 13:10:29 +02:00

46 lines
876 B
JSON

{
"type": "plugin",
"id": "@kbn/cases-plugin",
"owner": "@elastic/response-ops",
"description": "The Case management system in Kibana",
"plugin": {
"id": "cases",
"server": true,
"browser": true,
"configPath": [
"xpack",
"cases"
],
"requiredPlugins": [
"actions",
"data",
"embeddable",
"esUiShared",
"lens",
"licensing",
"features",
"kibanaReact",
"kibanaUtils",
"triggersActionsUi",
"management",
"security",
"notifications",
"ruleRegistry",
"files",
"savedObjectsFinder",
"contentManagement",
"uiActions",
],
"optionalPlugins": [
"home",
"taskManager",
"usageCollection",
"spaces",
"serverless",
],
"requiredBundles": [],
"extraPublicDirs": [
"common"
]
}
}