Bug 1399378

Summary: Infrastructure provisioning template selection screen includes "Hide deprecated" checkbox and "Deprecated" column which only apply to cloud provisioning
Product: Red Hat CloudForms Management Engine Reporter: Greg McCullough <gmccullo>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Ganesh Hubale <ghubale>
Severity: low Docs Contact:
Priority: medium    
Version: 5.7.0CC: ghubale, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 23:02:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
VM Template table-view screenshot none

Description Greg McCullough 2016-11-28 22:44:25 UTC
Created attachment 1225503 [details]
VM Template table-view screenshot

Description of problem:
Infrastructure provisioning template selection screen includes "Hide deprecated" checkbox and "Deprecated" column which only apply to cloud provisioning

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


Steps to Reproduce:
1. Navigate to Compute -> Infrastructure -> Virtual Machines
2. Select Lifecycle -> Provision VMs

Actual results:
VM Template table-view screen shows "Hide deprecated" checkbox and "Deprecated" column which was added for cloud (GCE specifically) and is not used by any infra providers.  (See attachment)

Expected results:
Unrelated fields are hidden.

Additional info:
The field is not inaccurate for the infra side since all templates show as "false" but these fields serve no purpose and therefore seem confusing.

New Checkbox added in PR https://github.com/ManageIQ/manageiq/pull/11896

Comment 2 Harpreet Kataria 2016-12-01 15:02:49 UTC
Hilda,

On pre provisioning screen we need to hide "Hide Deprecated" check-box when user is submitting a provisioning request for Infrastructure VM.
Currently default is set to hide deprecated templates here https://github.com/ManageIQ/manageiq/blob/master/app/controllers/application_controller/miq_request_methods.rb#L167 so need to set this to true only when provisioning cloud templates.

Should hide the check-box here https://github.com/ManageIQ/manageiq/blob/master/app/views/miq_request/_pre_prov.html.haml#L8
Also need to hide it from list of Templates here
https://github.com/ManageIQ/manageiq/blob/master/app/views/miq_request/_pre_prov.html.haml#L44-L45

and in a grid after a template is selected: 
https://github.com/ManageIQ/manageiq/blob/master/app/views/miq_request/_prov_vm_grid.html.haml#L55-L56
https://github.com/ManageIQ/manageiq/blob/master/app/views/miq_request/_prov_vm_grid.html.haml#L88-L89

No need to add in list of headers for Infrastructure provisioning https://github.com/ManageIQ/manageiq/blob/master/app/controllers/application_controller/miq_request_methods.rb#L412

Hopefully i got all the places covered, Let me know if you have questions.

Thanks,
~Harpreet

Comment 3 Hilda Stastna 2018-03-13 18:05:36 UTC
fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/3615

Comment 8 errata-xmlrpc 2019-02-07 23:02:18 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/RHSA-2019:0212