Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1797091

Summary: specDescriptor urn:alm:descriptor:com.tectonic.ui:booleanSwitch does not default to false [openshift-4.1]
Product: OpenShift Container Platform Reporter: Robb Hamilton <rhamilto>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED DEFERRED QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.zCC: aos-bugs, bpeterse, jokerman, mdorn, yapei
Target Milestone: ---   
Target Release: 4.1.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1796634 Environment:
Last Closed: 2020-03-06 16:13:44 UTC Type: ---
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: 1796634, 1797086    
Bug Blocks:    

Description Robb Hamilton 2020-01-31 21:14:53 UTC
+++ This bug was initially created as a clone of Bug #1796634 +++

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.