Bug 1464472

Summary: Must Refresh UI to see Correct Tags of Datastore of vCenter VMware Provider
Product: Red Hat CloudForms Management Engine Reporter: myoder
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED CURRENTRELEASE QA Contact: Jad Haj Yahya <jhajyahy>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: ccoupel, dajohnso, hkataria, hstastna, jhardy, mfeifer, mpovolny, myoder, obarenbo, pmcgowan, rspagnol, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
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:
: 1594324 1594326 (view as bug list) Environment:
Last Closed: 2019-02-11 13:53:38 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:
Bug Depends On:    
Bug Blocks: 1594324, 1594326    

Description myoder 2017-06-23 13:56:25 UTC
Description of problem:
When viewing the datastore overview of a vCenter provider, the tags displayed are the tags of the vCenter Provider.  You must refresh the page for the correct tags to be displayed for the datastore.

Version-Release number of selected component (if applicable):
Tested on CFME 5.7 and 5.8

How reproducible:
Always

Steps to Reproduce:
1. Add vCenter Provider
2. Tag the vCenter Provider
3. Look at the datastore overview page from the vCenter Provider and you will see the tags displayed are for the vCenter provider, and not for the datastore.
4. Click refresh, and the tags will update accordingly.

Actual results:
When viewing the tags of the datastore, the tags of the provider are displayed.  
Expected results:
When viewing the tags of the datastore, the tags of the datastore should be displayed.

Additional info:

Comment 5 Hilda Stastna 2017-07-10 15:01:32 UTC
Thanks Ryan,
I don't need anything else, this was very helpful.
Actually, the bug is not present on master,
but probably still present in Fine version,
so maybe we should change Target release
from cfme-future to 5.8.

Comment 8 Marianne Feifer 2017-10-04 11:34:44 UTC
Dajo, what are you thoughts on this one?  Should someone from QA try to replicate it?

Hilda, customers aren't using master, so testing on that version probably isn't the best way to try to replicate (that's why I'm asking dajo...)

Comment 11 Ruslana Babyuk 2017-10-05 06:44:29 UTC
Hi,

I could reproduce this issue for both versions(5.7, 5.8)
Please find detailed steps:

1. Add vCenter Provider
2. Navigate to provider details page.
3. On provider details page select 'Summary View' view type for the page.
4. Add a tag to the vCenter Provider
5. Click "Datastores" on provider page
6. Check Datastores tag info

Result: Providers tags display for datastores, after refresh datastores tags displays

Additional info: This issue reproduces only if provider details page have a 'Summary View', for 'Dashboard View' tags are not duplicated for datastores

Comment 14 Ruslana Babyuk 2017-11-22 07:45:11 UTC
*** Bug 1515718 has been marked as a duplicate of this bug. ***

Comment 15 Hilda Stastna 2018-01-23 09:59:52 UTC
I want to add that this bug occurs when using ALSO OTHER PROVIDERS, not only with using vCenter VMware Provider.

Comment 16 Hilda Stastna 2018-02-14 16:24:33 UTC
Another note for Ruslana's additional info: the bug also occurs for Dashboard view (not just Summary view), but not always; it depends on how and when you switch between the views when displaying tags.

Comment 17 Hilda Stastna 2018-02-14 17:00:09 UTC
fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/3407

Comment 18 CFME Bot 2018-05-03 17:23:16 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/e1256a03f924684b0da5f0db003cfd5ef7cdb82c
commit e1256a03f924684b0da5f0db003cfd5ef7cdb82c
Author:     Hilda Stastna <hstastna>
AuthorDate: Wed Apr 18 08:42:39 2018 -0400
Commit:     Hilda Stastna <hstastna>
CommitDate: Wed Apr 18 08:42:39 2018 -0400

    Add get_tagdata method to fix displaying correct tags of Datastore

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

    Fix displaying correct tags of Datastore of any provider from Compute >
    Infrastructure > Providers page.

 app/controllers/storage_controller.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 19 Hilda Stastna 2018-06-22 12:35:12 UTC
*** Bug 1593694 has been marked as a duplicate of this bug. ***