Bug 846375

Summary: Resource list views should have name field as initial sort and limit ancestry to client side sorting only
Product: [Other] RHQ Project Reporter: Jay Shaughnessy <jshaughn>
Component: Core UIAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: high    
Version: 4.4CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.5.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 10:05:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jay Shaughnessy 2012-08-07 15:14:02 UTC
The GUI currently does not apply an initial sort to the resource list views (i.e. ResourceSearchView implemented views).

This includes the Inventory views (Platforms, Servers, etc), the search bar results, and a few other views.

The community has asked for, and it would be useful to apply an initial sort on the 'name' field.  This would give a much more readable result and may save the user from having to do a subsequent DB fetch for sorted data.

Related to sorting is the behavior of the Ancestry field.  This field is stored in an encoded form in the database and sorting on it in the db produces confusing results in the UI, because the sort will not look alphabetical.

Ancestry should be enabled only for client-side sorting.  This means the column can be sorted only when all values are local (already fetched) to the client. In this case the column can be sorted in memory, and will be sorted on the display value as opposed to the encoded value.

Comment 1 Jay Shaughnessy 2012-08-07 15:34:41 UTC
master commit 1b21770ce8d938cce33f03b604b31f6fbc078c14

- Apply default initial sort on Name field for resource list views (using ResourceSearchView)
  - note, updated constructor chaining to be more efficient while adding
    default sort behavior. Removed an unused constructor.
- Disable server-side sorting on Ancestry since sorting on the encoded
  value is not useful to the end user.  Allow client-side sorting when all
  rows are fetched, this gives the desired alpha sort on the display value.

Comment 2 Heiko W. Rupp 2013-09-01 10:05:01 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.