Bug 1428171 - Service requests show none with "refresh" buttons instead of selected values
Summary: Service requests show none with "refresh" buttons instead of selected values
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: GA
: 5.8.0
Assignee: eclarizi
QA Contact: Shveta
URL:
Whiteboard:
Depends On:
Blocks: 1431842
TreeView+ depends on / blocked
 
Reported: 2017-03-01 23:54 UTC by tachoi
Modified: 2020-04-15 15:25 UTC (History)
11 users (show)

Fixed In Version: 5.8.0.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1431842 (view as bug list)
Environment:
Last Closed: 2017-06-12 17:10:50 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description tachoi 2017-03-01 23:54:13 UTC
Description of problem:
- CFME 4.2(CFME 5.7.0.17)
- Service requests show "refresh" buttons instead of values
- The "Dialog Options" section shows the value "<None>", with the "Refresh" button next to it, and not the value that the user selected.
- The "Dialog Options" section shows the values that the user selected from the service dialog

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

How reproducible:


Steps to Reproduce:
(1) Create a service dialog with a dynamic drop-down, and add a "refresh" button
(2) Create a service catalog item that uses the dialog
(3) Request the service from the catalog, select "refresh" for each drop-down, and select the value. 
(4) Submit the catalog item.
(5) Select "Services" -> "Requests", and select the new request

Actual results:
The "Dialog Options" section shows the value "<None>", with the "Refresh" button next to it, and not the value that the user selected

Expected results:
The "Dialog Options" section shows the values that the user selected from the service dialog

Additional info:
In case service dialog use a careful combination of "auto-refresh" and "refresh others", that is "don't use manual refresh" anywhere, the issue goes away. but this can't be an option for this business purpose.

Comment 6 Chris Kacerguis 2017-03-02 15:04:04 UTC
Dan, this looks to be classic UI not service UI.  Sending to you.  If I am wrong, please feel free to send back :)

Comment 7 Greg McCullough 2017-03-02 21:24:42 UTC
Erik - This is happening on the static view of the dialog when looking at the request.  Would suggest reaching out to Harpreet if you need help on this.

Comment 10 eclarizi 2017-03-06 18:30:15 UTC
Hi Taeho, yeah, it looks to just be a UI issue, the actual data that is sent is correct. The logic currently instead of just supplying the UI with the correct values it is running through a lot of extraneous steps and is actually causing the dialog to go through a fake run. I'm working on decoupling this implementation.

Comment 16 CFME Bot 2017-03-13 15:56:08 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/ff6d20cc3a50b51e6dfc5eb7059c750909a1df9c

commit ff6d20cc3a50b51e6dfc5eb7059c750909a1df9c
Author:     Erik Clarizio <eclarizi>
AuthorDate: Tue Mar 7 09:18:07 2017 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Tue Mar 7 10:11:12 2017 -0800

    Use given values when running through a dialog for a request review
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1428171

 app/models/dialog.rb                         |  6 ++++++
 app/models/resource_action_workflow.rb       | 10 ++++++---
 spec/models/dialog_spec.rb                   | 23 ++++++++++++++++++++
 spec/models/resource_action_workflow_spec.rb | 32 ++++++++++++++++++++++++++++
 4 files changed, 68 insertions(+), 3 deletions(-)

Comment 17 CFME Bot 2017-03-13 15:56:14 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/80f76e92065ea47a3ae24cc5a11dbfc10e74ebcf

commit 80f76e92065ea47a3ae24cc5a11dbfc10e74ebcf
Author:     Erik Clarizio <eclarizi>
AuthorDate: Wed Mar 8 08:38:45 2017 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Wed Mar 8 08:47:33 2017 -0800

    Change 'request_view' option to 'display_view_only'
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1428171

 app/models/resource_action_workflow.rb       |  2 +-
 spec/models/resource_action_workflow_spec.rb | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

Comment 19 CFME Bot 2017-03-13 20:22:47 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/133a3f5a2a088dbefc9db3b440c67383fee7da28

commit 133a3f5a2a088dbefc9db3b440c67383fee7da28
Author:     Erik Clarizio <eclarizio>
AuthorDate: Tue Mar 7 09:18:59 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Tue Mar 7 09:18:59 2017 -0800

    Utilize new option "request_view" to force values to be used in review
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1428171

 app/views/miq_request/_st_prov_show.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 20 CFME Bot 2017-03-13 20:22:53 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/0d59c183650db6fdece9ac9b288267821b608a6b

commit 0d59c183650db6fdece9ac9b288267821b608a6b
Author:     Erik Clarizio <eclarizio>
AuthorDate: Tue Mar 7 14:35:53 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Wed Mar 8 08:46:20 2017 -0800

    Use "<None>" for a nil drop down, otherwise the supplied value
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1428171

 app/views/shared/dialogs/_dialog_field_drop_down_list.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 21 CFME Bot 2017-03-13 20:23:00 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/cea90f0498cba305fa4545b7b6e6441dd2eb8cc3

commit cea90f0498cba305fa4545b7b6e6441dd2eb8cc3
Author:     Erik Clarizio <eclarizio>
AuthorDate: Wed Mar 8 08:38:13 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Wed Mar 8 08:47:20 2017 -0800

    Change 'request_view' option to 'display_view_only'
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1428171

 app/views/miq_request/_st_prov_show.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 25 eclarizi 2017-04-17 16:03:44 UTC
Clearing needsinfo since this is past POST and ON_QA

Comment 26 Shveta 2017-05-02 04:59:39 UTC
Fixed .
Verified in 5.8.0.12-rc1.20170425180304_4f35996


Note You need to log in before you can comment on or make changes to this bug.