dimagi/commcare-hq — pull request #1585 by biyeun (2013-10-23 01:24:40+00:00)
Title: Monthly Scheduled Reports

originally https://github.com/dimagi/commcare-hq/pull/1469

This PR adds the ability for users to schedule monthly reports.

***Do not merge this until:***
* [x] https://github.com/dimagi/commcare-hq/pull/1468 is merged
* [x] The management command `migrate_report_notifications` gets ran. (https://github.com/dimagi/commcare-hq/pull/1468/files#diff-72800429aea03446cf7465c10a25bcabR49)

***

This PR requires a migration for ReportNotifications.

In order to perform this migration without any scheduled reports getting dropped and without any core HQ breakage, the migration needs to be done in two parts.

* The first part of the migration adds the necessary properties that my code changes need in order to support the new ReportNotification workflow. However, it doesn't remove any of the deprecated properties yet so that the old ReportNotification code still works fine. So the first pull request (https://github.com/dimagi/commcare-hq/pull/1468) is just code for doing the first part of the migration.

* The second part of the migration (included in this PR), cleans up the ReportNotification doc by getting rid of unused properties, among other things. This PR also introduces the code changes that the first migration was done to support.