Bug 1146253

Summary: Ordering of provided products differs between All Available Subscriptions and My Subscriptions tabs
Product: Red Hat Enterprise Linux 6 Reporter: Matt Reid <mreid>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: dgoodwin
Target Milestone: rc   
Target Release: 6.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 15:31:51 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:
Bug Depends On:    
Bug Blocks: 1125249    
Attachments:
Description Flags
RHCI in My Subscriptions
none
RHCI in All Available Subscriptions
none
RHCI in list --consumed
none
RHCI in list --available none

Description Matt Reid 2014-09-24 20:55:45 UTC
Description of problem:
I'm actually not sure what determines the order we display provided products by in the two tabs (All Available Subscriptions and My Subscriptions) that show that information, but they seem to follow different rules. This also holds true when comparing the provided products spit out by 'subscription-manager list --available' and once attached, 'subscription-manager list --consumed'.

Presumably, there's a difference in the logic we use? It's the same subscription, so I would hope the ordering provided by CP remains the same?

Seems like the product listing should be in the same order, and alphabetical would make sense to me.



Version-Release number of selected component (if applicable):
subscription-manager-1.10.14-7.el7


How reproducible:
100%

Steps to Reproduce:
1. Open up subscription-manager-gui
2. Go to the All Available Subscriptions tab (assuming you're already registered)
3. Update the list to pull down subscriptions
4. Find a subscription that provides multiple products and observe the ordering of the products listed
5. Attach the subscription
6. Go over to My Subscriptions and look at the ordering of the provided products, it should be arranged differently now

You can do the same through cli using list --available and list --consumed

Actual results:
Products aren't in the same order

Expected results:
Products should be in the same order (and probably alphabetical, to keep things simple)

Additional info:

Comment 1 Matt Reid 2014-09-24 20:56:27 UTC
Created attachment 940910 [details]
RHCI in My Subscriptions

Comment 2 Matt Reid 2014-09-24 20:56:50 UTC
Created attachment 940911 [details]
RHCI in All Available Subscriptions

Comment 3 Matt Reid 2014-09-24 20:57:15 UTC
Created attachment 940912 [details]
RHCI in list --consumed

Comment 4 Matt Reid 2014-09-24 20:57:39 UTC
Created attachment 940913 [details]
RHCI in list --available

Comment 5 Bryan Kearney 2014-09-29 17:27:09 UTC
Acking 7.1

Comment 6 Devan Goodwin 2014-11-03 18:31:51 UTC
No sorting done on these at all. We could add that in all avail / my subs / CLI, but it could add a little processing time. In any case low priority, deferring to 6.7.

Comment 9 Devan Goodwin 2014-11-21 18:39:19 UTC
Adding sorting on these in all locations they're displayed seems reasonable. Assuming alphabetical on friendly name.

Comment 10 Devan Goodwin 2015-04-07 15:31:51 UTC
Nice to have but time constraints mean we never get to things like this, rather than continuing to defer we're closing for now.