ushahidi / SwiftRiver-Core

SwiftRiver Core Applications
6 stars 3 forks source link

River Expiry #12

Closed 69mb closed 12 years ago

69mb commented 12 years ago

Create an external job for river expiry that can be run in the cron that:

  1. Sends channel delete commands to the mq for rivers past their expiry date.
  2. Set river_expired to 1 in the rivers table for the affected rivers.
  3. Send an email notification to the owners of the river.
ekala commented 12 years ago

I've added a new settings item - river_expiry_notice_period i.e. the no. of days to the expiry date when a notification should be sent out. This parameter feeds into the process of selecting rivers which are eligible for having their expiry dates extended when their respective owners access them. Additionally, there's an expiry_candidate flag in the rivers table which must be set to 1 if a river meets the extension eligbility criteria which is:

(current_date + river_expiry_notice_period) >= river_date_expiry

ekala commented 12 years ago

Provide an option for using Send Grid to send out notification messages because using sendmail is likely to land them in spam.

Re-opening...

69mb commented 12 years ago

Use sendmail. SendGrid is already our smart host.