Bug 1832927

Summary: Select descriptor is not working on create operand form
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1832933 (view as bug list) Environment:
Last Closed: 2020-07-13 17:35:55 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:    
Bug Blocks: 1832933    
Attachments:
Description Flags
mock csv with select descriptor
none
mock crd with 'select' schema property
none
select descriptor is showing as dropdown none

Description Jon Jackson 2020-05-07 14:00:44 UTC
Created attachment 1686182 [details]
mock csv with select descriptor

Description of problem:
A dropdown component should be rendered for fields with 'select' descriptors defined. Instead, a standard text field is being rendered.

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

How reproducible:
Always

Steps to Reproduce:
1. Create a new project named 'test' 
2. Create csv and crd from provided json attachments (oc create -f crd.json,csv.json)
3. Navigate to Operators. > Installed Operators
4. Select "Mock Select Operator" from the list of installed operators
5. On the details page, under Provided APIs, click "Create Instance" in the Mock Select Resource card.
6. Click "Edit Form" in the top right
7. Look for the "Descriptor Generated Select" field

Actual results:
The field is a standard text input


Expected results:
The field is a dropdown with options "DEBUG",  "INFO", "WARN", "ERROR", and "FATAL"


Additional info:
This bug has already been resolved in 4.5 and is only being created so that a fix can be backported to 4.4.z

Comment 1 Jon Jackson 2020-05-07 14:02:40 UTC
Created attachment 1686189 [details]
mock crd with 'select' schema property

Comment 2 Jon Jackson 2020-05-07 14:04:18 UTC
Resolved in 4.5 by https://github.com/openshift/console/pull/4944

Comment 3 Yadan Pei 2020-05-08 05:55:54 UTC
Created attachment 1686377 [details]
select descriptor is showing as dropdown

Follow exactly the steps in bug description, now 'Descriptor Generated Select' field is shown as dropdown, it has values: DEBUG,INFO,WARN,ERROR,FATAL

Verified on 4.5.0-0.nightly-2020-05-07-144853

Comment 5 errata-xmlrpc 2020-07-13 17:35:55 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:2409