Skip to content

Commit b7a34c5

Browse files
refactor: improve notification template
1 parent 7c09465 commit b7a34c5

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

coderd/database/migrations/000328_prebuild_failure_limit_notification.up.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ VALUES ('414d9331-c1fc-4761-b40c-d1f4702279eb',
77
The number of failed prebuild attempts has reached the hard limit for template **{{ .Labels.template }}** and preset **{{ .Labels.preset }}**.
88

99
To resume prebuilds, fix the underlying issue and upload a new template version.
10+
11+
Refer to the documentation for more details:
12+
- [Troubleshooting templates](https://coder.com/docs/admin/templates/troubleshooting)
13+
- [Troubleshooting of prebuilt workspaces](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces#administration-and-troubleshooting)
1014
$$,
1115
'Template Events',
1216
'[

coderd/notifications/testdata/rendered-templates/smtp/PrebuildFailureLimitReached.html.golden

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ ate docker and preset particle-accelerator.
1818
To resume prebuilds, fix the underlying issue and upload a new template ver=
1919
sion.
2020

21+
Refer to the documentation for more details:
22+
23+
Troubleshooting templates (https://coder.com/docs/admin/templates/troublesh=
24+
ooting)
25+
Troubleshooting of prebuilt workspaces (https://coder.com/docs/admin/templa=
26+
tes/extending-templates/prebuilt-workspaces#administration-and-troubleshoot=
27+
ing)
28+
2129

2230
View failed prebuilt workspaces: http://test.com/workspaces?filter=3Downer:=
2331
prebuilds+status:failed+template:docker
@@ -60,6 +68,13 @@ tor</strong>.</p>
6068

6169
<p>To resume prebuilds, fix the underlying issue and upload a new template =
6270
version.</p>
71+
72+
<p>Refer to the documentation for more details:<br>
73+
- <a href=3D"https://coder.com/docs/admin/templates/troubleshooting">Troubl=
74+
eshooting templates</a><br>
75+
- <a href=3D"https://coder.com/docs/admin/templates/extending-templates/pre=
76+
built-workspaces#administration-and-troubleshooting">Troubleshooting of pre=
77+
built workspaces</a></p>
6378
</div>
6479
<div style=3D"text-align: center; margin-top: 32px;">
6580
=20

coderd/notifications/testdata/rendered-templates/webhook/PrebuildFailureLimitReached.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
},
3131
"title": "There is a problem creating prebuilt workspaces",
3232
"title_markdown": "There is a problem creating prebuilt workspaces",
33-
"body": "The number of failed prebuild attempts has reached the hard limit for template docker and preset particle-accelerator.\n\nTo resume prebuilds, fix the underlying issue and upload a new template version.",
34-
"body_markdown": "\nThe number of failed prebuild attempts has reached the hard limit for template **docker** and preset **particle-accelerator**.\n\nTo resume prebuilds, fix the underlying issue and upload a new template version.\n"
33+
"body": "The number of failed prebuild attempts has reached the hard limit for template docker and preset particle-accelerator.\n\nTo resume prebuilds, fix the underlying issue and upload a new template version.\n\nRefer to the documentation for more details:\n\nTroubleshooting templates (https://coder.com/docs/admin/templates/troubleshooting)\nTroubleshooting of prebuilt workspaces (https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces#administration-and-troubleshooting)",
34+
"body_markdown": "\nThe number of failed prebuild attempts has reached the hard limit for template **docker** and preset **particle-accelerator**.\n\nTo resume prebuilds, fix the underlying issue and upload a new template version.\n\nRefer to the documentation for more details:\n- [Troubleshooting templates](https://coder.com/docs/admin/templates/troubleshooting)\n- [Troubleshooting of prebuilt workspaces](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces#administration-and-troubleshooting)\n"
3535
}

0 commit comments

Comments
 (0)