mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +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:
33
coderd/notifications/testdata/rendered-templates/webhook/TemplateTemplateDeprecated.json.golden
vendored
Normal file
33
coderd/notifications/testdata/rendered-templates/webhook/TemplateTemplateDeprecated.json.golden
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"_version": "1.1",
|
||||
"msg_id": "00000000-0000-0000-0000-000000000000",
|
||||
"payload": {
|
||||
"_version": "1.1",
|
||||
"notification_name": "Template Deprecated",
|
||||
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
||||
"user_id": "00000000-0000-0000-0000-000000000000",
|
||||
"user_email": "bobby@coder.com",
|
||||
"user_name": "Bobby",
|
||||
"user_username": "bobby",
|
||||
"actions": [
|
||||
{
|
||||
"label": "See affected workspaces",
|
||||
"url": "http://test.com/workspaces?filter=owner%3Ame+template%3Aalpha"
|
||||
},
|
||||
{
|
||||
"label": "View template",
|
||||
"url": "http://test.com/templates/coder/alpha"
|
||||
}
|
||||
],
|
||||
"labels": {
|
||||
"message": "This template has been replaced by beta",
|
||||
"organization": "coder",
|
||||
"template": "alpha"
|
||||
},
|
||||
"data": null
|
||||
},
|
||||
"title": "Template 'alpha' has been deprecated",
|
||||
"title_markdown": "Template 'alpha' has been deprecated",
|
||||
"body": "Hello Bobby,\n\nThe template alpha has been deprecated with the following message:\n\nThis template has been replaced by beta\n\nNew workspaces may not be created from this template. Existing workspaces will continue to function normally.",
|
||||
"body_markdown": "Hello Bobby,\n\nThe template **alpha** has been deprecated with the following message:\n\n**This template has been replaced by beta**\n\nNew workspaces may not be created from this template. Existing workspaces will continue to function normally."
|
||||
}
|
Reference in New Issue
Block a user