Milestones should be ordered by debversion, then chronologically when changing bug status

Bug #81391 reported by Jamu Kakar
12
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Medium
Unassigned

Bug Description

When a project uses milestones, and you have permission to change the milestone for a bug in that project, the "Milestone" menu lists the milestones alphabetically. It should list them chronologically by due date. It might even be nice to include the milestone due date in the listing, as in, "Name (YYYY-MM-DD)".

Revision history for this message
Martin Pool (mbp) wrote :

Dupe of 38721?

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Maybe, but I'm confused by the "when editing bug details" bit. I don't see any list of milestones when editing a bug's description. Jamu, can you give us an example URL?

Changed in launchpad:
status: Unconfirmed → Needs Info
Revision history for this message
Jamu Kakar (jkakar) wrote : Re: [Bug 81391] Re: Order of milestone list when editing bug details should be chronological instead of alphabetic

This is a private bug, but you (mpt) ought to have access to it:
https://bugs.beta.launchpad.net/landscape/+bug/72569

I can't find a public bug that I have enough priviledges for to edit
it's milestone; therefore, I can't find a public bug that displays a
Milestone menu. Anyway, If you click on the '... (upstream)' link in
the table at the top of the page (in the Affects column) the page
unhides the section of controls that allows you to edit Product, Status,
Importance and Milestone. The issue this bug is about is similar to
38721 but is specifically about the milestone menu in this context.

Does this help clarify the issue?

Revision history for this message
Matthew Paul Thomas (mpt) wrote : Re: Order of milestone list when editing bug details should be chronological instead of alphabetic

Ah, I see it now.

Changed in launchpad:
importance: Undecided → Medium
status: Needs Info → Confirmed
description: updated
Revision history for this message
Curtis Hovey (sinzui) wrote : Re: Milestones should be ordered chronologically when changing bug status

Milestone cannot be sorted by their expected date because not every milestone has one. To show milestones sorted for a series, er use lp.registry.model.milestone.milestone_sort_key, which does several hacks to make the list appear correct.

Curtis Hovey (sinzui)
summary: - Milestones should be ordered chronologically when changing bug status
+ Milestones should be ordered by debversion, then chronologically when
+ changing bug status
Revision history for this message
Robert Collins (lifeless) wrote :

In the current model the milestones for a bugtask from the product/series - and that has a unique constraint across the product. As such, for any given task there is already a unique sort on the name.

Changed in malone:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.