[ML] Adding support for saved object based ml modules#92855
Conversation
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
Pinging @elastic/ml-ui (:ml) |
|
Pinging @elastic/fleet (Team:Fleet) |
|
Great to see this moving forward. We normally start with new asset types in the package-spec to make sure the way it should behave / validate etc is defined: https://github.com/elastic/package-spec/blob/master/CONTRIBUTING.md#change-proposals Could you open a issue / PR in the package spec for this? @ycombinator @mtojek For awareness. For the PR, could it be split up into two PRs? One just adding the SO support for ml modules and the second one around adding it to fleet? |
@ruflin Sure yeah, i'll remove the fleet changes from this PR. |
| }; | ||
| } | ||
|
|
||
| function isModule(arg: any): arg is Module { |
There was a problem hiding this comment.
Should this be an 'unknown' instead of an 'any' now?
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
* [ML] Adding support for saved object based ml modules * updating icon mapping * cleaning up code * missed private variable * removing mappings json file * renaming module id * updating test * removing unrelated file * type clean up * changing logo type * changes based on review * removing fleet changes * updating type guards * fixing list module return type Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ML] Adding support for saved object based ml modules * updating icon mapping * cleaning up code * missed private variable * removing mappings json file * renaming module id * updating test * removing unrelated file * type clean up * changing logo type * changes based on review * removing fleet changes * updating type guards * fixing list module return type Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: James Gowdy <jgowdy@elastic.co>
Adds the ability to install ML modules from a new saved object type.
Preempts future work where we move ML modules out of kibana and into integration packages.
As these currently do not exist, it is difficult to test that side of this PR without adding the module to an existing package and running the test package registry service as detailed here.
This is an example nginx package with the ML module added.
After installing the package or the assets only, nginx is then available as a module as usual.
Saved object modules do not contain kibana saved objects (dashboards, visualisations etc).
Checklist
Delete any items that are not applicable to this PR.