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

Email notifications for GroupMemberships approaching expiry #85

Open
cc-a opened this issue Jan 13, 2025 · 0 comments
Open

Email notifications for GroupMemberships approaching expiry #85

cc-a opened this issue Jan 13, 2025 · 0 comments

Comments

@cc-a
Copy link
Collaborator

cc-a commented Jan 13, 2025

As a group membership approaches its expiry we need to make sure that the user in question and the owner of the group have plenty of notice of this so they can take appropriate actions.

Suggest waiting for #115 to be merged as this refactors some email functionality.

We'll need:

  • a standalone email function that takes a group membership function as an argument and sends an alert email (to both the group member and the group owner) detailing when the expiration will occur.
  • a new setting that allows configuration of the how far from expiry notifications should be sent - e.g. it might be set to [1, 5, 30] to indicate that email notifications should be sent 1, 5, and 30 days before a membership expires.
  • a task function that identifies memberships that needs to have a notification sent (using the new setting) and sends the emails with the above email function.
  • a data migration that populates a Django Q schedule running the task function daily (see Group expire #111 for an example of this).
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