Skip to content

Commit b12dcfc

Browse files
committed
Address PR feedback
1 parent 4d95288 commit b12dcfc

File tree

5 files changed

+0
-89
lines changed

5 files changed

+0
-89
lines changed

coderd/database/migrations/000249_email_reports.down.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

coderd/database/migrations/000249_email_reports.up.sql

Lines changed: 0 additions & 20 deletions
This file was deleted.

coderd/notifications/notifications_test.go

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -844,56 +844,6 @@ func TestNotificationTemplatesCanRender(t *testing.T) {
844844
},
845845
},
846846
},
847-
{
848-
name: "TemplateWorkspaceBuildSummary",
849-
id: notifications.TemplateWorkspaceBuildSummary,
850-
payload: types.MessagePayload{
851-
UserName: "Bobby",
852-
Labels: map[string]string{
853-
"template_name": "bobby-first-template",
854-
"template_display_name": "Bobby First Template",
855-
},
856-
Data: map[string]any{
857-
"failed_builds": 4,
858-
"total_builds": 55,
859-
"report_frequency": "week",
860-
"template_versions": []map[string]any{
861-
{
862-
"template_version_name": "bobby-template-version-1",
863-
"failed_count": 3,
864-
"failed_builds": []map[string]any{
865-
{
866-
"workspace_owner_username": "mtojek",
867-
"workspace_name": "workspace-1",
868-
"build_number": 1234,
869-
},
870-
{
871-
"workspace_owner_username": "johndoe",
872-
"workspace_name": "my-workspace-3",
873-
"build_number": 5678,
874-
},
875-
{
876-
"workspace_owner_username": "jack",
877-
"workspace_name": "workwork",
878-
"build_number": 774,
879-
},
880-
},
881-
},
882-
{
883-
"template_version_name": "bobby-template-version-2",
884-
"failed_count": 1,
885-
"failed_builds": []map[string]any{
886-
{
887-
"workspace_owner_username": "ben",
888-
"workspace_name": "cool-workspace",
889-
"build_number": 8888,
890-
},
891-
},
892-
},
893-
},
894-
},
895-
},
896-
},
897847
}
898848

899849
allTemplates, err := enumerateAllTemplates(t)

coderd/notifications/testdata/rendered-templates/TemplateWorkspaceBuildSummary-body.md.golden

Lines changed: 0 additions & 17 deletions
This file was deleted.

coderd/notifications/types/payload.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ type MessagePayload struct {
1616

1717
Actions []TemplateAction `json:"actions"`
1818
Labels map[string]string `json:"labels"`
19-
Data map[string]any `json:"data,omitempty"`
2019
}

0 commit comments

Comments
 (0)