Bug 1581387

Summary: Dynamic dropdown doesn't refresh correctly
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: eclarizi
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: cpelland, eclarizi, jprause, mkanoor, obarenbo, simaishi, smallamp, sshveta, tfitzger, tpapaioa
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.4   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.8.4.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1574668 Environment:
Last Closed: 2018-06-25 14:20:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1574668    
Bug Blocks:    
Attachments:
Description Flags
datastore
none
dialog none

Comment 2 Tina Fitzgerald 2018-05-23 19:30:03 UTC
Hi Satoe,
 
I talked to Erik about this issue and back porting the PRs merged for the original issue will not resolve this issue.

Thanks,
Tina

Comment 5 Shveta 2018-05-29 18:34:23 UTC
Fixed in master.20180525014609_98ef65d.

Comment 6 eclarizi 2018-06-01 07:18:17 UTC
So, I'm pretty sure that I have the necessary fix ready to go here: https://github.com/ManageIQ/manageiq-ui-classic/pull/4020 (it seems simple enough that the javascript refresh call is just being called too late).

In an example dialog I whipped up, it appears that when I change the first drop-down, the second responds properly, but I'm unable to import the datastore and dialog that was provided in the original BZ. Do we know if the customer has a valid 5.8 dialog they can reproduce this issue with that I can test with to ensure I didn't oversimplify my dialog?

Comment 7 CFME Bot 2018-06-01 16:19:11 UTC
New commit detected on ManageIQ/manageiq-ui-classic/fine:

https://github.com/ManageIQ/manageiq-ui-classic/commit/814b391962ed07ed86117f004dc133760ca48f31
commit 814b391962ed07ed86117f004dc133760ca48f31
Author:     Erik Clarizio <eclarizio>
AuthorDate: Fri Jun  1 02:56:33 2018 -0400
Commit:     Erik Clarizio <eclarizio>
CommitDate: Fri Jun  1 02:56:33 2018 -0400

    Ensure dropdown gets selectpicker refreshed after values set

    https://bugzilla.redhat.com/show_bug.cgi?id=1581387

 app/assets/javascripts/dialog_field_refresh.js | 2 +-
 spec/javascripts/dialog_field_refresh_spec.js | 6 +
 2 files changed, 7 insertions(+), 1 deletion(-)

Comment 8 Tasos Papaioannou 2018-06-04 15:25:26 UTC
Created attachment 1447538 [details]
datastore

Comment 9 Tasos Papaioannou 2018-06-04 15:25:58 UTC
Created attachment 1447539 [details]
dialog

Comment 10 Tasos Papaioannou 2018-06-04 15:28:55 UTC
I've attached datastore and dialog export files for 5.8. I was able to get the dynamic "network" dropdown's auto-refresh working on 5.8.4.2 and 5.8.4.3 if I have both of these options selected:

tenant:		Auto Refresh other fields when modified
network:	Auto refresh

Comment 11 Tasos Papaioannou 2018-06-12 17:31:11 UTC
Verified.

Comment 13 errata-xmlrpc 2018-06-25 14:20:46 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/RHSA-2018:1972