Closed Bug 1297775 Opened 9 years ago Closed 9 years ago

Combine thPlatformNameMap and thPlatformOrder into a single mapping so they always stay in sync

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: KWierso)

Details

Attachments

(1 file)

Bug 1297589 was caused by win7vm not being listed in thPlatformOrder, causing it to be grouped into "other" with a priority of 99 [1]. It was listed in thPlatformNameMap, though, so it got its prettified name applied correctly. I'd argue that any platform listed in the name mapping should also be listed in the order mapping, so we don't have to keep remembering to add platforms to the ordering. Or maybe we can just use a single mapping that maps to both the pretty name and the order priority... Thoughts? [1] I think this it true. Maybe it doesn't get grouped as "other" and just ends at the bottom of the list?
Flags: needinfo?(cdawson)
Attached file PR 1808
This PR combines thPlatformNameMap and thPlatformOrder into a single object called thPlatformMap. It adjusts anything that used the now-gone objects to use thPlatformMap. While making this change, I also updated the platform orders to correct a typo. Also, I added a bit more padding to the orders at the start of some of the groups of platforms so future additions don't have to adjust 30-some priorities. Also also, I added some newer android platform variants to the mapping so they get grouped and labeled correctly in the UI.
Assignee: nobody → wkocher
Status: NEW → ASSIGNED
Attachment #8784535 - Flags: review?(emorley)
Attachment #8784535 - Flags: review?(emorley) → review+
(Untested, so please check all working :-))
Did testing last night and all seemed good. Could we try this on stage at some point after landing? Updating summary to reflect reality.
Flags: needinfo?(cdawson)
Summary: Add a test that ensures thPlatformNameMap and thPlatformOrder in values.js have matching properties. → Combine thPlatformNameMap and thPlatformOrder into a single mapping so they always stay in sync
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/27cf34278229ba1ae41dcef2f892df5d70e122d6 Bug 1297775 - Combine thPlatformNameMap and thPlatformOrder (#1808) r=emorley
Status: ASSIGNED → RESOLVED
Closed: 9 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: