Closed Bug 1306132 Opened 8 years ago Closed 8 years ago

Make thPlatformMap use _.indexOf() to determine order rather than arbitrary numbers.

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: KWierso)

Details

Attachments

(1 file, 2 obsolete files)

Cam brought this up in a recent review, and I think this would be better in the long run for the platform mapping.
Assignee: nobody → wkocher
Comment on attachment 8795938 [details] [review]
[treeherder] KWierso:1306132 > mozilla:master

This is the PR-in-progess I mentioned on IRC. The order appears to be correct, and as long as none of our platform names end up being just a number, I don't see any reason for that to never be true. 

Not tied to this at all and wouldn't be offended if you wontfix it, though... :)
Attachment #8795938 - Flags: feedback?(cdawson)
Comment on attachment 8796306 [details] [review]
[treeherder] KWierso:1306132v2 > mozilla:master

Oops, wrong bug.
Attachment #8796306 - Attachment is obsolete: true
Comment on attachment 8796307 [details] [review]
[treeherder] KWierso:1306132v2 > mozilla:master

Stop that, autolander!
Attachment #8796307 - Attachment is obsolete: true
Comment on attachment 8795938 [details] [review]
[treeherder] KWierso:1306132 > mozilla:master

Looks good.  Made one suggestion.  :)
Attachment #8795938 - Flags: feedback?(cdawson) → feedback+
Comment on attachment 8795938 [details] [review]
[treeherder] KWierso:1306132 > mozilla:master

I've rebased this onto master and made it so the map is only generated once per page load. I wasn't sure how to generate the map in values.js directly, since it'd be referencing one of the other values, and I don't know how to do that.
Attachment #8795938 - Flags: review?(cdawson)
Comment on attachment 8795938 [details] [review]
[treeherder] KWierso:1306132 > mozilla:master

Looks good!
Attachment #8795938 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/f29c1fb610712bb32d5da0920168d141c771a916
Bug 1306132 - Remove the need to manually add a platform's priority (#1879) r=camd
Status: NEW → RESOLVED
Closed: 8 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: