Bug 722453 - System package list not sorting by date
Summary: System package list not sorting by date
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 1.5
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-07-15 12:05 UTC by Alexander Davidsen
Modified: 2011-12-22 16:46 UTC (History)
1 user (show)

Fixed In Version: spacewalk-java-1.6.4
Clone Of:
Environment:
Last Closed: 2011-12-22 16:46:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Alexander Davidsen 2011-07-15 12:05:59 UTC
Description of problem:
When sorting the packages installed on a system the packages are sorted by alphabeth, not numeric. Meaning that latest package install does not nessacarly show up at the top. 

Version-Release number of selected component (if applicable):
1.5.56-1.el5

How reproducible:


Steps to Reproduce:
1. Click Systems -> Select a sysmte -> Software -> List / Remove 
2. Click "Installed" to sort on latest installed package.
You can now see that packages installed for example 7/8/11 is listed before packages installed 7/11/11
  
Actual results:
Packages installed for example 7/8/11 is listed before packages installed 7/11/11


Expected results:
Newest installed packages should be listed first. 

Additional info:

Comment 1 Tomas Lestach 2011-07-18 08:22:31 UTC
Hey Alexander,

clicking on 'Installed', the packages get sorted according to install time, newest first.
When clicking on 'Installed' again, the packages get sorted in the opposite order - newest last.

Not sure, what doesn't work for you, but it works as expected for me.

Comment 2 Jan Pazdziora (Red Hat) 2011-07-20 11:48:14 UTC
Aligning under space16.

Comment 3 Alexander Davidsen 2011-07-25 06:22:19 UTC
Hi,

If you look at the following url: http://bildr.no/view/934369 I have added a screenshot. 

As you can see, the package on the top  (I had to anonymize the name) is installed 7/8/2011 and the package below is installed 07/19/2011. The first package should be sorted below. 

This is after trying to sort on install date, newest first.

Comment 4 Tomas Lestach 2011-07-25 13:29:12 UTC
You're right. The sort was done according to the string representation of date not according to the date itself.

spacewalk.git: ff0bba1d65be8e41ded74723a4c15da87dec1b57

Fix available in spacewalk-java-1.6.4

Comment 5 Alexander Davidsen 2011-07-25 13:34:56 UTC
Great! Thanks for fixing this, Tomas!

Comment 6 Milan Zázrivec 2011-12-22 16:46:30 UTC
Spacewalk 1.6 has been released.


Note You need to log in before you can comment on or make changes to this bug.