kibana/x-pack/plugins/ml/server/models
James Gowdy ac0d04d355
[ML] Assigning elser models to the * space (#169939)
Fixes https://github.com/elastic/kibana/issues/169771

Adds a new endpoint
`/internal/ml/trained_models/install_elastic_trained_model/:modelId`
which wraps the `putTrainedModel` call to start the download of the
elser model. It then reassigns the saved object's space to be `*`.

Also updates the saved object sync call to ensure any internal models
(ones which start with `.`) are assigned to the `*` space, if they've
needed syncing.

It is still possible for a user to reassign the spaces for an elser
model and get themselves into the situation covered described in
https://github.com/elastic/kibana/issues/169771.
In this situation, I believe the best we can do is suggest the user
adjusts the spaces via the stack management page.

At the moment a `Model already exists` error is displayed in a toast. In
a follow up PR we could catch this and show more information to direct
the user to the stack management page.

---------

Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
2023-11-06 13:34:15 +00:00
..
annotation_service [ML] Package @kbn/ml-anomaly-utils (#155697) 2023-05-03 08:46:27 +02:00
bucket_span_estimator [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
calculate_model_memory_limit [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
calendar [ML] Increasing calendar events request limit (#158726) 2023-06-01 11:24:59 +01:00
data_frame_analytics [ML] Assigning elser models to the * space (#169939) 2023-11-06 13:34:15 +00:00
data_recognizer [ML] Module filtering (#168721) 2023-10-26 16:55:48 +01:00
data_visualizer [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
fields_service [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
filter [packages] prevent and remove basename collisions for js/ts code (#148835) 2023-01-12 12:29:30 -07:00
job_audit_messages [ML] Wizard validation improvements (#132615) 2022-05-24 18:07:39 +01:00
job_service [ML] Retain created_by setting when exporting anomaly detection jobs (#167319) 2023-09-27 18:45:36 +01:00
job_validation [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
json_schema_service [ML] Improve job and datafeed config editors in the Advanced job wizard (#146968) 2023-03-10 17:04:42 +01:00
model_management [ML] Assigning elser models to the * space (#169939) 2023-11-06 13:34:15 +00:00
notifications_service [ML] Removing global isServerless flag (#166651) 2023-09-27 09:32:17 +01:00
results_service [ML] Fix anomaly charts when partition field contains an empty string (#168102) 2023-10-06 09:49:25 +02:00