Bug 1283733

Summary: Can't select items from dynamic dropdown
Product: Red Hat CloudForms Management Engine Reporter: Lynn Dixon <ldixon>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: amogh <amavinag>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: brjohnso, cmosher, cpelland, fdewaley, hkataria, jhardy, jocarter, jprause, kmorey, mfeifer, mpovolny, obarenbo, pmcgowan
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1287156 (view as bug list) Environment:
Last Closed: 2016-06-29 15:03:33 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:
Bug Depends On:    
Bug Blocks: 1287156    
Attachments:
Description Flags
Screenshot of dynamic dropdown
none
dynamic_dropdown_works none

Description Lynn Dixon 2015-11-19 16:57:53 UTC
Created attachment 1096802 [details]
Screenshot of dynamic dropdown

Description of problem:
Can't select an item from a dynamic dropdown.

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

How reproducible:
Create a service dialog containing a dynamic dropdown. Any entries to dynamic dropdown will not be selectable.

Steps to Reproduce:
1. Create service dialog containing a dynamic dropdown
2. Create catalog item with this service dialog
3. Order the catalog item, and attempt to select something from a dynamic dropdown

Actual results:
Can't select any items

Expected results:
Should be able to select item from drop down

Additional info:
Screen shot of resulting dynamic dropdown attached.

Comment 2 Harpreet Kataria 2015-11-24 22:54:50 UTC
Milan,

Can you look into this, looks like maybe drop down conversion issue. Let me know if you have questions.

Thanks,
~Harpreet

Comment 3 Milan Zázrivec 2015-11-25 16:46:00 UTC
https://github.com/ManageIQ/manageiq/pull/5600

Comment 5 CFME Bot 2015-12-02 19:44:27 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/0918a151f16b46370ab34c9d8245b86a1690ba4a

commit 0918a151f16b46370ab34c9d8245b86a1690ba4a
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Wed Nov 25 17:41:40 2015 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Wed Nov 25 21:49:03 2015 +0100

    Fix refresh of dynamic dropdown list
    
    Previous selector would incorrectly select two elements
    instead of one, i.e. in the end the updated options would
    be added to incorrect element.
    
    Also, after updating Bootstrap select, we need to 'refresh'
    it to pick up the changes.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283733

 app/assets/javascripts/dialog_field_refresh.js | 3 ++-
 spec/javascripts/dialog_field_refresh_spec.js  | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

Comment 6 Harpreet Kataria 2015-12-02 20:03:04 UTC
*** Bug 1287823 has been marked as a duplicate of this bug. ***

Comment 7 CFME Bot 2015-12-02 22:06:59 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/85b38af58f65e472d48bf475abf1e9b49a886243

commit 85b38af58f65e472d48bf475abf1e9b49a886243
Author:     Erik Clarizio <eclarizi>
AuthorDate: Tue Dec 1 11:39:48 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Wed Dec 2 12:25:47 2015 -0800

    Ensure the drop down list display gets refreshed
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283733

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

Comment 8 CFME Bot 2015-12-02 22:07:04 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/7c0dd00f2761261f9538702e043b707fd95b32ac

commit 7c0dd00f2761261f9538702e043b707fd95b32ac
Author:     Erik Clarizio <eclarizi>
AuthorDate: Wed Nov 25 15:40:17 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Wed Dec 2 12:25:47 2015 -0800

    Change DialogFieldDropDown javascript to behave with selectpicker
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283733

 app/assets/javascripts/dialog_field_refresh.js     |  1 +
 .../application_controller/dialog_runner.rb        | 10 +------
 .../dialogs/_dialog_field_drop_down_list.html.haml | 10 +++----
 .../application_controller/dialog_runner_spec.rb   | 33 ++++++++++++++++++++++
 spec/javascripts/dialog_field_refresh_spec.js      | 11 ++++++++
 5 files changed, 51 insertions(+), 14 deletions(-)

Comment 9 Dan Clarizio 2015-12-10 21:10:12 UTC
*** Bug 1290462 has been marked as a duplicate of this bug. ***

Comment 11 CFME Bot 2016-03-14 16:37:27 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=6ca21ab64d729744975913226ef62b715195c12e

commit 6ca21ab64d729744975913226ef62b715195c12e
Author:     Martin Hradil <mhradil>
AuthorDate: Fri Mar 11 15:11:15 2016 +0000
Commit:     Martin Hradil <mhradil>
CommitDate: Fri Mar 11 15:25:31 2016 +0000

    Change DialogFieldDropDown javascript to behave with selectpicker
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283733
    
    (cherry-picked relevant parts of 7c0dd00f27)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1311998

 app/controllers/application_controller/dialog_runner.rb | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

Comment 12 amogh 2016-04-27 20:38:45 UTC
Created attachment 1151620 [details]
dynamic_dropdown_works

Comment 13 amogh 2016-04-27 20:39:13 UTC
verified this bug in 5.6.0.4-beta2.3.20160421172650_719e256 and it is not reproducible. refer the "dynamic_dropdown_works" screenshot.

Comment 15 errata-xmlrpc 2016-06-29 15:03:33 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