[2.x, UI] node table uses lexical sort for disk size and unknown sort for disk count

Bug #1651252 reported by dann frazier
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned
2.1
Won't Fix
Undecided
Unassigned

Bug Description

MAAS Version 2.1.1+bzr5544-0ubuntu1

I've found that the MAAS nodes table seems to use lexical sort when sorting numeric values. When sorting by "Storage (GB)" I see the following order:

16.1
2240.5
4500.9
500.1
515.6

I'd expect it to sort numerically, i.e.:

16.1
500.1
515.6
2240.5
4500.9

Similarly, when I click the "Disks" column, I expect it to sort the entries by # of disks. Clicking it does change the ordering, but not by any obvious algorithm.

3,2,1,2,3,2,3,1,1,2,1 -> 1,3,2,2,3,2,3,1,1,1,2

Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Dann,

Can you please specify:

1. Version of Ubuntu being run
2. Browser

Changed in maas:
importance: Undecided → Medium
milestone: none → 2.2.0
Revision history for this message
dann frazier (dannf) wrote : Re: [Bug 1651252] Re: node table uses lexical sort for disk size

On Mon, Dec 19, 2016 at 4:05 PM, Andres Rodriguez
<email address hidden> wrote:
> Hi Dann,
>
> Can you please specify:
>
> 1. Version of Ubuntu being run

16.04

> 2. Browser

Chrome

Gavin Panella (allenap)
Changed in maas:
status: New → Triaged
Changed in maas:
milestone: 2.2.0 → 2.2.x
Changed in maas:
milestone: 2.2.x → 2.3.x
summary: - node table uses lexical sort for disk size
+ [UI] node table uses lexical sort for disk size
summary: - [UI] node table uses lexical sort for disk size
+ [2.x, UI] node table uses lexical sort for disk size
Revision history for this message
dann frazier (dannf) wrote : Re: [2.x, UI] node table uses lexical sort for disk size and disk count

LP: #1651245 has been marked as a duplicate of this one. Perhaps that's because a single code fix will fix both - however, the symptoms are different. I'll update the metadata here to make sure it covers both.

summary: - [2.x, UI] node table uses lexical sort for disk size
+ [2.x, UI] node table uses lexical sort for disk size and disk count
summary: - [2.x, UI] node table uses lexical sort for disk size and disk count
+ [2.x, UI] node table uses lexical sort for disk size and unknown sort
+ for disk count
description: updated
Revision history for this message
dann frazier (dannf) wrote :

Here's a demo of the disk count sorting issue: https://youtu.be/dYHNaOqSmMs

Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
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

Remote bug watches

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