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 Cycles #10793

Open
kobergj opened this issue Dec 19, 2024 · 0 comments
Open

Email Cycles #10793

kobergj opened this issue Dec 19, 2024 · 0 comments
Assignees

Comments

@kobergj
Copy link
Collaborator

kobergj commented Dec 19, 2024

Allow daily/weekly sending of emails.

Technical Approach:

  • Changes to daily/weekly setting do not affect previous events
  • Changes to filter settings also do not affect previous events

In notification service, if an event is received and user has daily/weekly cycle enabled, store in a nats store with key weekly_<user-uuid>/daily_<user-uuid>.

Listen to a new event SendEmailsEvent that conatins a field with daily/weekly information. Do a prefix search on the nats store with prefix daily/weekly. Send email to all users (no special formatting just newline new event). Delete the documents in the nats store.

Add a small cli command that sends the SendEmailEvent. E.g. ocis notifications sendemail --daily

Setting up cronjobs for sending events is the responsibility of the system admin. This needs to be documented.

@kobergj kobergj moved this from Qualification to Feature Requests in Infinite Scale Team Board Dec 19, 2024
@bastianbeier bastianbeier self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Feature Requests
Development

No branches or pull requests

2 participants