Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Detection Engine] fixes alert suppression define …
…step preview on rule creation (#173145) ## Summary - fixes alert suppression fields that appear on define step preview during rule creation Only `query` and `threshold` rule type support alert suppression, but suppression fields can appear for other rule types when switching between them, while suppression was configured - fixes Define step for `threshold` rule, when suppression duration wasn't showing ### Steps to reproduce 1. Go to create rule form 2. Select query rule type 3. Configure alert suppression for it 4. Switch to any other rule type 5. Complete define step 6. Spot, suppression fields on Define step #### Leaking suppression fields to other rule types https://github.com/elastic/kibana/assets/92328789/a472daf0-bb74-4a6b-841b-3b0097eb4503 #### Missing duration for threshold https://github.com/elastic/kibana/assets/92328789/7df8431d-3ee0-482a-9e06-cb87656f48e0 ### Fixed UI #### Leaking suppression fields to other rule types https://github.com/elastic/kibana/assets/92328789/03057dc6-c007-4b17-8f8b-30e78923f037 #### Missing duration for threshold https://github.com/elastic/kibana/assets/92328789/7f64c79f-7a51-4d43-bd62-b10eefe15c46 ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
- Loading branch information