RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 851321 - Refresh/redraw tables after removing subscriptions
Summary: Refresh/redraw tables after removing subscriptions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 7.0
Assignee: candlepin-bugs
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2012-08-23 19:06 UTC by Matt Reid
Modified: 2014-06-18 00:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:26:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Two subscriptions (43.31 KB, image/png)
2012-08-23 19:06 UTC, Matt Reid
no flags Details
Eval Removed (37.63 KB, image/png)
2012-08-23 19:07 UTC, Matt Reid
no flags Details
After restarting sub man with the 1 sub (39.30 KB, image/png)
2012-08-23 19:07 UTC, Matt Reid
no flags Details
subs-man resizing subscriptions table (1.09 MB, image/png)
2013-10-15 17:52 UTC, Sharath Dwaral
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.