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

Create endpoints & cron jobs for newsletter consent reminders #355

Open
11 tasks
faucomte97 opened this issue Jul 16, 2024 · 0 comments
Open
11 tasks

Create endpoints & cron jobs for newsletter consent reminders #355

faucomte97 opened this issue Jul 16, 2024 · 0 comments

Comments

@faucomte97
Copy link
Contributor

faucomte97 commented Jul 16, 2024

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:

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant