Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Upgrade Assistant] Remove unnecessary mappings for ml snapshots (#15…
…1014) ## Summary Partially addresses #64547 Follow up to #150878 This PR removes unnecessary mappings from the saved objects type `upgrade-assistant-ml-upgrade-operation. This saved objects are used to store the resolution progress of ml snapshot deprecations. Currently, the ml deprecations are disabled via a config for Upgrade Assistant plugin `xpack.upgrade_assistant.featureSet.mlSnapshots`. And ES will probably not let us use any old ml snapshots in the 8.x version. ### How to test 1. Add `xpack.upgrade_assistant.featureSet.mlSnapshots: true` to your `kibana.dev.yml` file 2. Start ES and Kibana with `yarn es snapshot --license=trial` and `yarn start` 3. Add a sample data set, for example `kibana_sample_data_flights`. 4. Navigate to Analytics -> Machine Learning -> Anomaly Detection -> Jobs. 5. Create a job for a single metric, chose a time range with some data in it. Memorize the value you input for job ID. 6. Start and stop the job's datafeed a couple of times, so that you have more than 1 snapshot. Memorize the value of the snapshot ID. 7. replace `deprecations` on line 22 in the file [`/server/lib/es_deprecations_status.ts`](https://github.com/elastic/kibana/blob/main/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status.ts#L22) with ``` const deprecations = { cluster_settings: [], node_settings: [], ml_settings: [ { level: 'critical', message: 'model snapshot [1676291073] for job [test_123] needs to be deleted or upgraded', url: '', details: 'details', _meta: { snapshot_id: '1676291073', job_id: 'test_123' }, resolve_during_rolling_upgrade: false, }, ], index_settings: {}, }; ``` where `job_id` and `snapshot_id` are values from step 5 and 6. 8. open UA and test the resolution of the ml snapshot deprecation.
- Loading branch information