Skip to content

Commit f115973

Browse files
committed
comment
1 parent 498b89b commit f115973

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

coderd/notifications/reports/generator.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ func buildDataForReportFailedWorkspaceBuilds(stats database.GetWorkspaceBuildSta
206206
return failedBuilds[i].WorkspaceBuildNumber > failedBuilds[j].WorkspaceBuildNumber
207207
})
208208

209-
// Build notification model for template versions and failed workspace builds
209+
// Build notification model for template versions and failed workspace builds.
210+
//
211+
// Failed builds are sorted by template version ascending, workspace build number descending.
212+
// Review builds, group them by template versions, and assign to builds to template versions.
213+
// The map requires `[]map[string]any{}` to be compatible with data passed to `NotificationEnqueuer`.
210214
templateVersions := []map[string]any{}
211215
for _, failedBuild := range failedBuilds {
212216
c := len(templateVersions)

0 commit comments

Comments
 (0)