Bug 1631957

Summary: cannot select ALL erratas to content hosts, only one PAGE of erratas AT A TIME [6.3]
Product: Red Hat Satellite Reporter: Reartes Guillermo <greartes>
Component: Errata ManagementAssignee: sat6-team-ux <sat6-team-ux>
Status: CLOSED DUPLICATE QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.3CC: asonmez, dchaudha, jacquemaire.djokam, jalviso, walden
Target Milestone: UnspecifiedKeywords: PrioBumpQA, Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-21 18:05:48 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:
Attachments:
Description Flags
content host selection
none
content host selection 2
none
first page of erratas
none
first page of erratas, selected
none
first page of erratas, bottom
none
second page, top, in the red circle, the problematic already selected checkbox
none
foreman-debug none

Description Reartes Guillermo 2018-09-22 14:35:21 UTC
Description of problem:

In HOSTS -> CONTENT HOSTS, when selecting hosts and trying to apply all installable erratas (with SELECT ACTION -> Manage Errata, with selected hosts) one cannot select all erratas.
Normally there are around 300 erratas on a new installed system. One can increase the page size up to 100 elements. That makes the minimum of 3 pages possible.
The issue if that selecting the total checkbox, it selects ONLY the current page.
When one switches to the NEXT PAGE, the selected items are KEPT SELECTED (that is OK) but the total checkbox is ALREADY SELECTED, so it deselects the previous page when clicked.
IF one selects any other errata individually on the next page, it adds up to the total. Currently it is not possible to select x content hosts and apply ALL erratas to them with this issue.

Version-Release number of selected component (if applicable):
6.3.3

How reproducible:
always

Steps to Reproduce:
1. Go to HOSTS -> CONTENT HOSTS
2. Select HOSTS to apply errata (EXAMPLE:  lifecycle_environment =  PRE-PROD) 
3. In the example i selected a test content host (the only one in PRE-PROD lifecycle_environment)
4. Click Select Action ->  MANAGE ERRATA
5. Click the page total checkbox, all page erratas are selected (using 100 page results, best case [default=20]) 100/300 selected. (OK)
6. Go to the bottom of the page ... (scroll down... why?)
7. Go to next page
8. Go to the top of the page ... (scroll up ... why?)
9. One will find the page total checkbox ALREADY checked instead of not checked...
10. Clicking it will UN-select the previous errata selected from the previous pages.... 

Actual results:
When selecting which errata to apply to selected content hosts, one cannot select ALL erratas in ONE CLICK.
When going to the next page, the total checkbox is KEEPT SELECTED instead of NOT SELECTED, so you cannot click it again to add the page to the total.

Expected results:
Having ONE SUPER-TOTAL checkbox for ALL erratas (currently this does not exists)
Fix the PAGE TOTAL checkbox behavior when switching pages so that one can add at least the current page erratas to the total. (this is not working/bugged)

Additional info:

See attached screenshots.

Comment 1 Reartes Guillermo 2018-09-22 14:36:02 UTC
Created attachment 1485965 [details]
content host selection

Comment 2 Reartes Guillermo 2018-09-22 14:37:08 UTC
Created attachment 1485966 [details]
content host selection 2

Comment 3 Reartes Guillermo 2018-09-22 14:37:31 UTC
Created attachment 1485967 [details]
first page of erratas

Comment 4 Reartes Guillermo 2018-09-22 14:37:57 UTC
Created attachment 1485968 [details]
first page of erratas, selected

Comment 5 Reartes Guillermo 2018-09-22 14:38:21 UTC
Created attachment 1485969 [details]
first page of erratas, bottom

Comment 6 Reartes Guillermo 2018-09-22 14:39:59 UTC
Created attachment 1485970 [details]
second page, top, in the red circle, the problematic already selected checkbox

one cannot add ALL the page erratas.
Clicking the red circled checkbox will UNSELECT the previous page instead of SELECTING and ADDING this page to the total.

If one select any individual erratas, they ARE ADDED to the total

Comment 7 Reartes Guillermo 2018-09-22 14:56:18 UTC
Created attachment 1485990 [details]
foreman-debug

Comment 8 Brad Buckingham 2018-09-24 18:48:57 UTC
*** Bug 1631960 has been marked as a duplicate of this bug. ***

Comment 9 Brad Buckingham 2018-09-24 19:05:11 UTC
The behavior described here is similar to bug 1405528; however, the difference is:
- bug 1405528 is related to the behavior on a single content host (e.g. select the host and then errata)
- this bug is related to the 'Manage Errata' which may be used when managing multiple hosts at once.


Assigning this one over to the UI team as this behavior may impact multiple scenarios and may have been introduced through a combination of removal of nutupane and infinite scroll.

Comment 14 Walden Raines 2019-08-16 22:00:51 UTC
Created redmine issue https://projects.theforeman.org/issues/27648 from this bug

Comment 15 Walden Raines 2019-08-21 18:05:48 UTC
Duplicate of bug #1405528.

*** This bug has been marked as a duplicate of bug 1405528 ***