diff --git a/x-pack/plugins/security_solution/common/detection_engine/schemas/common/schemas.ts b/x-pack/plugins/security_solution/common/detection_engine/schemas/common/schemas.ts index b0cbd63d8db42..c0975925d480c 100644 --- a/x-pack/plugins/security_solution/common/detection_engine/schemas/common/schemas.ts +++ b/x-pack/plugins/security_solution/common/detection_engine/schemas/common/schemas.ts @@ -401,7 +401,7 @@ const bulkActionEditPayloadIndexPatterns = t.intersection([ ]), value: index, }), - t.exact(t.partial({ overwriteDataViews: t.boolean })), + t.exact(t.partial({ overwrite_data_views: t.boolean })), ]); export type BulkActionEditPayloadIndexPatterns = t.TypeOf< diff --git a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/bulk_actions/forms/index_patterns_form.tsx b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/bulk_actions/forms/index_patterns_form.tsx index e760a960e6f74..2ce632be3ef3c 100644 --- a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/bulk_actions/forms/index_patterns_form.tsx +++ b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/bulk_actions/forms/index_patterns_form.tsx @@ -118,7 +118,7 @@ const IndexPatternsFormComponent = ({ const payload = { value: data.index, type: data.overwrite ? BulkActionEditType.set_index_patterns : editAction, - overwriteDataViews: data.overwriteDataViews, + overwrite_data_views: data.overwriteDataViews, }; onConfirm(payload); diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/bulk_actions/rule_params_modifier.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/bulk_actions/rule_params_modifier.ts index e3c8441e91d9a..05dd63def9069 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/bulk_actions/rule_params_modifier.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/bulk_actions/rule_params_modifier.ts @@ -35,7 +35,7 @@ const applyBulkActionEditToRuleParams = ( "Index patterns can't be added. Machine learning rule doesn't have index patterns property" ); - if (action.overwriteDataViews) { + if (action.overwrite_data_views) { ruleParams.dataViewId = undefined; } @@ -59,7 +59,7 @@ const applyBulkActionEditToRuleParams = ( "Index patterns can't be overwritten. Machine learning rule doesn't have index patterns property" ); - if (action.overwriteDataViews) { + if (action.overwrite_data_views) { ruleParams.dataViewId = undefined; } diff --git a/x-pack/test/detection_engine_api_integration/security_and_spaces/group1/perform_bulk_action.ts b/x-pack/test/detection_engine_api_integration/security_and_spaces/group1/perform_bulk_action.ts index f3b4ea17f7d04..1a59b28274c15 100644 --- a/x-pack/test/detection_engine_api_integration/security_and_spaces/group1/perform_bulk_action.ts +++ b/x-pack/test/detection_engine_api_integration/security_and_spaces/group1/perform_bulk_action.ts @@ -580,7 +580,7 @@ export default ({ getService }: FtrProviderContext): void => { { type: BulkActionEditType.add_index_patterns, value: ['initial-index-*'], - overwriteDataViews: true, + overwrite_data_views: true, }, ], })