Bug 1571000 - Automate Methods from Dynamic Dialog are being Run More than Designed / Expected
Summary: Automate Methods from Dynamic Dialog are being Run More than Designed / Expected
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: GA
: 5.10.0
Assignee: eclarizi
QA Contact: Niyaz Akhtar Ansari
URL:
Whiteboard:
: 1568304 (view as bug list)
Depends On:
Blocks: 1572711
TreeView+ depends on / blocked
 
Reported: 2018-04-23 23:45 UTC by myoder
Modified: 2021-12-10 16:01 UTC (History)
14 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1572711 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:02:19 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
video showing issue with dynamic dialog (6.07 MB, application/octet-stream)
2018-04-23 23:45 UTC, myoder
no flags Details

Description myoder 2018-04-23 23:45:38 UTC
Created attachment 1425768 [details]
video showing issue with dynamic dialog

Description of problem:

I have setup a service catalog that has a dynamic dialog with it.  The dialog has 3 elements in it, all of the elements are dynamic and are of type drop down.

The setup is as follows:

--------------
Dynamic Dialog
--------------

 - Element A => Set to refresh Element B
 - Element B
 - Element C


Elements B and C are not set to refresh anything.  Element A is set to refresh Element B.  There is no refresh button set for any of the elements.


When I click the 'Order' button to initiate a Service Catalog, all of the dynamic methods are hit twice as such :

  method for Element A
  method for Element B
  method for Element C
  method for Element A
  method for Element B
  method for Element C

I anticipate each method to be run only once when I click the 'Order' button for a Service Catalog.



When I change the value of Element A, the following methods are run:

 method for Element A
 method for Element B
 method for Element C
 method for Element B

I anticipate only the method for Element B to be run when I update the value for Element A.



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

How reproducible:
always

Steps to Reproduce:
1. I have included a video showing the issue, the dynamic dialog used, and the custom automate methods for each element.


Actual results:
Methods are hit multiple times

Expected results:
Methods should only be hit as designed by user

Additional info:
Appliance reproduced on: 10.13.145.60 admin:smartvm

Comment 7 Tina Fitzgerald 2018-04-26 21:53:07 UTC
*** Bug 1568304 has been marked as a duplicate of this bug. ***

Comment 8 Tina Fitzgerald 2018-04-27 16:31:57 UTC
These PRs resolve the reported issue: 
https://github.com/ManageIQ/manageiq-api/pull/365
https://github.com/ManageIQ/manageiq/pull/17329

Comment 10 Tina Fitzgerald 2018-04-27 20:21:28 UTC
Hi Yoder,

Could you pass along that our hope is to have a hot fix available on May 2nd.

Let me know if you have any questions.

Regards,
Tina

Comment 12 William Fitzgerald 2018-05-01 13:57:39 UTC
Waiting for new build

Comment 13 William Fitzgerald 2018-05-02 14:04:19 UTC
Works on 5.9.2.4 SUI

Comment 14 Niyaz Akhtar Ansari 2018-10-31 07:28:33 UTC
Verified in Version 5.10.0.21.20181023151612_4c11b0d


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