Bug 1474517

Summary: SUI: Drop Down List Dialog does not keep default value for Integer type
Product: Red Hat CloudForms Management Engine Reporter: Shveta <sshveta>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: cpelland, dclarizi, hkataria, jhardy, mpovolny, obarenbo, simaishi, sshveta
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-11 16:53:41 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:
Attachments:
Description Flags
No default value
none
Default value selected in OPS UI
none
dialog values
none
dialog
none
dropdown default none

Description Shveta 2017-07-24 20:28:44 UTC
Created attachment 1303859 [details]
No default value

Description of problem:This bug is same as 
https://bugzilla.redhat.com/show_bug.cgi?id=1468370 but for SUI .


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

How reproducible:


Steps to Reproduce:
1. OPS UI shows the default value saved in the dialog.
2. Order the catalog item in SUI , the default value is not displayed.
3. "Choose" option is also not selected .

Actual results:


Expected results:


Additional info:

Comment 2 Shveta 2017-07-24 20:30:09 UTC
Created attachment 1303860 [details]
Default value selected in OPS UI

Comment 3 Shveta 2017-07-24 20:31:05 UTC
Created attachment 1303861 [details]
dialog values

Comment 4 Shveta 2017-07-24 20:31:52 UTC
Created attachment 1303862 [details]
dialog

Appliance : https://10.16.5.146/ui/service

Comment 5 Chris Hale 2017-07-24 21:49:10 UTC
This issue is actually addressed in the dialog system rewrite.   https://bugzilla.redhat.com/show_bug.cgi?id=1466340.  I will update this ticket once that one is completed and integrated into SUI.

Comment 6 Chris Kacerguis 2017-08-02 15:30:22 UTC
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/149888944

Comment 7 Chris Kacerguis 2017-08-02 15:31:56 UTC
Allen deleted the linked story in Pivotal Tracker

Comment 8 Chris Kacerguis 2017-08-09 17:32:18 UTC
PR: https://github.com/ManageIQ/manageiq-ui-service/pull/867

(waiting for review)

Comment 9 Shveta 2017-11-01 04:10:39 UTC
Default values is displayed in dropdown but on clicking on the dropdown, the default value is gone and field desc is shown instead . See attached screenshot.

I can open a separate BZ for this if required.

Comment 10 Shveta 2017-11-01 04:11:07 UTC
Created attachment 1346282 [details]
dropdown default

Comment 11 Chris Kacerguis 2017-11-02 10:51:28 UTC
So, it looks like the target release is 5.9 and I believe that we have already fixed this in 5.9.  Would you be able to test on a 5.9 box?

Comment 14 Shveta 2017-11-06 19:18:36 UTC
(In reply to Chris Kacerguis from comment #11)
> So, it looks like the target release is 5.9 and I believe that we have
> already fixed this in 5.9.  Would you be able to test on a 5.9 box?

This observation is on 5.9.

Comment 15 Chris Hale 2017-11-10 21:14:15 UTC
I took a deeper look at this issue and here is what I did.  
I went into the sample dialog and changed the value type to "Integer"
.  
I then set a default value to "2"
The behavior I noticed in the API is that the API returned a string "[\"2\",\"2\"]".   The API should be returning a simple integer of 2 not a string representation of an array.  I believe this might not be and issue with the API but more of an issue with the Dialog editor sending back an array when it should be sending a integer as the default_value.  I am going to have someone from the Classic UI team take a look and see if it is an issue with editing of dialogs