mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: notify users on template deprecation (#15195)
Closes https://github.com/coder/coder/issues/15117 Notify users when a template has been deprecated.
This commit is contained in:
@ -1021,6 +1021,20 @@ func TestNotificationTemplates_Golden(t *testing.T) {
|
||||
appName: "Custom Application Name",
|
||||
logoURL: "https://custom.application/logo.png",
|
||||
},
|
||||
{
|
||||
name: "TemplateTemplateDeprecated",
|
||||
id: notifications.TemplateTemplateDeprecated,
|
||||
payload: types.MessagePayload{
|
||||
UserName: "Bobby",
|
||||
UserEmail: "bobby@coder.com",
|
||||
UserUsername: "bobby",
|
||||
Labels: map[string]string{
|
||||
"template": "alpha",
|
||||
"message": "This template has been replaced by beta",
|
||||
"organization": "coder",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// We must have a test case for every notification_template. This is enforced below:
|
||||
|
Reference in New Issue
Block a user