Bug 1688359

Summary: Title text changes after clicking quadicon on Policy Simulation of cloud instance
Product: Red Hat CloudForms Management Engine Reporter: John Dupuy <jdupuy>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: John Dupuy <jdupuy>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.2CC: bmidwood, dmetzger, hkataria, lavenel, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:36:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description John Dupuy 2019-03-13 15:33:46 UTC
Description of problem:
The title text changes from "Instance Policy Simulation" to "Virtual Machine Policy Simulation" when you click on the quadicon after running a policy simulation on a cloud instance. Then when you click the back button, the title text remains as "Virtual Machine"

Version-Release number of selected component (if applicable):
5.10.2.0.20190311164858_455d270 and 5.9.9.1.20190304164243_28a581b

How reproducible:
100%

Steps to Reproduce:
1. Add a cloud provider that has at least 1 instance
2. Navigate to the summary page of an instance
3. Click "Policy" -> "Policy Simulation"
4. Assign e.g. "OpenSCAP" profile to the instance
5. Click the quadicon

Actual results:
You are taken to the details page of the policy simulation for the instance, and the title text now reads "Virtual Machine Policy Simulation"

Expected results:
You are taken to the details page of the policy simulation for the instance, and then title text should read "Instance Policy Simulation"

Additional info:
If you navigate to your instances from the provider vms (i.e. Compute->Cloud->Provider, clicking quadicon of provider, clicking number of VMs) and then to the policy simulation page by clicking the checkbox of an instance, then clicking "Policy" -> "Policy Simulation" the title text will read "Virtual Machine Policy Simulation" or it will sometimes not be present. I will write a separate BZ for this case. 

This bug impacts 5.10.2.0 and 5.9.9.1

Comment 6 CFME Bot 2019-04-15 10:56:30 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/09be462fb38c5ed99f4712fa009c3b7712bc1c60
commit 09be462fb38c5ed99f4712fa009c3b7712bc1c60
Author:     Hilda Stastna <hstastna>
AuthorDate: Wed Apr  3 07:56:34 2019 -0400
Commit:     Hilda Stastna <hstastna>
CommitDate: Wed Apr  3 07:56:34 2019 -0400

    Fix changing title after clicking quadicon in Instance Policy sim page

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

    Fix the title in Cloud Instance Policy Simulation page,
    after clicking on any quadicon.

 app/controllers/vm_common.rb | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comment 7 John Dupuy 2019-04-29 13:52:44 UTC
Verified in 5.11.0.1.20190424210327_58b5dbd

Steps of verification:
Steps to Reproduce:
1. Add a cloud provider that has at least 1 instance
2. Navigate to the summary page of an instance
3. Click "Policy" -> "Policy Simulation"
4. Assign e.g. "OpenSCAP" profile to the instance
5. Click the quadicon
6. Verified that the title text still says: "Instance Policy Simulation"

Comment 9 errata-xmlrpc 2019-12-12 13:36:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:4199