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.
This pull request adds the ability to send reminder emails to accepted hackers for an event and improves the flexibility of sending Slack invitation emails. The changes introduce a new endpoint for sending reminders, update the Slack invitation flow to accept a custom URL, and add a new internal mail template for reminders.
New reminder email functionality:
/{event_id}/send_reminder_mails/inrouter_v1.pyto send reminder emails to all accepted hackers of an event. This endpoint ensures only authorized users can trigger reminders and handles errors gracefully.send_reminder_mailsmethod inEvent/service.pythat sends reminder emails to accepted hackers who have not confirmed attendance, generating a confirmation token if needed and including event and user details in the email.Improvements to Slack invitation email flow:
slackUrlparameter, allowing dynamic Slack invite links to be sent.send_slack_mailmethod inEvent/service.pyto use the providedslackUrlfor each email and to send the created email immediately. [1] [2]Mail template updates:
EVENT_HACKER_REMINDERininternall_templates.pyfor sending reminder emails.