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
-- Revert to the body introduced by migration 000528.
2
+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.workspace}}** is scheduled to automatically stop at {{.Labels.deadline}}.\n\nConnect to it or extend the deadline to keep it running.'WHERE id ='6f6cb984-c167-4fa5-bb87-1058dd642779';
-- Reword the autostop reminder to use a relative countdown instead of an
2
+
-- absolute timestamp.
3
+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.workspace}}** will automatically stop {{.Labels.timeTilShutdown}}.\n\nConnect to it or extend the deadline to keep it running.'WHERE id ='6f6cb984-c167-4fa5-bb87-1058dd642779';
Copy file name to clipboardExpand all lines: coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceAutostopReminder.json.golden
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,14 @@
16
16
}
17
17
],
18
18
"labels": {
19
-
"deadline": "2024-03-15 14:00 UTC",
19
+
"timeTilShutdown": "1 hour from now",
20
20
"workspace": "bobby-workspace"
21
21
},
22
22
"data": null,
23
23
"targets": null
24
24
},
25
25
"title": "Your workspace \"bobby-workspace\" will stop soon",
26
26
"title_markdown": "Your workspace \"bobby-workspace\" will stop soon",
27
-
"body": "Your workspace bobby-workspace is scheduled to automatically stop at 2024-03-15 14:00 UTC.\n\nConnect to it or extend the deadline to keep it running.",
28
-
"body_markdown": "Your workspace **bobby-workspace** is scheduled to automatically stop at 2024-03-15 14:00 UTC.\n\nConnect to it or extend the deadline to keep it running."
27
+
"body": "Your workspace bobby-workspace will automatically stop 1 hour from now.\n\nConnect to it or extend the deadline to keep it running.",
28
+
"body_markdown": "Your workspace **bobby-workspace** will automatically stop 1 hour from now.\n\nConnect to it or extend the deadline to keep it running."
0 commit comments