Bug 1832927 - Select descriptor is not working on create operand form
Summary: Select descriptor is not working on create operand form
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Yadan Pei
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1832933
TreeView+ depends on / blocked
 
Reported: 2020-05-07 14:00 UTC by Jon Jackson
Modified: 2020-07-13 17:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1832933 (view as bug list)
Environment:
Last Closed: 2020-07-13 17:35:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
mock csv with select descriptor (2.15 KB, text/plain)
2020-05-07 14:00 UTC, Jon Jackson
no flags Details
mock crd with 'select' schema property (688 bytes, text/plain)
2020-05-07 14:02 UTC, Jon Jackson
no flags Details
select descriptor is showing as dropdown (335.77 KB, image/png)
2020-05-08 05:55 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:36:12 UTC

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


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