From b9c0092286d95b1057d995570f468cfe12de9ad8 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:18:12 -0400 Subject: [PATCH] [8.14] [ML] Single metric viewer embeddable: ensures create job rule anomaly click functionality works as expected (#181783) (#181866) # Backport This will backport the following commits from `main` to `8.14`: - [[ML] Single metric viewer embeddable: ensures create job rule anomaly click functionality works as expected (#181783)](https://github.com/elastic/kibana/pull/181783) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Melissa Alvarez --- .../application/components/rule_editor/rule_editor_flyout.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugins/ml/public/application/components/rule_editor/rule_editor_flyout.js b/x-pack/plugins/ml/public/application/components/rule_editor/rule_editor_flyout.js index abb7055b41a8f..1f92062715183 100644 --- a/x-pack/plugins/ml/public/application/components/rule_editor/rule_editor_flyout.js +++ b/x-pack/plugins/ml/public/application/components/rule_editor/rule_editor_flyout.js @@ -55,7 +55,6 @@ import { import { getPartitioningFieldNames } from '../../../../common/util/job_utils'; import { mlJobService } from '../../services/job_service'; import { toastNotificationServiceProvider } from '../../services/toast_notification_service'; -import { ml } from '../../services/ml_api_service'; class RuleEditorFlyoutUI extends Component { static propTypes = { @@ -149,7 +148,7 @@ class RuleEditorFlyoutUI extends Component { if (this.partitioningFieldNames.length > 0 && this.canGetFilters) { // Load the current list of filters. These are used for configuring rule scope. - ml.filters + this.props.kibana.services.mlServices.mlApiServices.filters .filters() .then((filters) => { const filterListIds = filters.map((filter) => filter.filter_id);