dimagi/core-hq — pull request #419 by gcapalbo (2012-12-21 15:18:46+00:00)
Title: Ability to send reminders to case owner(s)

The two main changes here are:

1) Better organization of the reminder event handling mechanism. This will make it easier to use the reminder scheduling framework to schedule new types of content and send to new types of recipients. A stub for runtime error handling (see corehq.apps.reminders.event_handlers.raise_warning) was also added, which in the future will be used to notify project owners of any runtime errors that can be fixed by configuration (but that can't be caught at configuration time). For now it's just a stub, but one idea could be to have this method generate system messages which describe the configuration issues and which any project admin could look at (and possibly receive email notifications when new messages are available).

2) The ability to schedule reminders to a case's owner(s). If a CommCareUser is the owner, then that user is the recipient, and if a Group is the owner, then every user in that group is the recipient. Only users in the group who have phone numbers or verified numbers will receive sms.