Bug 1515857

Summary: [RFE] Generic objects not displayed
Product: Red Hat CloudForms Management Engine Reporter: Cyril Coupel <ccoupel>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Kourim <mkourim>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, hkataria, jhardy, lavenel, mkourim, mpovolny, obarenbo
Target Milestone: GAKeywords: FutureFeature, RFE, TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: testathon
Fixed In Version: 5.10.0.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1553309 (view as bug list) Environment:
Last Closed: 2019-02-11 13:55:06 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:    
Bug Blocks: 1553309    
Attachments:
Description Flags
generic object displayed none

Description Cyril Coupel 2017-11-21 13:56:53 UTC
Description of problem:
in the service view, the generic objects linked to the service are not displayed. Only the quantity of instances are showned

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


How reproducible:
every time

Steps to Reproduce:
1. instanciate a new generic object like lb=$evm.vmdb(:generic_object_definition).find_by(:name => "LoadBalancer").create_object(:name=>"test_LB")
2. set the object child of a service with lb.add_to_service
3.

Actual results:
the instance counter is incremented but the icon of the generic object is not visible

Expected results:
the generic objects must be displayed in the service view as well as the VMs.

Additional info:

Comment 2 Dave Johnson 2017-11-21 20:17:39 UTC
Martin, can you reproduce this?  Was it already reported?

Comment 3 Martin Kourim 2017-11-21 21:42:19 UTC
Created attachment 1356999 [details]
generic object displayed

Comment 4 Martin Kourim 2017-11-21 21:44:05 UTC
Tested using REST API, the generic object linked to the service is displayed (see screenshot).

POST /api/services/:id
{
  "action": "add_resource",
  "resource": { "resource": { "href": "https://<address>/api/generic_objects/:id" } }
}

Comment 6 Cyril Coupel 2017-11-24 16:28:00 UTC
In addition, the generic objects should be seen on the same page as the VMs while looking at the service page.
We must not have to click on the summary counter to open a new page to access the generic objects.

Comment 13 CFME Bot 2018-02-23 21:04:03 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/48cd8d928e625e09056eec18f0f1c900169ef5eb

commit 48cd8d928e625e09056eec18f0f1c900169ef5eb
Author:     Harpreet Kataria <hkataria>
AuthorDate: Thu Feb 22 16:12:50 2018 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Feb 23 14:29:55 2018 -0500

    Render GO summary screen in Service Explorer.
    
    Render GO summary screen when browsing to that thru list of generic objects from service summary screen
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1515857

 app/controllers/generic_object_controller.rb         | 2 +-
 app/controllers/service_controller.rb                | 5 ++++-
 app/helpers/generic_object_helper/textual_summary.rb | 8 ++++----
 app/helpers/service_helper/textual_summary.rb        | 2 ++
 app/views/service/show.html.haml                     | 2 +-
 spec/controllers/service_controller_spec.rb          | 1 -
 6 files changed, 12 insertions(+), 8 deletions(-)

Comment 15 Martin Kourim 2018-07-11 08:32:25 UTC
Verified that on 5.10.0.3 when clicking on number of Generic Object instances and then on instances one by one the details including attributes and their values are displayed.