Bug 1309802

Summary: "do not automatically refresh other fields" is not being honoured
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ProvisioningAssignee: eclarizi
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: eclarizi, fdewaley, jhardy, kmorey, ngupta, nstephan, obarenbo, simaishi, sshveta
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: All   
OS: All   
Whiteboard: service:dialog
Fixed In Version: 5.7.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1374422 (view as bug list) Environment:
Last Closed: 2017-01-11 20:18:39 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:
Bug Depends On:    
Bug Blocks: 1374422    
Attachments:
Description Flags
dialog.yml
none
dynamic_field.rb none

Description Felix Dewaleyne 2016-02-18 18:11:32 UTC
Created attachment 1128290 [details]
dialog.yml

Description of problem:
a dialog holding several dynamic flags does not honor the "Auto Refresh other fields when modified " flag

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

How reproducible:
all the time

Steps to Reproduce:
1. create a form following the directives under additional info
2. call the dialog
3. refresh field 2

Actual results:
the other fields are refreshed


Expected results:
the other fields are not refreshed

Additional info:
Create a form with three dropdown fields
- First field is the trigger (so the option "Auto Refresh other fields when modified" is checked)
- Second field is a non-trigger dropdown (so the option "Auto Refresh other fields when modified" is unchecked)
- Third field is a dynamic field with the option "Auto refresh" checked

dialog also in attachemnt

Comment 2 Felix Dewaleyne 2016-02-18 18:15:02 UTC
Created attachment 1128291 [details]
dynamic_field.rb

method used to manipulate fields

Comment 6 CFME Bot 2016-08-23 13:25:49 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/a96950d779691973d9246405bc04543279bb62d9

commit a96950d779691973d9246405bc04543279bb62d9
Author:     Erik Clarizio <eclarizi>
AuthorDate: Fri Aug 19 14:00:54 2016 -0700
Commit:     Erik Clarizio <eclarizi>
CommitDate: Fri Aug 19 14:01:56 2016 -0700

    Pass 'trigger_auto_refresh' property into initializeDialogSelectPicker
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1309802

 app/views/shared/dialogs/_dialog_field_drop_down_list.html.haml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comment 8 Shveta 2016-09-19 23:49:41 UTC
Please check https://10.8.199.137. 
Catalog item RZjOSKp6eE .
Values in static drop down does not refresh on selecting values in "trigger" dropdown.

Comment 9 eclarizi 2016-09-20 15:37:18 UTC
It looks like it's working to me? The first drop down should trigger updates on the third, which it does. The second is a static drop down and will always have those values, it should never update because it's not dynamic. It also doesn't trigger any auto-refreshes, and when choosing values from it, the third option does not update which is also correct.

Can you walk me through the steps you're taking and the behavior you're expecting to see?

Comment 10 Shveta 2016-09-20 17:18:48 UTC
Got it . I didn't see the values changed in third dropdown.
I was thinking that the value selected will change .
Verifying .
Build : 5.7.0.0.20160906172503_12f65cb