Closed Bug 1618578 Opened 6 years ago Closed 6 years ago

All perfherder dropdowns have the items in alphabetical order

Categories

(Tree Management :: Perfherder, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alexandru.irimovici, Assigned: kimberlythegeek)

References

(Regression)

Details

Attachments

(2 files)

We don't want the options order to be alphabetical for all the dropdowns.

Example of dropdown that should not be in alphabetical order: the time range dorpdown in graphs view
https://treeherder-prototype2.herokuapp.com/perf.html#/graphs

For better control we should define in DropdownMenuItems a component property named sortAlphabetically or something similar and have it default to false.

From what I remember of the pr review, the alphabetical sorting wasn't a requirement. Maybe just removing it makes the most sense? Any data that needs it in the future, especially if its only one thing, could be sorted before being passed to the DropdownMenuItems component.

+1 I'm for removing the alphabetical order

Assignee: nobody → ksereduck
Priority: -- → P1

(In reply to Sarah Clements [:sclements] from comment #1)

From what I remember of the pr review, the alphabetical sorting wasn't a requirement.

Forgot about the PR review discussions, but these requirements state that the unpinned items from the repository dropdown menu can be ordered alphabetically.

Maybe just removing it makes the most sense? Any data that needs it in the future, especially if its only one thing, could be sorted before being passed to the DropdownMenuItems component.

Yes, we could sort the items prior to passing them to the DropdownMenuItems component.

Status: NEW → RESOLVED
Closed: 6 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: