five-for-the-future
five-for-the-future copied to clipboard
Deactivate inactive pledges
#211 started sending emails to companies regularly, asking them to update their pledges. If they don't have any confirmed contributors, it mentions that they'll be deactivated. The 5ftf_inactive_deactivate_date meta field was added to indicate when they can be deactivated.
In this issue, we should:
- [ ] add a cron job to remove contributor posts that have 0 hours, so that the count of confirmed contributors on pledges will be accurate. That could maybe tie into
update_all_cached_pledge_data. - [ ] add a cron job to pull all companies that have
5ftf_inactive_deactivate_date < now(). If they still don't have any confirmed contributors, we should deactivate them. If they have added contributors, then we can delete the5ftf_inactive_deactivate_datefield. - [ ] send companies a final email notice that their pledge is deactivated, with a note on how to reactivate their pledge
- [ ] send contributors a final email, similar to above. avoid sending
send_contributor_removed_email()
@iandunn As part of this, can contributors and companies get a final email notice that their pledge is deactivated, with a note on how to reactivate their pledge?
No problem, I've updated the checklist with those.