File tree 1 file changed +5
-1
lines changed
coderd/notifications/reports
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,11 @@ func buildDataForReportFailedWorkspaceBuilds(stats database.GetWorkspaceBuildSta
206
206
return failedBuilds [i ].WorkspaceBuildNumber > failedBuilds [j ].WorkspaceBuildNumber
207
207
})
208
208
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`.
210
214
templateVersions := []map [string ]any {}
211
215
for _ , failedBuild := range failedBuilds {
212
216
c := len (templateVersions )
You can’t perform that action at this time.
0 commit comments