Closed Bug 1756264 Opened 4 years ago Closed 3 years ago

Colors indicated in graph legend are incorrect

Categories

(Socorro :: Webapp, defect, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rkraesig, Assigned: efilho)

Details

Attachments

(2 files)

Seen at this crash-stats link, sorting by major version.

The legend indicates that green is 95; hovering over the green line indicates it's 91. (Other queries confirm that "91" is correct.)

Huh. I have no idea when that broke. I'll look into it next week when I get a chance.

Assignee: nobody → willkg
Status: NEW → ASSIGNED
Type: task → defect
Priority: -- → P2

I'm going to unassign myself because I'm not going to get to this.

Status: ASSIGNED → NEW

I thought I unassigned myself, but didn't. Oops.

Assignee: willkg → nobody
Assignee: nobody → efilho
Status: NEW → ASSIGNED

Because Javascript doesn't guarantee the reading order will be the same as the insertion order for objects, the major version order for legend (array) and graph data (object) would not match sometimes. This was fixed by building the legend array along with lineDataArray, which contains graph data and is an array, which guarantees the reading order will be the same as insertion order.

I deployed this to prod just now in bug #1787851. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: