Skip to content

Commit 50bd9b4

Browse files
refactor: CR's fixes
1 parent 784adba commit 50bd9b4

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ INSERT INTO notification_templates
22
(id, name, title_template, body_template, "group", actions)
33
VALUES ('414d9331-c1fc-4761-b40c-d1f4702279eb',
44
'Prebuild Failure Limit Reached',
5-
E'There is a problem creating prebuilt workspaces for the preset',
5+
E'There is a problem creating prebuilt workspaces',
66
$$
7-
The number of failed prebuilds has reached the hard limit for template **{{ .Labels.template }}** and preset **{{ .Labels.preset }}**.
7+
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.
1010
$$,

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
From: system@coder.com
22
To: bobby@coder.com
3-
Subject: There is a problem creating prebuilt workspaces for the preset
3+
Subject: There is a problem creating prebuilt workspaces
44
Message-Id: 02ee4935-73be-4fa1-a290-ff9999026b13@blush-whale-48
55
Date: Fri, 11 Oct 2024 09:03:06 +0000
66
Content-Type: multipart/alternative; boundary=bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
@@ -12,8 +12,8 @@ Content-Type: text/plain; charset=UTF-8
1212

1313
Hi Bobby,
1414

15-
The number of failed prebuilds has reached the hard limit for template dock=
16-
er and preset particle-accelerator.
15+
The number of failed prebuild attempts has reached the hard limit for templ=
16+
ate docker and preset particle-accelerator.
1717

1818
To resume prebuilds, fix the underlying issue and upload a new template ver=
1919
sion.
@@ -35,8 +35,7 @@ Content-Type: text/html; charset=UTF-8
3535
<meta charset=3D"UTF-8" />
3636
<meta name=3D"viewport" content=3D"width=3Ddevice-width, initial-scale=
3737
=3D1.0" />
38-
<title>There is a problem creating prebuilt workspaces for the preset</=
39-
title>
38+
<title>There is a problem creating prebuilt workspaces</title>
4039
</head>
4140
<body style=3D"margin: 0; padding: 0; font-family: -apple-system, system-=
4241
ui, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarel=
@@ -51,13 +50,13 @@ er Logo" style=3D"height: 40px;" />
5150
</div>
5251
<h1 style=3D"text-align: center; font-size: 24px; font-weight: 400; m=
5352
argin: 8px 0 32px; line-height: 1.5;">
54-
There is a problem creating prebuilt workspaces for the preset
53+
There is a problem creating prebuilt workspaces
5554
</h1>
5655
<div style=3D"line-height: 1.5;">
5756
<p>Hi Bobby,</p>
58-
<p>The number of failed prebuilds has reached the hard limit for te=
59-
mplate <strong>docker</strong> and preset <strong>particle-accelerator</str=
60-
ong>.</p>
57+
<p>The number of failed prebuild attempts has reached the hard limi=
58+
t for template <strong>docker</strong> and preset <strong>particle-accelera=
59+
tor</strong>.</p>
6160

6261
<p>To resume prebuilds, fix the underlying issue and upload a new template =
6362
version.</p>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"data": {},
2929
"targets": null
3030
},
31-
"title": "There is a problem creating prebuilt workspaces for the preset",
32-
"title_markdown": "There is a problem creating prebuilt workspaces for the preset",
33-
"body": "The number of failed prebuilds 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 prebuilds 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"
31+
"title": "There is a problem creating prebuilt workspaces",
32+
"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"
3535
}

0 commit comments

Comments
 (0)