From b48f32b53fafed9189b3c6769dfb5d32ce470a8f Mon Sep 17 00:00:00 2001 From: Maxim Palenov Date: Sun, 3 Nov 2024 16:28:28 +0100 Subject: [PATCH] properly display rule definition step readonly mode --- .../components/step_define_rule/schema.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx index 3fd1cd08b34e6..020144a9e42d7 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/schema.tsx @@ -47,7 +47,12 @@ import { EQL_SEQUENCE_SUPPRESSION_GROUPBY_VALIDATION_TEXT, } from './translations'; import { getQueryRequiredMessage } from './utils'; -import { ALERT_SUPPRESSION_FIELDS } from '../../../rule_creation/components/alert_suppression_edit/fields'; +import { + ALERT_SUPPRESSION_DURATION, + ALERT_SUPPRESSION_FIELDS, + ALERT_SUPPRESSION_MISSING_FIELDS, +} from '../../../rule_creation/components/alert_suppression_edit/fields'; +import * as alertSuppressionEditI81n from '../../../rule_creation/components/alert_suppression_edit/translations'; export const schema: FormSchema = { index: { @@ -685,6 +690,17 @@ export const schema: FormSchema = { }, ], }, + [ALERT_SUPPRESSION_DURATION]: { + label: i18n.translate( + 'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.groupByDurationValueLabel', + { + defaultMessage: 'Suppress alerts for', + } + ), + }, + [ALERT_SUPPRESSION_MISSING_FIELDS]: { + label: alertSuppressionEditI81n.ALERT_SUPPRESSION_MISSING_FIELDS_LABEL, + }, shouldLoadQueryDynamically: { type: FIELD_TYPES.CHECKBOX, defaultValue: false,