Bug 786226

Summary: List of product repositories not sorted alphabetically
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: WebUIAssignee: Pavel Pokorny <ppokorny>
Status: CLOSED ERRATA QA Contact: Og Maciel <omaciel>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: achan, bkearney, dmacpher, jturner, omaciel, ppokorny
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The sort order logic for a product's available repositories was unclear. This fix corrects the sort order logic and available repositories are now sorted alphabetically.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:41:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot
none
Screenshot none

Description James Laska 2012-01-31 18:46:49 UTC
Created attachment 558664 [details]
Screenshot

Description of problem:

When viewing repositories of a particular product, the sort order is unclear and does not appear to be alphabetic (see attachment).

Version-Release number of selected component (if applicable):
 * candlepin-0.5.14-1.el6.src.rpm
 * katello-0.1.200-3.el6.src.rpm
 * katello-certs-tools-1.0.2-2.el6.src.rpm
 * katello-cli-0.1.44-2.el6.src.rpm
 * katello-configure-0.1.55-2.el6.src.rpm
 * katello-httpd-ssl-key-pair-1.0-1.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-selinux-0.1.3-1.el6.src.rpm
 * katello-trusted-ssl-cert-1.0-1.src.rpm
 * pulp-0.0.256-1.el6.src.rpm

How reproducible:
 * Seems to happen everytime ... so I may just not understand the default sort order

Steps to Reproduce:
1. Create a system template
2. In the Eligible Conten pane, select a valid product, such as "Red Hat Enterprise Linux Server"
  
Actual results:

 * The list of repositories for a product doesn't appear to be sorted alphabetically.  It seems to mix RHEL5 and RHEL6 in a random order.

Expected results:

 * List of repositories sorted alphabetically

Additional info:

Comment 2 Pavel Pokorny 2012-09-10 06:54:38 UTC
Fixed in e512520

Comment 4 Og Maciel 2012-09-17 23:58:54 UTC
Created attachment 613819 [details]
Screenshot

Comment 5 Og Maciel 2012-09-17 23:59:10 UTC
Verified using:

* candlepin-0.7.8-1.el6cf.noarch
* candlepin-selinux-0.7.8-1.el6cf.noarch
* candlepin-tomcat6-0.7.8-1.el6cf.noarch
* katello-1.1.12-7.el6cf.noarch
* katello-all-1.1.12-7.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-4.el6cf.noarch
* katello-cli-common-1.1.8-4.el6cf.noarch
* katello-common-1.1.12-7.el6cf.noarch
* katello-configure-1.1.9-3.el6cf.noarch
* katello-glue-candlepin-1.1.12-7.el6cf.noarch
* katello-glue-pulp-1.1.12-7.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarch

Comment 7 errata-xmlrpc 2012-12-04 19:41:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-1543.html