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 - OPS | Assignee: | Dan Clarizio <dclarizi> | ||||||||||||
Status: | CLOSED WONTFIX | QA Contact: | Dave Johnson <dajohnso> | ||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||
Priority: | medium | ||||||||||||||
Version: | 5.8.0 | CC: | 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
Shveta
2017-07-24 20:28:44 UTC
Created attachment 1303860 [details]
Default value selected in OPS UI
Created attachment 1303861 [details]
dialog values
Created attachment 1303862 [details] dialog Appliance : https://10.16.5.146/ui/service 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. A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/149888944 Allen deleted the linked story in Pivotal Tracker PR: https://github.com/ManageIQ/manageiq-ui-service/pull/867 (waiting for review) 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. Created attachment 1346282 [details]
dropdown default
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? (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. 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 |