Bug 1996902 - "Select all" checkbox on the "Namespaces" page of the "Migration plan" wizard remains selected after a namespace is unselected
Summary: "Select all" checkbox on the "Namespaces" page of the "Migration plan" wizard...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.6.0
Assignee: John Matthews
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-23 23:38 UTC by Ian
Modified: 2021-09-29 14:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-29 14:35:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1282 0 None None None 2021-08-23 23:40:14 UTC
Red Hat Product Errata RHSA-2021:3694 0 None None None 2021-09-29 14:35:12 UTC

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


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