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

S25 Sprint 2- Cron Job email notification #436

Open
5 tasks
johannesq23 opened this issue Feb 4, 2025 · 0 comments
Open
5 tasks

S25 Sprint 2- Cron Job email notification #436

johannesq23 opened this issue Feb 4, 2025 · 0 comments
Assignees

Comments

@johannesq23
Copy link
Contributor

Context

We want the options for event notifications before the event takes place, 48 hours in advance. We would like to run a cron job every day to remind the users that they have an event, and if they cannot make it, they should cancel.

Requirements

We will be using github actions to make the cron job. Look into how to create a cron job in /.github/workflows. This is the workflow I wrote on my last team you can use as a reference.

We want this to be optional, so once again, create a toggle button that asks the admin if they want users to be notified 48 hours before event in the event creation page.

Create an api endpoint in /api/registrations, this will filter all registrations within the 24-48 hour time frame + have a "sendReminderEmail" boolean set to true. and send an email to them.

You will once again need to make some schema changes, namely in eventparent and registrations, but don't worry about setting up any new migration code. Use the mailersend API as before, to send a reminder email. I will look into creating a new mailersend template and get back you you on that.

As always, start early and message me if you have any questions related to functionality or anything.

Acceptance Criteria

  • Cron Job created and runs every 24 hours
  • Event create modal updated
  • Schemas changed accordingly
  • Notifications sent out to users correctly
  • Appropriate testing is completed
@johannesq23 johannesq23 changed the title Sprint 2- Cron Job email notification S25 Sprint 2- Cron Job email notification Feb 4, 2025
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

2 participants