Skip to content

feat: add template delete notification #14250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 14, 2024
Merged
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
BrunoQuaresma committed Aug 14, 2024
commit eaf87c556c8829bebac96ad785b507ab6de339a6
2 changes: 1 addition & 1 deletion coderd/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ func TestTemplateNotifications(t *testing.T) {

// Validate the notification content
for _, n := range deleteTemplateNotifications {
require.Contains(t, n.TemplateID, notifications.TemplateTemplateDeleted)
require.Equal(t, n.TemplateID, notifications.TemplateTemplateDeleted)
require.Contains(t, notifiedUsers, n.UserID)
require.Contains(t, n.Targets, template.ID)
require.Contains(t, n.Targets, template.OrganizationID)
Expand Down
Loading