Bug 1706693 - Dynamic Field becomes blank on clicking on Refresh button in Service dialog
Summary: Dynamic Field becomes blank on clicking on Refresh button in Service dialog
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.10.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.11.0
Assignee: eclarizi
QA Contact: Niyaz Akhtar Ansari
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1710578
TreeView+ depends on / blocked
 
Reported: 2019-05-06 06:11 UTC by Rahul Chincholkar
Modified: 2019-12-13 15:09 UTC (History)
11 users (show)

Fixed In Version: 5.11.0.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1710578 (view as bug list)
Environment:
Last Closed: 2019-12-13 15:09:55 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Service_in_version_5.9.6.5.png (24.43 KB, image/png)
2019-05-06 06:12 UTC, Rahul Chincholkar
no flags Details
Service_in_version_5.10.3.3.png (23.57 KB, image/png)
2019-05-06 06:12 UTC, Rahul Chincholkar
no flags Details

Description Rahul Chincholkar 2019-05-06 06:11:00 UTC
Description of problem:

Service dialog where refresh button is used, after clicking on it, Dynamic field becomes blank. 
Moreover similar behavior takes place in dialog fields which have reference to other
dynamic fields with option 'Fields to refresh'.

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

How reproducible:
Always



The service dialog is working in earlier version (CFME 5.9.6.5), screenshot is attached ( Service_in_version_5.9.6.5.png )
Following log snippet is captured when each refresh button clicked and the Method Values are returned as expected
~~~
Version : 5.9.6.5

[----] I, [2019-05-06T01:39:59.190281 #2228:443cb74]  INFO -- : User [admin] with current group ID [2] name [EvmGroup-super_administrator]
[----] I, [2019-05-06T01:39:59.192206 #2228:443cb74]  INFO -- : Instantiating [/General/CustomMethods/DialogTest1?MiqServer%3A%3Amiq_server=232&ServiceTemplate%3A%3Aservice_template=42&User%3A%3Auser=1&dialog_var_1=test11&dialog_var_2=test123&dialog_var_2_var_3=test123_test123&dialog_var_3=test123&object_name=DialogTest1&vmdb_object_type=service_template]
[----] I, [2019-05-06T01:39:59.204561 #2228:443cb74]  INFO -- : Updated namespace [/General/CustomMethods/DialogTest1?MiqServer%3A%3Amiq_server=232&ServiceTemplate%3A%3Aservice_template=42&User%3A%3Auser=1&dialog_var_1=test11&dialog_var_2=test123&dialog_var_2_var_3=test123_test123&dialog_var_3=test123&object_name=DialogTest1&vmdb_object_type=service_template  Local/General]
[----] I, [2019-05-06T01:39:59.233834 #2228:443cb74]  INFO -- : Updated namespace [General/CustomMethods/dialogtest1  Local/General]
[----] I, [2019-05-06T01:39:59.240255 #2228:443cb74]  INFO -- : Invoking [inline] method [/Local/General/CustomMethods/DialogTest1] with inputs [{}]
[----] I, [2019-05-06T01:39:59.241889 #2228:443cb74]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest1]> Starting 
[----] I, [2019-05-06T01:39:59.585056 #2228:5a63934]  INFO -- : <AEMethod dialogtest1> !!! Method1 value = test11 !!!
[----] I, [2019-05-06T01:39:59.606526 #2228:443cb74]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest1]> Ending
[----] I, [2019-05-06T01:39:59.606684 #2228:443cb74]  INFO -- : Method exited with rc=MIQ_OK


[----] I, [2019-05-06T01:41:28.476471 #2228:443cef8]  INFO -- : User [admin] with current group ID [2] name [EvmGroup-super_administrator]
[----] I, [2019-05-06T01:41:28.478317 #2228:443cef8]  INFO -- : Instantiating [/General/CustomMethods/DialogTest2?MiqServer%3A%3Amiq_server=232&ServiceTemplate%3A%3Aservice_template=42&User%3A%3Auser=1&dialog_var_1=test11&dialog_var_2=test11&dialog_var_2_var_3=test123_test123&dialog_var_3=test123&object_name=DialogTest2&vmdb_object_type=service_template]
[----] I, [2019-05-06T01:41:28.489515 #2228:443cef8]  INFO -- : Updated namespace [/General/CustomMethods/DialogTest2?MiqServer%3A%3Amiq_server=232&ServiceTemplate%3A%3Aservice_template=42&User%3A%3Auser=1&dialog_var_1=test11&dialog_var_2=test11&dialog_var_2_var_3=test123_test123&dialog_var_3=test123&object_name=DialogTest2&vmdb_object_type=service_template  Local/General]
[----] I, [2019-05-06T01:41:28.517484 #2228:443cef8]  INFO -- : Updated namespace [General/CustomMethods/dialogtest2  Local/General]
[----] I, [2019-05-06T01:41:28.523317 #2228:443cef8]  INFO -- : Invoking [inline] method [/Local/General/CustomMethods/DialogTest2] with inputs [{}]
[----] I, [2019-05-06T01:41:28.524410 #2228:443cef8]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest2]> Starting 
[----] I, [2019-05-06T01:41:28.987333 #2228:de85c8]  INFO -- : <AEMethod dialogtest2> !!! Method2  value = test11 !!!
[----] I, [2019-05-06T01:41:29.007791 #2228:443cef8]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest2]> Ending
[----] I, [2019-05-06T01:41:29.007882 #2228:443cef8]  INFO -- : Method exited with rc=MIQ_OK


[----] I, [2019-05-06T01:41:52.674699 #2228:443c674]  INFO -- : User [admin] with current group ID [2] name [EvmGroup-super_administrator]
[----] I, [2019-05-06T01:41:52.676333 #2228:443c674]  INFO -- : Instantiating [/General/CustomMethods/DialogTest3?MiqServer%3A%3Amiq_server=232&ServiceTemplate%3A%3Aservice_template=42&User%3A%3Auser=1&dialog_var_1=test11&dialog_var_2=test11&dialog_var_2_var_3=test123_test123&dialog_var_3=test11&object_name=DialogTest3&vmdb_object_type=service_template]
[----] I, [2019-05-06T01:41:52.686987 #2228:443c674]  INFO -- : Updated namespace [/General/CustomMethods/DialogTest3?MiqServer%3A%3Amiq_server=232&ServiceTemplate%3A%3Aservice_template=42&User%3A%3Auser=1&dialog_var_1=test11&dialog_var_2=test11&dialog_var_2_var_3=test123_test123&dialog_var_3=test11&object_name=DialogTest3&vmdb_object_type=service_template  Local/General]
[----] I, [2019-05-06T01:41:52.710071 #2228:443c674]  INFO -- : Updated namespace [General/CustomMethods/dialogtest3  Local/General]
[----] I, [2019-05-06T01:41:52.715028 #2228:443c674]  INFO -- : Invoking [inline] method [/Local/General/CustomMethods/DialogTest3] with inputs [{}]
[----] I, [2019-05-06T01:41:52.716125 #2228:443c674]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest3]> Starting 
[----] I, [2019-05-06T01:41:53.041345 #2228:549483c]  INFO -- : <AEMethod dialogtest3> !!! Method3 value = test11_test11 !!!
[----] I, [2019-05-06T01:41:53.063847 #2228:443c674]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest3]> Ending
[----] I, [2019-05-06T01:41:53.063979 #2228:443c674]  INFO -- : Method exited with rc=MIQ_OK
~~~


However, in latest CFME version 5.10.3.3. the same service dialog does not work as expected, returns the black values as seen in the screenshot ( Service_in_version_5.10.3.3.png )
Following log snipped from show the Method2 and Method3 values are blank.
~~~
Version : 5.10.3.3

[----] I, [2019-05-06T01:44:19.430713 #14634:a05820]  INFO -- : User [admin] with current group ID [1000000000002] name [EvmGroup-super_administrator]
[----] I, [2019-05-06T01:44:19.432236 #14634:a05820]  INFO -- : Instantiating [/General/CustomMethods/DialogTest1?MiqServer%3A%3Amiq_server=1000000000001&ServiceTemplate%3A%3Aservice_template=1000000000001&User%3A%3Auser=1000000000001&dialog_var_1=test11&dialog_var_2=test1&dialog_var_2_var_3=test1_test1&dialog_var_3=test1&object_name=DialogTest1&vmdb_object_type=service_template]
[----] I, [2019-05-06T01:44:19.440931 #14634:a05820]  INFO -- : Updated namespace [/General/CustomMethods/DialogTest1?MiqServer%3A%3Amiq_server=1000000000001&ServiceTemplate%3A%3Aservice_template=1000000000001&User%3A%3Auser=1000000000001&dialog_var_1=test11&dialog_var_2=test1&dialog_var_2_var_3=test1_test1&dialog_var_3=test1&object_name=DialogTest1&vmdb_object_type=service_template  Local/General]
[----] I, [2019-05-06T01:44:19.462909 #14634:a05820]  INFO -- : Updated namespace [General/CustomMethods/dialogtest1  Local/General]
[----] I, [2019-05-06T01:44:19.467808 #14634:a05820]  INFO -- : Invoking [inline] method [/Local/General/CustomMethods/DialogTest1] with inputs [{}]
[----] I, [2019-05-06T01:44:19.468852 #14634:a05820]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest1]> Starting 
[----] I, [2019-05-06T01:44:19.799813 #14634:957978]  INFO -- : <AEMethod dialogtest1> !!! Method1 value = test11 !!!
[----] I, [2019-05-06T01:44:19.821034 #14634:a05820]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest1]> Ending
[----] I, [2019-05-06T01:44:19.821149 #14634:a05820]  INFO -- : Method exited with rc=MIQ_OK


[----] I, [2019-05-06T01:45:02.199606 #14634:a00028]  INFO -- : User [admin] with current group ID [1000000000002] name [EvmGroup-super_administrator]
[----] I, [2019-05-06T01:45:02.201194 #14634:a00028]  INFO -- : Instantiating [/General/CustomMethods/DialogTest2?MiqServer%3A%3Amiq_server=1000000000001&ServiceTemplate%3A%3Aservice_template=1000000000001&User%3A%3Auser=1000000000001&dialog_var_1=test11&dialog_var_2_var_3=test1_test1&dialog_var_3=test1&object_name=DialogTest2&vmdb_object_type=service_template]
[----] I, [2019-05-06T01:45:02.210449 #14634:a00028]  INFO -- : Updated namespace [/General/CustomMethods/DialogTest2?MiqServer%3A%3Amiq_server=1000000000001&ServiceTemplate%3A%3Aservice_template=1000000000001&User%3A%3Auser=1000000000001&dialog_var_1=test11&dialog_var_2_var_3=test1_test1&dialog_var_3=test1&object_name=DialogTest2&vmdb_object_type=service_template  Local/General]
[----] I, [2019-05-06T01:45:02.234239 #14634:a00028]  INFO -- : Updated namespace [General/CustomMethods/dialogtest2  Local/General]
[----] I, [2019-05-06T01:45:02.239314 #14634:a00028]  INFO -- : Invoking [inline] method [/Local/General/CustomMethods/DialogTest2] with inputs [{}]
[----] I, [2019-05-06T01:45:02.240388 #14634:a00028]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest2]> Starting 
[----] I, [2019-05-06T01:45:02.535713 #14634:5d57a28]  INFO -- : <AEMethod dialogtest2> !!! Method2  value =  !!!
[----] I, [2019-05-06T01:45:02.558254 #14634:a00028]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest2]> Ending
[----] I, [2019-05-06T01:45:02.558368 #14634:a00028]  INFO -- : Method exited with rc=MIQ_OK


[----] I, [2019-05-06T01:45:23.115291 #14634:9fe8f4]  INFO -- : User [admin] with current group ID [1000000000002] name [EvmGroup-super_administrator]
[----] I, [2019-05-06T01:45:23.116866 #14634:9fe8f4]  INFO -- : Instantiating [/General/CustomMethods/DialogTest3?MiqServer%3A%3Amiq_server=1000000000001&ServiceTemplate%3A%3Aservice_template=1000000000001&User%3A%3Auser=1000000000001&dialog_var_1=test11&dialog_var_2_var_3=test1_test1&object_name=DialogTest3&vmdb_object_type=service_template]
[----] I, [2019-05-06T01:45:23.125155 #14634:9fe8f4]  INFO -- : Updated namespace [/General/CustomMethods/DialogTest3?MiqServer%3A%3Amiq_server=1000000000001&ServiceTemplate%3A%3Aservice_template=1000000000001&User%3A%3Auser=1000000000001&dialog_var_1=test11&dialog_var_2_var_3=test1_test1&object_name=DialogTest3&vmdb_object_type=service_template  Local/General]
[----] I, [2019-05-06T01:45:23.145449 #14634:9fe8f4]  INFO -- : Updated namespace [General/CustomMethods/dialogtest3  Local/General]
[----] I, [2019-05-06T01:45:23.150427 #14634:9fe8f4]  INFO -- : Invoking [inline] method [/Local/General/CustomMethods/DialogTest3] with inputs [{}]
[----] I, [2019-05-06T01:45:23.151476 #14634:9fe8f4]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest3]> Starting 
[----] I, [2019-05-06T01:45:23.452443 #14634:7fa0db4]  INFO -- : <AEMethod dialogtest3> !!! Method3 value = _ !!!
[----] I, [2019-05-06T01:45:23.475510 #14634:9fe8f4]  INFO -- : <AEMethod [/Local/General/CustomMethods/DialogTest3]> Ending
[----] I, [2019-05-06T01:45:23.475590 #14634:9fe8f4]  INFO -- : Method exited with rc=MIQ_OK
~~~

I have attached the datastore and dialog export with the bugzilla.

Comment 2 Rahul Chincholkar 2019-05-06 06:12:19 UTC
Created attachment 1564226 [details]
Service_in_version_5.9.6.5.png

Comment 3 Rahul Chincholkar 2019-05-06 06:12:43 UTC
Created attachment 1564227 [details]
Service_in_version_5.10.3.3.png

Comment 4 Rahul Chincholkar 2019-05-06 06:13:22 UTC
Created attachment 1564229 [details]
Dialog Export

Comment 9 CFME Bot 2019-05-08 16:32:40 UTC
New commit detected on ManageIQ/ui-components/master:

https://github.com/ManageIQ/ui-components/commit/7dcb1f7ca9fc404588cfd8944796bd3ed726c376
commit 7dcb1f7ca9fc404588cfd8944796bd3ed726c376
Author:     Erik Clarizio <eclarizio>
AuthorDate: Mon May  6 17:11:45 2019 -0400
Commit:     Erik Clarizio <eclarizio>
CommitDate: Mon May  6 17:11:45 2019 -0400

    Replace 'values' key with 'default_value' when updating value for field

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

 src/dialog-user/components/dialog-user/dialogUser.spec.ts | 4 +-
 src/dialog-user/components/dialog-user/dialogUser.ts | 19 +-
 2 files changed, 3 insertions(+), 20 deletions(-)

Comment 13 Tina Fitzgerald 2019-05-20 18:12:59 UTC
Update ui-components to 1.2.5 
https://github.com/ManageIQ/manageiq-ui-classic/pull/5604 merged.

Comment 14 Niyaz Akhtar Ansari 2019-06-14 08:36:00 UTC
Verified in Version 5.11.0.8.20190611155126_01e077e


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