-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Send Notification API does not send failure to send response #256
Comments
I have some doubts about this issue. I think like you mentioned, the However since we save all status in the audit index with For the source plugin which consumes the APIs. You can make another call to the As for doing it from notification plugin side to avoid the above additonal call, I feel like we can also do that by modifying the |
That is good to know |
@lezzago yes I agree we should return failure response for
I like option 1 more. Becuase our sendNotificationAPI support send to multiple channels in a single call, and will have status on all channels and recipients. It could easily become a messy error message if we go with option 2. Check the example below with only 1 chime destination that fails. Though I can make it less verbose with only returning the crucial info about delivery status, since I don't know your actual use case(or any other caller's use case), I am not sure what info should be kept and what shouldn't. But by option 1, you call another API and you get all the info from the
|
I think we would want option 2 because in the alert error, we need to give more details to the customer. If not, then the alerting plugin will have to call the other API and this will break since it would need the cluster permission to make the I am fine with option 1 if you have different generic wording that give the customer a good enough indication what could be wrong. Then in the alert error, the plugin can inform the customer to go to the notification plugin to get more details. |
Describe the bug
When giving an invalid notification channel to the notification plugin to send a notification from the alerting plugin, the notification plugin sends a successful response even if the notification is not sent successfully due to the problems with the channel configuration. Alerting needs to know the notification was not sent successfully since we can put the alert in an error state and inform the user that the notification was not sent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The sendNotification API should return an error stating the notification failed to send and include the reason for failure to send.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: