Enhance email functionality on conditional questions
The email notifications on conditional questions should be extended once we have migrated to Rails v5 in the following ways:
-
A delay job should be set so email notifications are only sent after a certain number of hours e.g. at 10pm each day. If a user has answered the same question multiple times (e.g. changing response back and forth) it should only send the notification on the final answer, not multiple notifications. Perhaps these should be in a digest form too?
-
The end user interface should alert users to the fact that the answer they have chosen will send an email alert and why. Do we need to enter a form to allow admins to specify this text or can we formulate a generic text string which is meaningful in all cases e.g. "This response will send an email notification to institutional administrators to inform RDM support"
-
TO BE DECIDED Users were also keen to have some form of checkbox to allow users to confirm that the email will be sent. I have a couple of concerns about this - it requires an extra click and if they don't do that (would be user inclination I suspect) then the uni won't get alerts they want/need. If we implement I think it should be a default ticked but this would conflict with autosave. Suspect we should just add notification and advise admins to limit the amount of emails or communicate these with users
This is in part duplicated in #2948 #3116