Red Hat Bugzilla – Bug 851321
Refresh/redraw tables after removing subscriptions
Last modified: 2014-06-17 20:21:49 EDT
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.
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
Created attachment 606690 [details]
Created attachment 606691 [details]
Created attachment 606692 [details]
After restarting sub man with the 1 sub
This appears to have been fixed, we've made a lot of changes to this area since the bug was opened.
I think Cory cleaned this up, but I'm not positive.
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
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
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.