Content
View differences
Updated by Attila Dombi over 3 years ago
* Triggered at 1 am local time. The job thus has to run every 15 min.
* See `Notifications::ScheduleReminderMailsJob` for something similar
* Generate date alerts depending on the setting (might be good to extract the creation part into a service). The `Notifications::CreateFromModelService` probably cannot be adapted but might serve as a blueprint.
* Notifications should be created for open work packages where the user is involved in (assignee, accountable or watcher)
* 2 types of notifications should be created:
1. Reason is `date_alert_start_date` for upcoming start date notifications.
2. Reason is `date_alert_due_date` for upcoming due date notifications and for overdue notifications. They are technically the same, so we don't have to make a differentiation. (The due date notifications will turn into overdue on the fronted, when the due date has passed.)
* A work package should be attached as the `resource` of the notification.
* Whenever a new notification is created for the same date alert, the old ones should be marked as seen.
* See `Notifications::ScheduleReminderMailsJob` for something similar
* Generate date alerts depending on the setting (might be good to extract the creation part into a service). The `Notifications::CreateFromModelService` probably cannot be adapted but might serve as a blueprint.
* Notifications should be created for open work packages where the user is involved in (assignee, accountable or watcher)
* 2 types of notifications should be created:
1. Reason is `date_alert_start_date` for upcoming start date notifications.
2. Reason is `date_alert_due_date` for upcoming due date notifications and for overdue notifications. They are technically the same, so we don't have to make a differentiation. (The due date notifications will turn into overdue on the fronted, when the due date has passed.)
* A work package should be attached as the `resource` of the notification.
* Whenever a new notification is created for the same date alert, the old ones should be marked as seen.