Bug 1996902

Summary: "Select all" checkbox on the "Namespaces" page of the "Migration plan" wizard remains selected after a namespace is unselected
Product: Migration Toolkit for Containers Reporter: Ian <ibolton>
Component: UIAssignee: John Matthews <jmatthew>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: unspecified Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 1.6.0CC: ernelson, rjohnson, sregidor
Target Milestone: ---   
Target Release: 1.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-29 14:35:03 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:

Description Ian 2021-08-23 23:38:49 UTC
Description of problem:

When selecting all items in the namespaces table or the state migration table, deselecting an item causes the ui to be left in a broken state. 
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Select all in the namespaces/state migrations table
2.deselect an item from the list
3.Observe that the select all checkbox is still checked. 

Actual results:
The select all checkbox is still selected when unselecting an item from the list 
Expected results:
Select all state should be unselected after unselecting an item from the list.


Additional info:

Comment 5 Sergio 2021-08-30 16:02:20 UTC
Verified using:
AWS OCP3.11(MTC 1.5.1) -> AWS OCP4.9(MTC 1.6.0)

openshift-migration-rhel7-operator@sha256:0d695a342a439e751fe7473b24a21eeca4cd5dc584253ad0f567762448cbda37
    - name: MIG_CONTROLLER_REPO
      value: openshift-migration-controller-rhel8@sha256
    - name: MIG_CONTROLLER_TAG
      value: d1bb94853b42abef96ec2c63600ebac41b0163d88fc25571f7b40c6c1d2f8c40
    - name: MIG_UI_REPO
      value: openshift-migration-ui-rhel8@sha256
    - name: MIG_UI_TAG
      value: 3e46187b2ff8c76c4022b418631d07eb40a347d15012d061c079e643a4188b6d


When we unselect an item after using "select all", the "select all" item is unchecked.


Apart from the "select all" item, all items will be unselected too.

This describes the current behavior:
Two namespaces A and B

1- check "select all" -> A and B are checked
2- uncheck A ->  "select all" is unchecked AND B is unchecked too


Since the bug is fixed (now when we uncheck an item "select all" is unchecked) we move the status to VERIFIED.

Comment 7 errata-xmlrpc 2021-09-29 14:35:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3694