Skip to content

Commit ac279b3

Browse files
authored
Add periods to end of license warning text. (coder#3933)
* Add periods to end of license warning text. Signed-off-by: Spike Curtis <spike@coder.com> * Fix tests Signed-off-by: Spike Curtis <spike@coder.com> Signed-off-by: Spike Curtis <spike@coder.com>
1 parent d46b04c commit ac279b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

enterprise/coderd/features.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (s *featuresService) EntitlementsAPI(rw http.ResponseWriter, r *http.Reques
112112
if n > e.activeUsers.limit {
113113
resp.Warnings = append(resp.Warnings,
114114
fmt.Sprintf(
115-
"Your deployment has %d active users but is only licensed for %d",
115+
"Your deployment has %d active users but is only licensed for %d.",
116116
n, e.activeUsers.limit))
117117
}
118118
}
@@ -125,7 +125,7 @@ func (s *featuresService) EntitlementsAPI(rw http.ResponseWriter, r *http.Reques
125125
}
126126
if e.auditLogs.state == gracePeriod && s.enablements.AuditLogs {
127127
resp.Warnings = append(resp.Warnings,
128-
"Audit logging is enabled but your license for this feature is expired")
128+
"Audit logging is enabled but your license for this feature is expired.")
129129
}
130130

131131
httpapi.Write(rw, http.StatusOK, resp)

enterprise/coderd/features_internal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ func TestFeaturesService_EntitlementsAPI(t *testing.T) {
165165
assert.Nil(t, al.Actual)
166166
assert.Len(t, result.Warnings, 2)
167167
assert.Contains(t, result.Warnings,
168-
"Your deployment has 5 active users but is only licensed for 4")
168+
"Your deployment has 5 active users but is only licensed for 4.")
169169
assert.Contains(t, result.Warnings,
170-
"Audit logging is enabled but your license for this feature is expired")
170+
"Audit logging is enabled but your license for this feature is expired.")
171171
})
172172
}
173173

0 commit comments

Comments
 (0)