Transparency Report email automation #1290
Merged
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.
Fixes #1280
This PR adds a checkbox for admins and super admins to check to confirm whether the transparency report has been received. And integrates with the organizer reminder plugin, allowing users to set how many days after a camp ends a reminder email should be sent if the report has not been received.
How to test the changes in this Pull Request:
organizing team (typically city@wordcamp.org)
&The Budget Wrangler
.7
days &14 days
&21 days
.start date
,end date
, andthe Budget Wrangler's email address
; these can be entered arbitrarily. Also, fill in theURL
and check thecreate a new site
checkbox. Then Publish.Transparency Report Received
checkbox at the bottom of the WordCamp Information section.super admin
and anadmin+wordcamp
author can see the checkbox. (ie. make sure awordcamp author
can't see the checkbox)Need Vetting
toIn Pre-Planning
.End Date
is NOT set to 7 days ago. Then, runwp cron event run wcor_send_timed_emails --url=https://central.wordcamp.test/
in your docker container.End Date
of the second WordCamp for 7, 14, or 21 days; leave it for future testing.End Date
to 7 days ago and runwp cron event run wcor_send_timed_emails --url=https://central.wordcamp.test/
again.End Date
to 14 days and 21 days ago respectively and runwp cron event run wcor_send_timed_emails --url=https://central.wordcamp.test/
again.End Date
to 7 days ago. Then, runwp cron event run wcor_send_timed_emails --url=https://central.wordcamp.test/
in your docker container.Transparency Report Received
checkbox and set theEnd Date
to 14 days ago. Runwp cron event run wcor_send_timed_emails --url=https://central.wordcamp.test/
Screenshots
Organizer Reminder
Three emails received
Transparency Report Received Checkbox
Four emails received