Current alphabetical sort order for Ubuntu codenames is unhelpful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Simone Pelosi |
Bug Description
Launchpad itself currently sorts list of Ubuntu versions, such as the Ubiquity translations list at [1], in an alphabetical order. However, since the codenames have already gone through a whole A-Z cycle, this gives the very unhelpful result of "...ubiquity in Ubuntu Feisty , ubiquity in Ubuntu Focal , ubiquity in Ubuntu Groovy , ubiquity in Ubuntu Gutsy , ubiquity in Ubuntu Hardy , ubiquity in Ubuntu Hirsute". It would be much more helpful to sort these by the actual dates of release.
[1]: https:/
I decided to report this for Launchpad itself as it would understandably be less nice-looking to replace the codenames with the release numbers in some sort of release info. A better solution probably then requires a change in launchpad, in the form of a "sort key" for each release.
Related branches
- Colin Watson (community): Approve
-
Diff: 93 lines (+50/-3)3 files modifiedlib/lp/registry/interfaces/product.py (+2/-1)
lib/lp/registry/model/product.py (+9/-2)
lib/lp/registry/tests/test_product.py (+39/-0)
Changed in launchpad: | |
assignee: | nobody → Simone Pelosi (pelpsi) |
status: | Triaged → Fix Committed |
status: | Fix Committed → Fix Released |
We do use an appropriate sort key in several other places, but I agree that it's lacking here (`Product. translatable_ packages` ). Should just be a matter of using `Version( p.distroseries. version) ` rather than `p.distroseries .name`, similar to `Distribution. series` , although I think we might also want to switch to listing the series in descending order.