Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion apps/webapp/app/presenters/v3/ErrorGroupPresenter.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,15 @@ export class ErrorGroupPresenter extends BasePresenter {

const sortedVersions = sortVersionsDescending([...versionSet]);

// Build the data for the graph
// For each time bucket, if a value exists for a version set the value (don't add zeros)
const data = buckets.map((epoch) => {
const point: Record<string, number | Date> = { date: new Date(epoch * 1000) };
for (const version of sortedVersions) {
point[version] = byBucketVersion.get(`${epoch}:${version}`) ?? 0;
const versionValue = byBucketVersion.get(`${epoch}:${version}`);
if (versionValue) {
point[version] = versionValue;
}
Comment thread
matt-aitken marked this conversation as resolved.
}
return point;
});
Expand Down
Loading