Bug 1510096

Summary: Label->Tag mapping doesn't unassign last tag(s)
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Beni Paskin-Cherniavsky <cben>
Status: CLOSED NOTABUG QA Contact: Einat Pacifici <epacific>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.9.0CC: cben, cpelland, epacific, gblomqui, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1508437 Environment:
Last Closed: 2018-03-06 09:22:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On: 1508437, 1538005    
Bug Blocks:    

Comment 2 CFME Bot 2017-11-13 21:51:16 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/c0a42ce73235968df4e88e0e2e54d4fa91025f46

commit c0a42ce73235968df4e88e0e2e54d4fa91025f46
Author:     Adam Grare <agrare>
AuthorDate: Wed Nov 1 10:22:45 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Nov 13 16:44:31 2017 -0500

    Merge pull request #16370 from cben/blank-mapped-tags
    
    Do unassign tags when mapped tags list becomes empty
    (cherry picked from commit 48675e0f108169ed19647194a3abae691c972fcf)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1510096

 app/models/ems_refresh/save_inventory.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 3 Beni Paskin-Cherniavsky 2017-11-14 18:05:59 UTC
There is a tests-only PR waiting for backport:
https://github.com/ManageIQ/manageiq/pull/16453
but functionality is done, so moving to POST.

Comment 4 Einat Pacifici 2018-01-24 09:26:54 UTC
Reassigning. The scenario described comment 1 does not work. In version 5.8.3. it is not possible to map tags and have them shown in the "My company tags". 
Discussed this issue with cben and agreed to reassign BZ.

Comment 6 Einat Pacifici 2018-03-06 09:22:24 UTC
With all the work that has gone into "refresh" fixes, this BZ is no longer reproducing. Not in 58x and not in 59x. Hence closing it for now.