Bug 1497748

Summary: Editing Name of a Category via API breaks Chargeback Assignments
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ReportingAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: urgent Docs Contact:
Priority: medium    
Version: 5.7.0CC: cpelland, gtanzill, jhardy, myoder, nachandr, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: chargeback
Fixed In Version: 5.7.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1483365 Environment:
Last Closed: 2017-12-18 20:30:12 UTC Type: ---
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: 1483365    
Bug Blocks:    

Comment 2 CFME Bot 2017-10-02 15:11:00 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/3e1b9f9ee92704b7a620d8d11e937374575dfe09

commit 3e1b9f9ee92704b7a620d8d11e937374575dfe09
Author:     Joe Rafaniello <jrafanie.github.com>
AuthorDate: Fri Sep 29 14:00:32 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Oct 2 11:04:04 2017 -0400

    Merge pull request #16039 from gtanzillo/delete-tag-assignments
    
    Delete tag assignments when deleting a tag that is referenced in an assignment
    (cherry picked from commit fc67deb5c3a1eca38574e9001ec52f933da0b112)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1497748

 app/models/classification.rb                | 16 +++++++--
 app/models/mixins/assignment_mixin.rb       | 11 +++++-
 spec/models/classification_spec.rb          | 56 +++++++++++++++++++++++++----
 spec/models/mixins/assignment_mixin_spec.rb | 18 ++++++++++
 4 files changed, 91 insertions(+), 10 deletions(-)

Comment 4 Nandini Chandra 2017-11-22 21:21:55 UTC
Verified in 5.7.4.1

Comment 7 errata-xmlrpc 2017-12-18 20:30:12 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-2017:3484