Bug 1309802 - "do not automatically refresh other fields" is not being honoured
Summary: "do not automatically refresh other fields" is not being honoured
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.5.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: 5.7.0
Assignee: eclarizi
QA Contact: Shveta
URL:
Whiteboard: service:dialog
Depends On:
Blocks: 1374422
TreeView+ depends on / blocked
 
Reported: 2016-02-18 18:11 UTC by Felix Dewaleyne
Modified: 2020-12-11 12:04 UTC (History)
9 users (show)

Fixed In Version: 5.7.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1374422 (view as bug list)
Environment:
Last Closed: 2017-01-11 20:18:39 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
dialog.yml (3.46 KB, text/x-vhdl)
2016-02-18 18:11 UTC, Felix Dewaleyne
no flags Details
dynamic_field.rb (394 bytes, text/plain)
2016-02-18 18:15 UTC, Felix Dewaleyne
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2481261 0 None None None 2016-08-02 06:57:48 UTC

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


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