Closed acn-sbuad closed 3 months ago
Doing some initial testing and have found a small issue: Looks like we have a fallback to Email
notification also when given channel is Sms
. This is not expected. The expected result would be to fail with missing contact information.
All tasks completed.
Description
Service owners may be flexible w.r.t which notification channel is used to pass on a notification. If this is the case they can prefer one channel, but be fine with the notification being sent via backup channel if required.
SmsPreferred
will send an sms to the recipient if a mobile number is available, and an email if no mobile number is available, but an email address is.Considerations
If we cannot find neither an email address nor a mobile number should we create a notification within just the preferred notification channel which gets the status recipient not identified ?
Given a new notification channel, how do we ensure that service owners get the best view of the final result? We have the endpoints
/notifications/sms
andnotifications/email
but they would need to call both and cross check the lists to identify who has and has not received notifications.How do we handle the case where notification channel is SmsPreferred and a recipient is provided with national identity number + an email address? Do we use provided email directly, look up sms and if no number present utse the registered or provided email ?
When sending notification to org, if we find a set of emails for emailPreferred, do we not send sms to the users that only have a number registered? In other words, is emailPreferred evaluated for each eligible recipient, or for the organization as a whole?
Additional Information
No response
Tasks
Notifications
NotificationChannelExt
Notifications.Core
Persisting the order request
[x] Re-work logic for defining RecipientLookupResult given the new notification channel
Processing the order
IEmailOrderProcessingService
Notifications.Tests
Notifications.IntegrationsTest
Chores
Documentation
Acceptance Criterias
SmsPreferred
as the notification channelEmailPreferred
as the notification channelSms
as the notification channelEmail
as the notification channel