-
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
Add method for Vm to get 'My Company' tags #16607
Add method for Vm to get 'My Company' tags #16607
Conversation
794417f
to
bc98533
Compare
@miq-bot assign @gtanzillo |
expect(@vm1.tags.count).to eq(4) | ||
expect(@vm1.writable_classification_tags.count).to eq(1) | ||
expect(@vm1.writable_classification_tags.first.name).to eq('/managed/environment/prod') | ||
|
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.
Could you add an expectation to check if the returned object is an actual tag
?
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.
done
13b5629
to
d3af28d
Compare
@skateman still same count of queries for asking on parent of classification.
|
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.
Travis issue seems irrelevant... |
@lpichler please rebase to make the tests green. |
d3af28d
to
438abad
Compare
Checked commit lpichler@438abad with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@gtanzillo can we get this in? |
Add method for Vm to get 'My Company' tags (cherry picked from commit dd073f4) https://bugzilla.redhat.com/show_bug.cgi?id=1526049
Gaprindashvili backport details:
|
'My Company' tags - there is used name
writable_classification_tags
for this method - it is inherited from names of used relations and scopes but maybe there is better namein UI:
(for example)
How it looks in DB ?
Vm (for example) -> Taggings -> Tags -> Classification -> parent of Classification is read_only
it was derived from code in UI screen
Usage:
🎁 for @skateman
Links
https://bugzilla.redhat.com/show_bug.cgi?id=1519457
https://bugzilla.redhat.com/show_bug.cgi?id=1467805