Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1207488 - Content Hosts > Subscriptions: Switching between "List/Remove" and "Add" doesn't toggle right/leads to off-by-one
Summary: Content Hosts > Subscriptions: Switching between "List/Remove" and "Add" does...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-31 02:58 UTC by Corey Welton
Modified: 2017-02-23 20:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:57:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (28.00 KB, image/png)
2015-03-31 03:00 UTC, Corey Welton
no flags Details
another screenshot (27.83 KB, image/png)
2015-03-31 03:03 UTC, Corey Welton
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10537 0 None None None 2016-04-22 16:41:46 UTC

Description Corey Welton 2015-03-31 02:58:59 UTC
Description of problem:
Within the content host UI, when user selects an item in "Add", switches between the two tabs and returns, the expected button is no longer enabled, and unchecking/checking leads to the UI reading "-1"/"0" instead of "0"/"1"



Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-7-20150324.0

How reproducible:


Steps to Reproduce:
1.  Add a bunch of different content to an AC; register a system using AC
2.  Hosts > Content Host > $hostname > Subscriptions
3.  Noting "List/Remove" is the default tab, choose the "Add" tab.
4.  Click an available item in "Add", but DO NOT click 'Add Selected'.  Instead, nav back to the "List/Remove" tab.
5.  Noting the "Remove Selected" button is (correctly) grayed out, immediately switch back to the "Add" Tab.
6.  Note the state of the "Add Selected" button; select/deselect any item on list

Actual results:
* Button is incorrectly grayed out upon return to tab
* "x Selected" next to the "Add Selected button is incorrect.
* toggling selector can mean the "x Selected" reads -1 instead of 0 and 0 instead of 1, respectively.

Expected results:

Keep track of tabs and items selected, appropriately

Additional info:

I haven't looked to see if this actually affects usability yet - maybe not. But it is not very pretty.

Comment 1 Corey Welton 2015-03-31 03:00:18 UTC
Created attachment 1008759 [details]
screenshot

Comment 2 Corey Welton 2015-03-31 03:03:18 UTC
Created attachment 1008760 [details]
another screenshot

Screenshot with something selected.  Note that now, because of the off-by-one, even though something is selected, UI thinks there are zero and thus the button is grayed out.

Comment 4 Corey Welton 2015-03-31 03:27:04 UTC
Actually, this occurs in other places, too -- in the Activation Keys UI, for example, where user adds/removes repos from the key.

Comment 6 Christine Fouant 2015-05-18 17:17:20 UTC
Created redmine issue http://projects.theforeman.org/issues/10537 from this bug

Comment 7 Bryan Kearney 2015-05-28 16:05:22 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10537 has been closed
-------------
Christine Fouant
Applied in changeset commit:katello|254542f5bb82cf5fcf840b3d1a00664dd44541c0.

Comment 9 Tazim Kolhar 2015-06-09 08:56:31 UTC
VERIFIED:

# rpm -qa | grep foreman
ruby193-rubygem-foreman-tasks-0.6.12.7-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.6-1.el7sat.noarch
foreman-libvirt-1.7.2.26-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch
ibm-x3755-02.ovirt.rhts.eng.bos.redhat.com-foreman-proxy-1.0-1.noarch
foreman-gce-1.7.2.26-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-compute-1.7.2.26-1.el7sat.noarch
foreman-ovirt-1.7.2.26-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.14-1.el7sat.noarch
foreman-postgresql-1.7.2.26-1.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.14-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.15-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.2.0-6.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
foreman-proxy-1.7.2.5-1.el7sat.noarch
ibm-x3755-02.ovirt.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch
ibm-x3755-02.ovirt.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-vmware-1.7.2.26-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
foreman-1.7.2.26-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
foreman-debug-1.7.2.26-1.el7sat.noarch

steps:
1.  Add a bunch of different content to an AC; register a system using AC
2.  Hosts > Content Host > $hostname > Subscriptions
3.  Noting "List/Remove" is the default tab, choose the "Add" tab.
4.  Click an available item in "Add", but DO NOT click 'Add Selected'.  Instead, nav back to the "List/Remove" tab.
5.  Noting the "Remove Selected" button is (correctly) grayed out, immediately switch back to the "Add" Tab.
6.  Note the state of the "Add Selected" button; select/deselect any item on list

Comment 10 Bryan Kearney 2015-08-11 13:32:04 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 Bryan Kearney 2015-08-12 13:57:44 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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