Description
Creating system-generated notifications for key template events. These are mainly targeted towards template administrators.
Relates to coder/coder#13328
Create notification_template
instances for the following events, and enqueue notifications with those templates:
- feat: notify about manual failed builds coder#14419 manual build failure (receiver: owner)
When a user builds (starts/creates/stops) their workspace, the template administrator should know if it fails so they may investigate issues with the template.
automatic build failure (receiver: template admin)
> When an automatic workspace build fails, the template administrators should know so they may investigate issues with the template. will be covered by #40
- template deleted (receiver: template admin)
When a template is deleted, the template administrators should be alerted of the successful operation. Particularly helpful when another admin deletes a template they did not create.