Skip to content

Add report reminder frequency

Frank Duncan requested to merge ardc-225-report-reminders into ardc-main

This adds settings into the Project Settings (in Settings in wagtail admin) for frequency of email notifications. And then updates the notify_report_due command.

For review, please make sure that this change works with the changes happening for reports to be completely custom. It looks like it does, as it looks like the two MRs are modifying different parts of the report infrastructure, but I might be wrong :)

A way to test is to create a project with a report due at some point in the future, then create a setting that says an email should get sent N days Before, and run the command (via python manage.py notify_report_due)

For production, we'll need these settings as outlined in ots/clients/ardc/hypha-tracker#225 and set up a cron job to run the command every day at 9:00am PT

Merge request reports