Bug 1322594

Summary: service :dialog: Dynamic dropdown values are not loaded in dropdown unless refresh button is pressed
Product: Red Hat CloudForms Management Engine Reporter: Shveta <sshveta>
Component: UI - OPSAssignee: eclarizi
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5.0CC: dclarizi, gmccullo, hkataria, jhardy, mpovolny, obarenbo, simaishi, sshveta
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: service:dialog
Fixed In Version: 5.6.0.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:46:23 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 values
none
one
none
two none

Description Shveta 2016-03-30 20:19:27 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Shveta 2016-03-30 20:21:27 UTC
Steps : create a dialog with two dynamic drop down and auto-refresh checked for both.
Create a service that uses this dialog
Order service , dropdown shows "None" in values.
Press "refresh" and values are loaded and displayed

.
Build : 5.5.3.2.20160318152106_92d2d67

Comment 2 Shveta 2016-03-30 20:23:17 UTC
Created attachment 1141930 [details]
No values

Also, selecting value in first drop down does not auto-refresh values in second drop down .On hitting "refresh " again corresponding to first dropdown are displayed.

Comment 3 Shveta 2016-03-30 20:24:37 UTC
Created attachment 1141931 [details]
one

Comment 4 Shveta 2016-03-30 20:24:55 UTC
Created attachment 1141932 [details]
two

Comment 6 eclarizi 2016-03-31 15:39:10 UTC
This issue seems very similar to a combination of both of these:
https://bugzilla.redhat.com/show_bug.cgi?id=1321352
https://bugzilla.redhat.com/show_bug.cgi?id=1311306

Are we sure that this is a separate issue?

Comment 7 eclarizi 2016-04-04 16:33:01 UTC
Nevermind, I just realized that the above two BZs are related to the SSUI and this is not.

Shveta: Is the "load values on init" checkbox checked for both of these dialogs?

Comment 8 Shveta 2016-04-04 18:29:39 UTC
No , "load values on Init" was not checked . so one issue is resolved .
It does load value when that checkbox is checked.

But the values are not auto-refreshed in second dropdown when some value is selected in first dropdown.

Comment 9 eclarizi 2016-04-04 18:43:40 UTC
Ok, I think that second issue I reproduced the other day and wasn't related to any BZ before. I think this PR should fix it: https://github.com/ManageIQ/manageiq/pull/7696

Comment 10 eclarizi 2016-04-19 15:16:10 UTC
I think I was incorrect again on that previous PR.

*This* one should've be the fix: https://github.com/ManageIQ/manageiq/pull/7661. I think what was happening for you was that the first drop down was triggering the auto-refresh but it was happening simultaneously with the actual server update of that drop down.

Going to mark this as POST for now since I can't reproduce on the latest.

Comment 11 Shveta 2016-04-23 01:01:07 UTC
Fixed.
verified in 
5.6.0.4-beta2.3.20160421172650_719e256

Comment 13 errata-xmlrpc 2016-06-29 15:46:23 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-2016:1348