Closed franck-boullier closed 6 years ago
Who do emails needs to be sent to here?
https://github.com/unee-t/lambda2sns/blob/master/tests/events/case_new_message.json#L12-L13
Anyone else?
Bit confused as to where assignee_user_id disappeared to. https://github.com/unee-t/lambda2sns/pull/2
Do you see (my confusion in) how assignee_user_id is somehow old_case_assignee_user_id or new_case_assignee_user_id ?
Why has this changed and broken the existing notification code?
Can you be explicit to who are recipients are in this case please. Pull out the values from https://github.com/unee-t/lambda2sns/blob/master/tests/events/case_new_message.json
Notifications should be sent to:
case_reporter_user_id
andnew_case_assignee_user_id
andcurrent_list_of_invitees
andcreated_by_user_id
The notification routine must check if each user has subscribed to this type of notifications before sending the email notification.
Above comment updated for better clarity
@kaihendry please note that the names of the variable for the user who has initiated the change (user_id
) for the notification type case_updated
is NOT the same as the variable for the user who has created a new message (created_by_user_id
) for the notification type case_new_message
.
IIUC https://github.com/unee-t/lambda2sns/blob/master/tests/events/case_new.json has been replaced with case_new_message. So I will be deleting case_new. Very confusing.
@franck-boullier for clarity please list the user ids who will receive the message.
We have a SNS event active each time a case is updated. The notification type is
case_new_message
We need to generate the email notification for this type of notification too.