Machines commonly appear in reverse alphabetical order

Bug #2042847 reported by Rod Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Unassigned
3.4
Fix Released
Medium
Unassigned
3.5
Fix Released
Medium
Unassigned
maas-ui
Fix Committed
Medium
Peter Makowski

Bug Description

In the MAAS machine list (http://machine-name:5240/MAAS/r/machines), machines appear by default in reverse alphabetical order, as shown in the attached screen shot. Although it's possible to change to sort in forward alphabetical order by clicking the "FQDN" link, this is an added step. (I'm ASSUMING that this is a bug because forward alphabetical is the usual sort order for such things.) After switching to forward alphabetical sorting, that setting sticks for a while, but it will eventually switch back. This bug occurs in both MAAS 3.3.4 and in 3.4.0-RC1. Earlier versions sorted in forward alphabetical order by default, but I don't recall the exact MAAS version where this changed. As shown in the screen shot, the web UI is set to group entries by owner, with 50 machines per page.

Revision history for this message
Rod Smith (rodsmith) wrote :
Revision history for this message
Anton Troyanov (troyanov) wrote :

Hi Rod,

Indeed, by default UI is asking for a descending sort by a hostname field
Not sure if it is intentional.

Need to check why we have this type of FetchSortDirection by default

Changed in maas:
status: New → Triaged
importance: Undecided → Medium
Changed in maas-ui:
status: New → Triaged
importance: Undecided → Medium
Changed in maas:
milestone: none → 3.5.0
Changed in maas-ui:
milestone: none → 3.5.0
Changed in maas:
milestone: 3.5.0 → 3.4.x
Changed in maas-ui:
milestone: 3.5.0 → 3.4.x
no longer affects: maas-ui/3.5
Changed in maas-ui:
milestone: 3.4.x → none
status: Triaged → New
Changed in maas-ui:
assignee: nobody → Peter Makowski (petermakowski)
Revision history for this message
Anton Troyanov (troyanov) wrote :

{'method': 'machine.list', 'type': 0, 'params': {'filter': {}, 'group_collapsed': [], 'group_key': 'status', 'page_number': 1, 'page_size': 50, 'sort_direction': 'descending', 'sort_key': 'hostname'}, 'request_id': 19}

Revision history for this message
Peter Makowski (petermakowski) wrote :
Revision history for this message
Peter Makowski (petermakowski) wrote :
Changed in maas-ui:
status: New → In Progress
status: In Progress → Fix Committed
Changed in maas:
milestone: 3.5.0 → 3.5.0-beta1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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