mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[ML] Functional tests - cleanMlIndices without system index access (#199653)](https://github.com/elastic/kibana/pull/199653) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Oskamp","email":"robert.oskamp@elastic.co"},"sourceCommit":{"committedDate":"2024-11-22T16:54:01Z","message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability","v8.17.0"],"title":"[ML] Functional tests - cleanMlIndices without system index access","number":199653,"url":"https://github.com/elastic/kibana/pull/199653","mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199653","number":199653,"mergeCommit":{"message":"[ML] Functional tests - cleanMlIndices without system index access (#199653)\n\n## Summary\r\n\r\nThis PR updates the `cleanMlIndices` service method to no longer run\r\nwith `esDeleteAllIndices` and thus no longer requires system index\r\nsuperuser privileges.\r\n\r\n### Details / other changes\r\n\r\n- Not all ML items can be cleaned up through APIs (e.g. notifications),\r\nso tests have been adjusted to deal with pre-existing data\r\n- Some cleanup steps had to be re-ordered\r\n- Basic license tests didn't need the `cleanMlIndices` in their `before`\r\nso it was removed there\r\n- Observability serverless tests can't use `cleanMlIndices` as the APIs\r\nfor DFA are not available for that project type, so the cleanup is\r\nchanged to `cleanAnomalyDetection` for the AD tests and the\r\n`cleanMlIndices` is removed from the AI assistant helpers as the\r\nexisting cleanup there should be enough","sha":"93dac5435ff51a3b28c5b3dd30bc4c24d1cf302c"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co> |
||
---|---|---|
.. | ||
apps | ||
ftr_provider_context.d.ts |