forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ResponseOps][Alerting] Show missing Slack connectors in the new rule…
… form (elastic#202315) Closes elastic#201673 ## Summary - changed the logic to create the connectorsMap (which gives us the connector type filters): - Only the '**slack'** and **'slack API'** connector types include a `subtype` array. I updated the logic so that when the `actionTypeModel` has **hideInUi** set to true (indicating a 'slack API' connector), it searches for a **'slack'** connector in the subtype. If a **'slack'** connector is found, `otherActionTypeId` is set to 'slack'; otherwise, it is set to `undefined`. This effectively "maps" the 'slack API' type to the 'slack' type within the `connectorsMap` - changed the logic to create the `filteredConnectors` (which gives us the connectors to display, filtered after the type): - The **selectedConnectorType** can only be '**slack'** because, in the `connectorsMap`, the '**slack API'** option has already been mapped to '**slack'** and is no longer included as a separate type. - If the `subtype` includes **'slack',** the filter will return connectors with `actionTypeId` of either 'slack' or 'slack API'. - This ensures that both 'slack' and 'slack API' connectors are displayed, as 'slack API' is associated with the 'slack' type through the subtype. https://github.com/user-attachments/assets/9cccaf42-b6db-4eea-b2fd-8f37f0e24745 ## Release note Fix Slack API connectors not displayed under Slack connector type when adding new connector to rule.
- Loading branch information
1 parent
720ddd7
commit 2884d90
Showing
2 changed files
with
111 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters