arderyp / scotuswebcites

United States Supreme Count web citation discovery, presentation, and validation
GNU General Public License v3.0
1 stars 0 forks source link

Create "Notify Subscribers" button on citations screen #30

Closed arderyp closed 8 years ago

arderyp commented 8 years ago

If the administrator is logged in, when they are on the citations pager, they should see a button to "Notify Subscribers" that runs the ./manage.py notifysubscribers operation. We can always set this opperation to run on a cron schedule, but if our aim is to reduce the time between discovery and notification as much as possible, the best bet would be for the administrator to verify all of the new citations, then click this new "Notify Subscribers" button to send an immediate notification.

We could set the cron to run the notifysubscribers operations every 5 minutes, if we wanted, but this leaves room for the process to be run while the admin is in the middle of verifying citations, so it could cause multiple emails to go out for one "batch" of newly discovered citations. If we implement this button, it will allow the sysadmin / appadmin to approach this however the chose. I personally think that the admin should make a note of using this "Notify subscribers" button manually whenever he/she is done verifying the new batch of citations, and a cron job set to run the notifysubscribers operation once a day, at some really obscure hour (to reduce the chance of occurring while the admin is verifying) should be implemented as a fallback in case the admin forgets.