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)
Tree Management
Treeherder
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)
Assignee | ||
Comment 1•9 years ago
|
||
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.
Updated•9 years ago
|
Attachment #8784535 -
Flags: review?(emorley) → review+
Comment 2•9 years ago
|
||
(Untested, so please check all working :-))
Assignee | ||
Comment 3•9 years ago
|
||
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
Comment 4•9 years ago
|
||
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
Assignee | ||
Updated•9 years ago
|
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.
Description
•