Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivate inactive pledges #214

Open
4 tasks
iandunn opened this issue Aug 16, 2022 · 2 comments
Open
4 tasks

Deactivate inactive pledges #214

iandunn opened this issue Aug 16, 2022 · 2 comments
Assignees

Comments

@iandunn
Copy link
Member

iandunn commented Aug 16, 2022

#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 the 5ftf_inactive_deactivate_date field.
  • 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()
@angelasjin
Copy link

@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?

@iandunn
Copy link
Member Author

iandunn commented Aug 30, 2022

No problem, I've updated the checklist with those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants