You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: coderd/database/migrations/000302_remove_greetings_notifications_templates.down.sql
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,27 @@
1
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nYour workspace **{{.Labels.name}}** was deleted.\nThe specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'WHERE id ='f517da0b-cdc9-410f-ab89-a86107c420ed';
2
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nAutomatic build of your workspace **{{.Labels.name}}** failed.\nThe specified reason was "**{{.Labels.reason}}**".'WHERE id ='381df2a9-c0c0-4749-420f-80a9280c66f9';
3
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nYour workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).'WHERE id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
4
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nNew user account **{{.Labels.created_account_name}}** has been created.'WHERE id ='4e19c0ac-94e1-4532-9515-d1801aa283b2';
5
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nUser account **{{.Labels.deleted_account_name}}** has been deleted.'WHERE id ='f44d9314-ad03-4bc8-95d0-5cad491da6b6';
6
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nUser account **{{.Labels.suspended_account_name}}** has been suspended.'WHERE id ='b02ddd82-4733-4d02-a2d7-c36f3598997d';
1
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
2
+
E'Your workspace **{{.Labels.name}}** was deleted.\n\n'||
3
+
E'The specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'WHERE id ='f517da0b-cdc9-410f-ab89-a86107c420ed';
4
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
5
+
E'Automatic build of your workspace **{{.Labels.name}}** failed.\n\n'||
6
+
E'The specified reason was "**{{.Labels.reason}}**".'WHERE id ='381df2a9-c0c0-4749-420f-80a9280c66f9';
7
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
8
+
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n\n'||
9
+
E'Reason for update: **{{.Labels.template_version_message}}**.'WHERE id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
10
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
11
+
E'New user account **{{.Labels.created_account_name}}** has been created.\n\n'||
12
+
E'This new user account was created {{if .Labels.created_account_user_name}}for **{{.Labels.created_account_user_name}}** {{end}}by **{{.Labels.initiator}}**.'WHERE id ='4e19c0ac-94e1-4532-9515-d1801aa283b2';
13
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
14
+
E'User account **{{.Labels.deleted_account_name}}** has been deleted.\n\n'||
15
+
E'The deleted account {{if .Labels.deleted_account_user_name}}belonged to **{{.Labels.deleted_account_user_name}}** and {{end}}was deleted by **{{.Labels.initiator}}**.'WHERE id ='f44d9314-ad03-4bc8-95d0-5cad491da6b6';
16
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
17
+
E'User account **{{.Labels.suspended_account_name}}** has been suspended.\n\n'||
18
+
E'The account {{if .Labels.suspended_account_user_name}}belongs to **{{.Labels.suspended_account_user_name}}** and it {{end}}was suspended by **{{.Labels.initiator}}**.'WHERE id ='b02ddd82-4733-4d02-a2d7-c36f3598997d';
7
19
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nYour account **{{.Labels.suspended_account_name}}** has been suspended.'WHERE id ='6a2f0609-9b69-4d36-a989-9f5925b6cbff';
8
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nUser account **{{.Labels.activated_account_name}}** has been activated.'WHERE id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
9
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\nYour account **{{.Labels.activated_account_name}}** has been activated.'WHERE id ='1a6a6bea-ee0a-43e2-9e7c-eabdb53730e4';
20
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
21
+
E'User account **{{.Labels.activated_account_name}}** has been activated.\n\n'||
22
+
E'The account {{if .Labels.activated_account_user_name}}belongs to **{{.Labels.activated_account_user_name}}** and it {{ end }}was activated by **{{.Labels.initiator}}**.'WHERE id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
23
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\n'||
24
+
E'Your account **{{.Labels.activated_account_name}}** has been activated by **{{.Labels.initiator}}**.'WHERE id ='1a6a6bea-ee0a-43e2-9e7c-eabdb53730e4';
10
25
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\nA manual build of the workspace **{{.Labels.name}}** using the template **{{.Labels.template_name}}** failed (version: **{{.Labels.template_version_name}}**).\nThe workspace build was initiated by **{{.Labels.initiator}}**.'WHERE id ='2faeee0f-26cb-4e96-821c-85ccb9f71513';
11
26
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},
12
27
@@ -20,7 +35,7 @@ Template **{{.Labels.template_display_name}}** has failed to build {{.Data.faile
20
35
{{- end}}
21
36
{{end}}
22
37
We recommend reviewing these issues to ensure future builds are successful.'WHERE id ='34a20db2-e9cc-4a93-b0e4-8569699d7a00';
23
-
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\nA request to reset the password for your Coder account has been made. Your one-time passcode is:\n\n**{{.Labels.one_time_passcode}}**\n\nIf you did not request to reset your password, you can ignore this message.'WHERE id ='62f86a30-2330-4b61-a26d-311ff3b608cf';
38
+
UPDATE notification_templates SET body_template = E'Hi {{.UserName}},\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message.'WHERE id ='62f86a30-2330-4b61-a26d-311ff3b608cf';
24
39
UPDATE notification_templates SET body_template = E'Hello {{.UserName}},\n\n'||
25
40
E'The template **{{.Labels.template}}** has been deprecated with the following message:\n\n'||
Copy file name to clipboardExpand all lines: coderd/database/migrations/000302_remove_greetings_notifications_templates.up.sql
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,19 @@
1
-
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** was deleted.\nThe specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'WHERE id ='f517da0b-cdc9-410f-ab89-a86107c420ed';
2
-
UPDATE notification_templates SET body_template = E'Automatic build of your workspace **{{.Labels.name}}** failed.\nThe specified reason was "**{{.Labels.reason}}**".'WHERE id ='381df2a9-c0c0-4749-420f-80a9280c66f9';
3
-
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).'WHERE id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
4
-
UPDATE notification_templates SET body_template = E'New user account **{{.Labels.created_account_name}}** has been created.'WHERE id ='4e19c0ac-94e1-4532-9515-d1801aa283b2';
5
-
UPDATE notification_templates SET body_template = E'User account **{{.Labels.deleted_account_name}}** has been deleted.'WHERE id ='f44d9314-ad03-4bc8-95d0-5cad491da6b6';
6
-
UPDATE notification_templates SET body_template = E'User account **{{.Labels.suspended_account_name}}** has been suspended.'WHERE id ='b02ddd82-4733-4d02-a2d7-c36f3598997d';
7
-
UPDATE notification_templates SET body_template = E'Your account **{{.Labels.suspended_account_name}}** has been suspended.'WHERE id ='6a2f0609-9b69-4d36-a989-9f5925b6cbff';
8
-
UPDATE notification_templates SET body_template = E'User account **{{.Labels.activated_account_name}}** has been activated.'WHERE id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
9
-
UPDATE notification_templates SET body_template = E'Your account **{{.Labels.activated_account_name}}** has been activated.'WHERE id ='1a6a6bea-ee0a-43e2-9e7c-eabdb53730e4';
1
+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** was deleted.\n\n'||
2
+
E'The specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'WHERE id ='f517da0b-cdc9-410f-ab89-a86107c420ed';
3
+
UPDATE notification_templates SET body_template = E'Automatic build of your workspace **{{.Labels.name}}** failed.\n\n'||
4
+
E'The specified reason was "**{{.Labels.reason}}**".'WHERE id ='381df2a9-c0c0-4749-420f-80a9280c66f9';
5
+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n\n'||
6
+
E'Reason for update: **{{.Labels.template_version_message}}**.'WHERE id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
7
+
UPDATE notification_templates SET body_template = E'New user account **{{.Labels.created_account_name}}** has been created.\n\n'||
8
+
E'This new user account was created {{if .Labels.created_account_user_name}}for **{{.Labels.created_account_user_name}}** {{end}}by **{{.Labels.initiator}}**.'WHERE id ='4e19c0ac-94e1-4532-9515-d1801aa283b2';
9
+
UPDATE notification_templates SET body_template = E'User account **{{.Labels.deleted_account_name}}** has been deleted.\n\n'||
10
+
E'The deleted account {{if .Labels.deleted_account_user_name}}belonged to **{{.Labels.deleted_account_user_name}}** and {{end}}was deleted by **{{.Labels.initiator}}**.'WHERE id ='f44d9314-ad03-4bc8-95d0-5cad491da6b6';
11
+
UPDATE notification_templates SET body_template = E'User account **{{.Labels.suspended_account_name}}** has been suspended.\n\n'||
12
+
E'The account {{if .Labels.suspended_account_user_name}}belongs to **{{.Labels.suspended_account_user_name}}** and it {{end}}was suspended by **{{.Labels.initiator}}**.'WHERE id ='b02ddd82-4733-4d02-a2d7-c36f3598997d';
13
+
UPDATE notification_templates SET body_template = E'Your account **{{.Labels.suspended_account_name}}** has been suspended by **{{.Labels.initiator}}**.'WHERE id ='6a2f0609-9b69-4d36-a989-9f5925b6cbff';
14
+
UPDATE notification_templates SET body_template = E'User account **{{.Labels.activated_account_name}}** has been activated.\n\n'||
15
+
E'The account {{if .Labels.activated_account_user_name}}belongs to **{{.Labels.activated_account_user_name}}** and it {{ end }}was activated by **{{.Labels.initiator}}**.'WHERE id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
16
+
UPDATE notification_templates SET body_template = E'Your account **{{.Labels.activated_account_name}}** has been activated by **{{.Labels.initiator}}**.'WHERE id ='1a6a6bea-ee0a-43e2-9e7c-eabdb53730e4';
10
17
UPDATE notification_templates SET body_template = E'A manual build of the workspace **{{.Labels.name}}** using the template **{{.Labels.template_name}}** failed (version: **{{.Labels.template_version_name}}**).\nThe workspace build was initiated by **{{.Labels.initiator}}**.'WHERE id ='2faeee0f-26cb-4e96-821c-85ccb9f71513';
11
18
UPDATE notification_templates SET body_template = E'Template **{{.Labels.template_display_name}}** has failed to build {{.Data.failed_builds}}/{{.Data.total_builds}} times over the last {{.Data.report_frequency}}.
We recommend reviewing these issues to ensure future builds are successful.'WHERE id ='34a20db2-e9cc-4a93-b0e4-8569699d7a00';
21
-
UPDATE notification_templates SET body_template = E'A request to reset the password for your Coder account has been made. Your one-time passcode is:\n\n**{{.Labels.one_time_passcode}}**\n\nIf you did not request to reset your password, you can ignore this message.'WHERE id ='62f86a30-2330-4b61-a26d-311ff3b608cf';
28
+
UPDATE notification_templates SET body_template = E'Use the link below to reset your password.\n\nIf you did not make this request, you can ignore this message.'WHERE id ='62f86a30-2330-4b61-a26d-311ff3b608cf';
22
29
UPDATE notification_templates SET body_template = E'The template **{{.Labels.template}}** has been deprecated with the following message:\n\n'||
23
30
E'**{{.Labels.message}}**\n\n'||
24
31
E'New workspaces may not be created from this template. Existing workspaces will continue to function normally.'WHERE id ='f40fae84-55a2-42cd-99fa-b41c1ca64894';
Copy file name to clipboardExpand all lines: coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDeleted_CustomAppearance.html.golden
0 commit comments