Bug 1392641

Summary: Edit Button fails if navigating from Provider => Some Relationship, selecting an object, and choosing Edit from the toolbar
Product: Red Hat CloudForms Management Engine Reporter: Tzu-Mainn Chen <tzumainn>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED CURRENTRELEASE QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, hkataria, jhardy, mpovolny, obarenbo, sbulage
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:button
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1393516 (view as bug list) Environment:
Last Closed: 2017-06-12 17:31:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1428447    
Bug Blocks: 1393516    

Description Tzu-Mainn Chen 2016-11-08 00:14:46 UTC
Description of problem:

If I start from, say, an OpenStack cloud provider, click on Host Aggregates, and then select an aggregate and choose Edit from the toolbar, I get an error:

No route matches {:action=>"layouts/gtl", :controller=>"ems_cloud", :id=>nil} [ems_cloud/button]

Same applies for Storage Manager > Volume > Edit

If I select Host Aggregate or Volume from the left navigation and choose to Edit, there are no errors.

Comment 3 CFME Bot 2016-11-08 22:11:31 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e16c035065a905f2e2decd05bf719833a49b1480

commit e16c035065a905f2e2decd05bf719833a49b1480
Author:     Aparna Karve <akarve>
AuthorDate: Tue Nov 8 12:45:48 2016 -0800
Commit:     Aparna Karve <akarve>
CommitDate: Tue Nov 8 13:10:32 2016 -0800

    Route the ems_cloud relationship links appropriately
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1392641

 app/controllers/ems_common.rb | 6 ++++++
 1 file changed, 6 insertions(+)

Comment 5 Satyajit Bulage 2017-03-10 14:35:23 UTC
For OpenStack Provider, select an aggregate and choose Edit from the toolbar not throwing any error. 
But the navigation to Storage Manager is missing in the current build (5.8.0.4.20170307183144_745a3d9) separate BZ is logged for it.

Comment 6 Satyajit Bulage 2017-04-17 13:02:46 UTC
The edit button is working without any error when navigating through Provider --> Relationship, Select Host aggregate. 

Same applies for Volume Edit.

Verified Version: 5.8.0.10-beta1.20170411212748_e47d319