-
Notifications
You must be signed in to change notification settings - Fork 897
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
Check if class is taggable before attempting to process tag expression #18114
Check if class is taggable before attempting to process tag expression #18114
Conversation
c2be27d
to
eaf4ad6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'd like @kbrock's 👍
This eliminates an error being raised when a tag expression was used in RBAC and is applied to a class that is not taggable Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641012
eaf4ad6
to
ed5fbff
Compare
Checked commit gtanzillo@ed5fbff with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff.
My knee jerk is to convert the return nil
to return klass.none
but I think we should make as little change as possible.
(then again, my next reaction is to make the object taggable - but alas, not possible)
So yes,
@gtanzillo I added gap and hammer, that should be ok, right? |
…ggable-class Check if class is taggable before attempting to process tag expression (cherry picked from commit 6fa29c2) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641810
Gaprindashvili backport details:
|
…ggable-class Check if class is taggable before attempting to process tag expression (cherry picked from commit 6fa29c2) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641012
Hammer backport details:
|
This eliminates an error being raised when a tag expression was used in RBAC and is
applied to a class that is not taggable
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641012.
/cc @jrafanie @kbrock @lpichler