Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do unassign tags when mapped tags list becomes empty #16370

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

cben
Copy link
Contributor

@cben cben commented Nov 1, 2017

.blank? check was a bug, it also skipped retagging given empty array.

Fixes
https://bugzilla.redhat.com/show_bug.cgi?id=1508437 (master)
https://bugzilla.redhat.com/show_bug.cgi?id=1510095 (gaprindashvili)
https://bugzilla.redhat.com/show_bug.cgi?id=1510096 (fine)

@miq-bot add-label bug, fine/yes, gaprindashvili/yes

@djberg96 @agrare Tiny but important fix, please review.

.blank? check was a bug, it also skipped retagging
given empty array.

Fixes
https://bugzilla.redhat.com/show_bug.cgi?id=1508437
@miq-bot
Copy link
Member

miq-bot commented Nov 1, 2017

Checked commit cben@5bc81aa with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@djberg96
Copy link
Contributor

djberg96 commented Nov 1, 2017

LGTM 👍

Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

I don't want to hold this fix up but we need some tests around tag mapping

@agrare agrare merged commit 48675e0 into ManageIQ:master Nov 1, 2017
@agrare agrare added this to the Sprint 73 Ending Nov 13, 2017 milestone Nov 1, 2017
@cben
Copy link
Contributor Author

cben commented Nov 1, 2017

Yep. We have some tests for retag_entity but this bug skipped it on a higher level :-)
We also a test for this function, I'm looking at improving it...

simaishi pushed a commit that referenced this pull request Nov 6, 2017
Do unassign tags when mapped tags list becomes empty
(cherry picked from commit 48675e0)

https://bugzilla.redhat.com/show_bug.cgi?id=1510095
@simaishi
Copy link
Contributor

simaishi commented Nov 6, 2017

Gaprindashvili backport details:

$ git log -1
commit 6f186bec9b54602b940c406b700d7e89cc01c6ee
Author: Adam Grare <agrare@redhat.com>
Date:   Wed Nov 1 10:22:45 2017 -0400

    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=1510095

@cben cben mentioned this pull request Nov 13, 2017
simaishi pushed a commit that referenced this pull request Nov 13, 2017
Do unassign tags when mapped tags list becomes empty
(cherry picked from commit 48675e0)

https://bugzilla.redhat.com/show_bug.cgi?id=1510096
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit c0a42ce73235968df4e88e0e2e54d4fa91025f46
Author: Adam Grare <agrare@redhat.com>
Date:   Wed Nov 1 10:22:45 2017 -0400

    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

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
Do unassign tags when mapped tags list becomes empty
(cherry picked from commit 48675e0)

https://bugzilla.redhat.com/show_bug.cgi?id=1510096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants