Bug 851321

Summary: Refresh/redraw tables after removing subscriptions
Product: Red Hat Enterprise Linux 7 Reporter: Matt Reid <mreid>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ckozak, fsharath, jgalipea
Target Milestone: beta   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 09:26:38 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: 863175    
Attachments:
Description Flags
Two subscriptions
none
Eval Removed
none
After restarting sub man with the 1 sub
none
subs-man resizing subscriptions table none

Description Matt Reid 2012-08-23 19:06:14 UTC
Description of problem:
When we add something new to tables, we make sure all the rows are properly sized, but when we remove something, we leave the table alone and just remove the entry.

This can result in awkwardly sized name columns with unnecessary horizontal scrolling when a table contains subscriptions with very different name lengths, and a user removes the subscription with the longest name. The subscription gets removed, but the table doesn't update its layout, so the name column ends up being much longer than it needs to be.

If our redraw is quick, it'd be nice to refresh the table layout when something is removed. The only way I've gotten it to update to the proper sizing is to close subscription manager and reopen it.

Reproduce:
1. Attach a long winded subscription (such as an eval) and a shorter one (like RH Employee)
2. Go to My Subscriptions Tab
3. Remove the eval subscription, name column doesn't refresh, and user has to scroll horizontally to see the rest of the sub info in the table

Comment 1 Matt Reid 2012-08-23 19:06:46 UTC
Created attachment 606690 [details]
Two subscriptions

Comment 2 Matt Reid 2012-08-23 19:07:10 UTC
Created attachment 606691 [details]
Eval Removed

Comment 3 Matt Reid 2012-08-23 19:07:48 UTC
Created attachment 606692 [details]
After restarting sub man with the 1 sub

Comment 5 Carter Kozak 2013-09-26 14:34:40 UTC
This appears to have been fixed, we've made a lot of changes to this area since the bug was opened.

Comment 6 Matt Reid 2013-09-26 14:36:40 UTC
I think Cory cleaned this up, but I'm not positive.

Comment 8 Sharath Dwaral 2013-10-15 17:52:07 UTC
Created attachment 812639 [details]
subs-man resizing subscriptions table

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.29-1
subscription-manager: 1.10.3-1.el7
python-rhsm: 1.10.3-1.el7

The following scenarios are shown in the attachment (left to right)

1) My Subscriptions tab have two subscriptions one with a long name and other with a short name. In this scenario the table re-sizes itself and a horizontal scroll appears

2) When the subscription with a longer name is removed, the table resizes itself to fit the subscription with a shorter name and the horizontal scroll disappears

3) On re-adding a subscription with a longer the table re-sizes itself again and a horizontal scroll appears

VERIFIED

Comment 9 Ludek Smid 2014-06-13 09:26:38 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.