Bug 1663049 - Dynamic drop down code is being executed everytime a service request is opened for review and executed again on approval
Summary: Dynamic drop down code is being executed everytime a service request is opene...
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.9.6
Hardware: x86_64
OS: Linux
Target Milestone: GA
: 5.11.0
Assignee: Tina Fitzgerald
QA Contact: Niyaz Akhtar Ansari
Red Hat CloudForms Documentation
Depends On:
Blocks: 1667947 1667948
TreeView+ depends on / blocked
Reported: 2019-01-02 21:31 UTC by Ahmed El-Rayess
Modified: 2019-12-13 15:08 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1667947 1667948 (view as bug list)
Last Closed: 2019-12-13 15:08:31 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:

Attachments (Terms of Use)
screen capture of issue (9.83 MB, video/mp4)
2019-01-02 21:31 UTC, Ahmed El-Rayess
no flags Details

Description Ahmed El-Rayess 2019-01-02 21:31:40 UTC
Created attachment 1518034 [details]
screen capture of issue

Description of problem:
the code used for the dynamic service dialog items is being executed not only while creating the service request, but also executed everytime the service request is being opened for review and executed again while clicking on the approval.

this is giving the illusion that the system is very slow and unresponsive

the code should be executed once only at the time of the service request, if the request is opened for review and approval it should be getting the details from the database not rerunning the code everytime

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

How reproducible:

Steps to Reproduce:
1. create a service dialog that uses dynamic items
2. submit a new service request for that service
3. open the service request for review
4. approve the service request

Actual results:
the automation code is executed every time the service request is opened for review and executed again at approval

Expected results:
the automation code should only be executed as service request when the dialog is being displayed to the user.
when the request is opened for review and approval the details should be displayed directly from the database and not rerun the automation code again.

Additional info:
a video of the issue is attached

Comment 3 Tina Fitzgerald 2019-01-03 19:10:03 UTC
Erik is currently looking into this issue.

Comment 4 Tina Fitzgerald 2019-01-14 16:39:29 UTC
Master PR has been merged:

Comment 7 Niyaz Akhtar Ansari 2019-05-14 19:13:25 UTC
Verified in Version

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