[RAM] Allow conditional action for rule type with AAD (#167556)

## Summary

With this change, we will let rule type to use conditional action if the
rule type create alert in the alert index.

We will need to some clean up on these two fields `HasAlertsMappings`
and `hasFieldsForAAD` in future release.
(https://github.com/elastic/kibana/issues/167558)
This commit is contained in:
Xavier Mouligneau 2023-09-29 09:02:01 -04:00 committed by GitHub
parent d7b7659322
commit 3545d3023e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -164,6 +164,7 @@ describe('ActionForm - Slack API Connector', () => {
const testProps = {
...baseProps,
hasAlertsMappings: false,
actions: testActions,
};

View file

@ -358,7 +358,8 @@ export const ActionTypeForm = ({
setActionGroupIdByIndex &&
!actionItem.frequency?.summary;
const showActionAlertsFilter = hasFieldsForAAD || producerId === AlertConsumers.SIEM;
const showActionAlertsFilter =
hasFieldsForAAD || producerId === AlertConsumers.SIEM || hasAlertsMappings;
const accordionContent = checkEnabledResult.isEnabled ? (
<>