Skip to content
Merged
Prev Previous commit
Next Next commit
Address PR feedback
  • Loading branch information
mtojek committed Sep 4, 2024
commit b12dcfcc2f6273ebce6543f6eee5aeff7b9b8f39
1 change: 0 additions & 1 deletion coderd/database/migrations/000249_email_reports.down.sql

This file was deleted.

20 changes: 0 additions & 20 deletions coderd/database/migrations/000249_email_reports.up.sql

This file was deleted.

50 changes: 0 additions & 50 deletions coderd/notifications/notifications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,56 +844,6 @@ func TestNotificationTemplatesCanRender(t *testing.T) {
},
},
},
{
name: "TemplateWorkspaceBuildSummary",
id: notifications.TemplateWorkspaceBuildSummary,
payload: types.MessagePayload{
UserName: "Bobby",
Labels: map[string]string{
"template_name": "bobby-first-template",
"template_display_name": "Bobby First Template",
},
Data: map[string]any{
"failed_builds": 4,
"total_builds": 55,
"report_frequency": "week",
"template_versions": []map[string]any{
{
"template_version_name": "bobby-template-version-1",
"failed_count": 3,
"failed_builds": []map[string]any{
{
"workspace_owner_username": "mtojek",
"workspace_name": "workspace-1",
"build_number": 1234,
},
{
"workspace_owner_username": "johndoe",
"workspace_name": "my-workspace-3",
"build_number": 5678,
},
{
"workspace_owner_username": "jack",
"workspace_name": "workwork",
"build_number": 774,
},
},
},
{
"template_version_name": "bobby-template-version-2",
"failed_count": 1,
"failed_builds": []map[string]any{
{
"workspace_owner_username": "ben",
"workspace_name": "cool-workspace",
"build_number": 8888,
},
},
},
},
},
},
},
}

allTemplates, err := enumerateAllTemplates(t)
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion coderd/notifications/types/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ type MessagePayload struct {

Actions []TemplateAction `json:"actions"`
Labels map[string]string `json:"labels"`
Data map[string]any `json:"data,omitempty"`
}
Loading