You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating or updating the trigger action for an alerting monitor in OpenSearch Dashboards, the list of available destinations remains empty, even though destinations have been configured. The issue occurs only when there is at least one destination remaining whose types has been removed from the allow list.
How can one reproduce the bug?
Steps to reproduce the behavior:
Switch to alerting and create a destination with type "email".
Create a second destination with a different type, e.g, "slack".
Remove "email" from the list of allowed destination types in the OpenSearch configuration:
Switch to alerting again and create a new monitor.
Add a trigger and try to select a destination from the drop-down list. The list of destination remains empty although the "slack" destination should show up.
What is the expected behavior?
All destinations with an allowed type should appear when creating or updating a trigger action.
Versions
OpenSearch version: 1.3.16
OpenSearch Dashboards version: 1.3.16
Investigation
We have found a problem in the getDestinations method in ConfigureActions.js:
The destinations are filtered with the allowList in line 95, which is working fine. However, at the end of the method the following code fetches more destinations, if the total number reported by the API is not reached yet:
Unfortunately, the condition uses the already filtered list of destinations and not the number of destinations from the destinationsResponse. This means that if one or more destinations are filtered out previously, the method attempts to fetch more destinations. This eventually fails because index exceeds a certain limit (10,000 in our case).
The text was updated successfully, but these errors were encountered:
christiand93
changed the title
[BUG] Destination drop-down list remains empty when disabled destinations still exist
[BUG] Destination drop-down list remains empty when disallowed destinations still exist
Aug 5, 2024
What is the bug?
When creating or updating the trigger action for an alerting monitor in OpenSearch Dashboards, the list of available destinations remains empty, even though destinations have been configured. The issue occurs only when there is at least one destination remaining whose types has been removed from the allow list.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
All destinations with an allowed type should appear when creating or updating a trigger action.
Versions
Investigation
We have found a problem in the
getDestinations
method in ConfigureActions.js:The destinations are filtered with the
allowList
in line 95, which is working fine. However, at the end of the method the following code fetches more destinations, if the total number reported by the API is not reached yet:alerting-dashboards-plugin/public/pages/CreateTrigger/containers/ConfigureActions/ConfigureActions.js
Lines 98 to 104 in 7c13358
Unfortunately, the condition uses the already filtered list of destinations and not the number of destinations from the
destinationsResponse
. This means that if one or more destinations are filtered out previously, the method attempts to fetch more destinations. This eventually fails becauseindex
exceeds a certain limit (10,000 in our case).The text was updated successfully, but these errors were encountered: