kibana/x-pack/test/api_integration/apis/ml
Kibana Machine 777435d6ba
[8.x] [ML] Sync ML saved objects to all spaces (#202175) (#205693)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ML] Sync ML saved objects to all spaces
(#202175)](https://github.com/elastic/kibana/pull/202175)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2025-01-07T09:56:00Z","message":"[ML]
Sync ML saved objects to all spaces (#202175)\n\nWhen manually syncing
ML saved objects using the sync flyout, the saved\r\nobjects are now
tagged to the `*` space. This now matches the behaviour\r\nof the server
side auto sync and the sync which happens when the trained\r\nmodels
page is loaded.\r\nThe trained models page load sync has been extended
to the AD and DA\r\njobs lists and the overview page.\r\n\r\nIf the user
does not have write permission for ML in every space they\r\ncannot sync
jobs to the `*` space.\r\nIn this situation a warning is shown in the
flyout and when they sync,\r\nthe jobs/models will only be added to the
current
space.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/9e6ede10-d7aa-4724-9b1c-adabe96593a8)","sha":"3d65e892a014aa5a027d82caa9d92392a515390b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement",":ml","Feature:Anomaly
Detection","Feature:Data Frame Analytics","v9.0.0","Feature:3rd Party
Models","backport:version","v8.18.0"],"title":"[ML] Sync ML saved
objects to all
spaces","number":202175,"url":"https://github.com/elastic/kibana/pull/202175","mergeCommit":{"message":"[ML]
Sync ML saved objects to all spaces (#202175)\n\nWhen manually syncing
ML saved objects using the sync flyout, the saved\r\nobjects are now
tagged to the `*` space. This now matches the behaviour\r\nof the server
side auto sync and the sync which happens when the trained\r\nmodels
page is loaded.\r\nThe trained models page load sync has been extended
to the AD and DA\r\njobs lists and the overview page.\r\n\r\nIf the user
does not have write permission for ML in every space they\r\ncannot sync
jobs to the `*` space.\r\nIn this situation a warning is shown in the
flyout and when they sync,\r\nthe jobs/models will only be added to the
current
space.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/9e6ede10-d7aa-4724-9b1c-adabe96593a8)","sha":"3d65e892a014aa5a027d82caa9d92392a515390b"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202175","number":202175,"mergeCommit":{"message":"[ML]
Sync ML saved objects to all spaces (#202175)\n\nWhen manually syncing
ML saved objects using the sync flyout, the saved\r\nobjects are now
tagged to the `*` space. This now matches the behaviour\r\nof the server
side auto sync and the sync which happens when the trained\r\nmodels
page is loaded.\r\nThe trained models page load sync has been extended
to the AD and DA\r\njobs lists and the overview page.\r\n\r\nIf the user
does not have write permission for ML in every space they\r\ncannot sync
jobs to the `*` space.\r\nIn this situation a warning is shown in the
flyout and when they sync,\r\nthe jobs/models will only be added to the
current
space.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/9e6ede10-d7aa-4724-9b1c-adabe96593a8)","sha":"3d65e892a014aa5a027d82caa9d92392a515390b"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2025-01-07 11:57:01 +00:00
..
annotations [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
anomaly_detectors [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
calendars [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
data_frame_analytics [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
datafeeds [ML] API test for datafeed preview (#187499) 2024-07-04 09:48:50 +01:00
fields_service [ML] Update esarchive ecommerce dataset, enable alerting flyout tests (#186630) 2024-06-24 06:55:29 -07:00
filters [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
job_audit_messages [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
job_validation [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
jobs FTR: enable ESLint mocha rules for api integration tests (#191267) 2024-08-30 18:50:35 +02:00
management [ML] Versioning all ML APIs (#156949) 2023-05-23 21:21:22 +01:00
model_management [ML] API integration tests for model_management endpoints (#164668) 2023-08-24 19:32:34 +02:00
modules [8.x] [ML] Adds new security module to detect anomalous activity in host-based logs (#195582) (#201898) 2024-11-26 20:14:31 -06:00
notifications [8.x] [ML] Functional tests - cleanMlIndices without system index access (#199653) (#201435) 2024-11-22 12:48:38 -06:00
results [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
saved_objects [8.x] [ML] Sync ML saved objects to all spaces (#202175) (#205693) 2025-01-07 11:57:01 +00:00
system [8.x] Authorized route migration for routes owned by @elastic/ml-ui (#198190) (#199997) 2024-11-13 09:03:06 -06:00
trained_models [8.x] [ML] Trained Models: Add a tech preview lable for rerank model (#203587) (#203705) 2024-12-10 19:03:15 -06:00
config.ts [ML] Functional tests - fix report names in API configs (#152591) 2023-03-06 10:52:08 +01:00
index.ts [ML] Anomaly Detection: Use data view esTypes instead of custom field caps wrapper endpoint. (#182588) 2024-05-10 07:40:00 +02:00