-
Sub-task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
False
-
None
-
Unset
-
-
As a web-rca user I want to get message before handover so I am reminded.
Diagram: https://miro.com/app/board/uXjVIgu-Kzg=/?share_link_id=269884323185
This will need db migration: add `team_handovers`
- team_id (UUID)
- timezone (e.g., America/New_York)
- list of times (e.g., ["08:00", "13:30", "17:45"])
- pause (toggle button) - handover can be paused `/rca handover pause`
- automatic_pause (set of days: monday - sunday)
- paused_by (text: user/automatic) - so we know if the pause should be resumed or not.
- Create logic around the times from `team_handovers` to automatically create new notifications. I would suggest use new `go routine` in web-rca/servecmd/cmd.go `func runServe`
- Something like followUpWorkerServer - handoverWorkerServer
Automatic handovers:
- Ping Incident Owner to go through handover.
- Setting this notifications only from UI because we have Notification Subscriptions only as UI feature + this will be probably one time setup thing
- We will need add handover table I propose `team_handovers`
- We will send notification on `team_handovers` to the incidents (incident channels) where is `team`/are `teams` associated with
- Create `Handover` Notification.
- Pro: we can use notifications for sending emails and more in the future.
- Con: We will have basically duplicated message in events and notifications
- Notification has attribute `message`
- Event has attribute `note`
- Also Notification has event_id the purpose of this is:
- We are sending this notification before creating handover (handover has to create Incident Owner manually) - That means event_id will not be used by our notification record.