[ ] 1 to send first email reminder to all users within the first segment in DD
[ ] 1 to send second email reminder to all users within the second segment in DD
[ ] 1 to remove all users from DD within the third segment in DD
[ ] First two endpoints need a new data binding to the button in the email which will directly allow users to renew their consent without needing to go to the consent form on the website (no longer needed).
[ ] The data binding will need to have a token in the URL so that only the user who receives the email can renew their consent.
[ ] Renewing the consent should still trigger the "Yay! Thanks for staying" email - might need a bit of investigating since we will no longer be using the program in DD.
Then, one cron job for each endpoint is needed:
[ ] Decorate each endpoint with cron_job decorator
[ ] Add cron jobs to cron.yaml in the workspace
[ ] The cron jobs should run every day but only email the users once in the span of 7 days.
IMPORTANT: This also needs to be done on the old system:
[ ] Create three endpoints on the old system
[ ] Create a further 3 cron jobs in the workspace for the old system.
Three endpoints required:
[ ] 1 to send first email reminder to all users within the first segment in DD
[ ] 1 to send second email reminder to all users within the second segment in DD
[ ] 1 to remove all users from DD within the third segment in DD
[ ] First two endpoints need a new data binding to the button in the email which will directly allow users to renew their consent without needing to go to the consent form on the website (no longer needed).
[ ] The data binding will need to have a token in the URL so that only the user who receives the email can renew their consent.
[ ] Renewing the consent should still trigger the "Yay! Thanks for staying" email - might need a bit of investigating since we will no longer be using the program in DD.
Then, one cron job for each endpoint is needed:
cron_job
decoratorcron.yaml
in the workspaceIMPORTANT: This also needs to be done on the old system: