Bug 1796634

Summary: specDescriptor urn:alm:descriptor:com.tectonic.ui:booleanSwitch does not default to false [openshift-4.2]
Product: OpenShift Container Platform Reporter: Matt Dorn <mdorn>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, bpeterse, jokerman, yanpzhan
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1797086 1797091 (view as bug list) Environment:
Last Closed: 2020-03-04 04:51:02 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:
Bug Depends On: 1797086    
Bug Blocks: 1797091    

Description Matt Dorn 2020-01-30 19:50:07 UTC
Description of problem:
In OpenShift 4.2, use of urn:alm:descriptor:com.tectonic.ui:booleanSwitch does not default to false as detailed here:

https://github.com/openshift/console/blob/master/frontend/packages/operator-lifecycle-manager/src/components/descriptors/reference/reference.md#4-booleanswitch

It will default to true.

Using specDescriptors.value = [false] will also show true.

Using specDescriptors.value = "false" in 4.2 will show false, but this is a mis-use of this field as it should only accept type byte rawJson. This will be enforced in OCP 4.4

See https://bugzilla.redhat.com/show_bug.cgi?id=1794580 for more information.

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

How reproducible:

Install CSV with booleanSwitch, example:

      specDescriptors:
      - description: A description of this switch
        displayName: Paused
        path: paused
        x-descriptors:
        - urn:alm:descriptor:com.tectonic.ui:booleanSwitch

Expected result:

Should default to false as specified in docs

Additional Information:
This issue does not occur on 4.3 and 4.4.

Comment 3 Yanping Zhang 2020-02-24 07:44:11 UTC
Tested on ocp 4.2 env with payload: 4.2.0-0.nightly-2020-02-23-045604.
Install etcd operator in project, then in crd add description for etcd cluster with example below, then create etcd cluster cvs. Check on the csv detail page, the "Paused" boolean value is "false" by default.
      - description: A description of this switch
        displayName: Paused
        path: paused
        x-descriptors:
        - urn:alm:descriptor:com.tectonic.ui:booleanSwitch

The bug is fixed, so move it to Verified.

Comment 5 errata-xmlrpc 2020-03-04 04:51:02 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, 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/RHBA-2020:0614