[UI] Sorting "Last Seen" on "Dashboard" sorts by string, not by timestamp

Bug #1751540 reported by Douglas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Steve Rydz

Bug Description

When trying to sort nodes on the "Dashboard" "Network Discovery" page by "Last Seen", the UI sorts by string (alphabetic sorting, "Fri, 16 Feb. 2018 17:41:33", then "Mon, 15 Jan. 2018 14:29:07") instead of by actual last seen numeric timestamp ("Mon, 15 Jan. 2018 14:29:07" then "Fri, 16 Feb. 2018 17:41:33")

Including MaaS version:
root@maas:~# dpkg -l '*maas*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=================================================-=============================-=============================-=======================================================================================================
ii maas 2.3.0-6434-gd354690-0ubuntu1~ all "Metal as a Service" is a physical cloud and IPAM
ii maas-cli 2.3.0-6434-gd354690-0ubuntu1~ all MAAS client and command-line interface
un maas-cluster-controller <none> <none> (no description available)
ii maas-common 2.3.0-6434-gd354690-0ubuntu1~ all MAAS server common files
ii maas-dhcp 2.3.0-6434-gd354690-0ubuntu1~ all MAAS DHCP server
ii maas-dns 2.3.0-6434-gd354690-0ubuntu1~ all MAAS DNS server
ii maas-proxy 2.3.0-6434-gd354690-0ubuntu1~ all MAAS Caching Proxy
ii maas-rack-controller 2.3.0-6434-gd354690-0ubuntu1~ all Rack Controller for MAAS
ii maas-region-api 2.3.0-6434-gd354690-0ubuntu1~ all Region controller API service for MAAS
ii maas-region-controller 2.3.0-6434-gd354690-0ubuntu1~ all Region Controller for MAAS
un maas-region-controller-min <none> <none> (no description available)
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-maas-provisioningserver <none> <none> (no description available)
ii python3-django-maas 2.3.0-6434-gd354690-0ubuntu1~ all MAAS server Django web framework (Python 3)
ii python3-maas-client 2.3.0-6434-gd354690-0ubuntu1~ all MAAS python API client (Python 3)
ii python3-maas-provisioningserver 2.3.0-6434-gd354690-0ubuntu1~ all MAAS server provisioning libraries (Python 3)

Related branches

Revision history for this message
Douglas (dgrosvenor) wrote :

I also just noticed that sorting by IP does the same thing:

Currently:
x.x.x.112
x.x.x.3

Should be:
x.x.x.3
x.x.x.112

Changed in maas:
assignee: nobody → Anthony Dillon (ya-bo-ng)
milestone: none → 2.5.0alpha2
importance: Undecided → Medium
status: New → Triaged
summary: - Sorting "Last Seen" on "Dashboard" sorts by string, not by timestamp
+ [UI] Sorting "Last Seen" on "Dashboard" sorts by string, not by
+ timestamp
Changed in maas:
milestone: 2.5.0alpha2 → 2.5.0beta1
Changed in maas:
milestone: 2.5.0beta1 → 2.5.0beta2
Changed in maas:
milestone: 2.5.0beta2 → 2.5.0rc1
Changed in maas:
milestone: 2.5.0rc1 → 2.5.1
Changed in maas:
milestone: 2.5.1 → 2.5.0rc2
milestone: 2.5.0rc2 → 2.5.0rc1
Changed in maas:
status: Triaged → In Progress
assignee: Anthony Dillon (ya-bo-ng) → Steve Rydz (steverydz)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
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.