Bug 1779894

Summary: "text" x-descriptors (both "specDescriptor" and "statusDescriptor") always shows "None" whenever the data is "True".
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, jokerman, yanpzhan
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the OLM `text` descriptor would display `None` in the OpenShift console for boolean values. The `text` descriptor now correctly displays boolean values.
Story Points: ---
Clone Of:
: 1780384 (view as bug list) Environment:
Version: 4.4.0-0.ci-2019-12-04-051457 Cluster ID: 73e38a63-0543-4277-9bd4-018c287764e8 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:71.0) Gecko/20100101 Firefox/71.0
Last Closed: 2020-05-04 11:18:31 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:
Bug Depends On:    
Bug Blocks: 1780384, 1784870, 1789903    

Description Samuel Padgett 2019-12-04 23:09:12 UTC
From https://jira.coreos.com/browse/CONSOLE-1926

Got reported this bug with "statusDescriptor".

It is noticed whenever the "text" x-descriptor's value is "True", UI would always render "None" instead of showing the actual content (i.e. "True").

After investigating the issues by Yu Zhao, it is found this issue is reproducible on both "specDescriptor" and  "statusDescriptor".

Reproducible Step:
1. assign "text" x-descriptor for "specDescriptor" or "statusDescriptor" in CSV

2. Actual field value is "True"

3. Operand's details view shows "None" but Operand's YAML shows the field value is "True"

Expected Behavior:
Operand's details view should display as "True" (accurately reflect the actual data).

Comment 2 Yanping Zhang 2019-12-16 07:51:46 UTC
Tested on ocp 4.3 with payload version 4.4.0-0.nightly-2019-12-14-103510, set value with "True" for text x-descriptors in specDescriptors and statusDescriptors, then create instance, check on the instance detail page, the value "True" is correctly set.
          - description: spec  test
            displayName: SSPPEECCTT  TTEESSTT
            path: tteesstt
            value: 'True'
              - 'urn:alm:descriptor:text'
          - description: status  test
            displayName: STATUS  TTEESSTT
            path: test
            value: 'True'
              - 'urn:alm:descriptor:text'

The bug is fixed, so move it to Verified.

Comment 4 errata-xmlrpc 2020-05-04 11:18:31 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.