Issue 640: Automated Mass Email for PCA/FCA Renewal #643
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Historically, a mass notification email has been sent out letting all PIs/managers of “Active” PCAs/FCAs know that renewals for next year are ready. This all occurs manually and the emails are not tailored for the project in question. This request proposes that the process becomes automated (though it can be initiated manually) and that each email is tailored for its respective project.
This is initially implemented with a command that will use
django-q
to schedule a command call of itself x number of days before the start date of the next allocation period. Depending on a passed in argument, the function will optionally call thesend_mass_renewal_emails
(to be renamed) function when triggered. Insend_mass_renewal_emails
, the projects are split into batches so that emails are staggered out. Inside each batch, tailor an email for each project individually and send each usingasync_task
fromdjango-q
.Fixes #640
Type of change
How Has This Been Tested?
coldfront.core.project.tests.test_utils.test_renewal_utils.test_allowance_renewal_email
PR Self Evaluation
Strikethrough things that don’t make sense for your PR.