-
Notifications
You must be signed in to change notification settings - Fork 356
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
Adding default labels 'com.redhat.component' to chargback assignments #3144
Conversation
@zeari not really sure what to put in the popover, any suggestions? |
@miq-bot add_label bug, compute/containers |
@zeari should this be for gaprindashvili? |
a713b90
to
f6dde8a
Compare
@@ -747,10 +747,17 @@ def get_tags_all(category) | |||
classification.entries.each { |e| @edit[:cb_assign][:tags][e.id.to_s] = e.description } if classification | |||
end | |||
|
|||
DEFAULT_CHARGEBACK_LABELS = ["com.redhat.component"] |
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.
This should be seeded from a file but im really not sure whats the correct way 😓
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.
Yeah.. Let's wait for @himdel to respond on this..
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.
If this is just one constant, a file would probably be an overkill, this is fine 👍 (at least until it becomes some structured data, then we can deal with creating a yaml and importing during seed).
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.
(If this is something that's not really specific to chargeback but to container images in general, maybe the string should live in the model, idk. But I'm OK with this.)
This should close #2606, right? |
Assuming you find a text for the popover, could you move it to a separate partial please? Just so that we don't have to repeat the whole bit... something like...
%a{:"data-toggle" => "popover",
:"data-html" => "true",
:"data-content" => text,
:"data-placement" => "top"}
%span.pf-blue-info.pficon.pficon-info
:javascript
$(document).ready(function() {
$('[data-toggle=popover]').popovers()
}); and use
(also, mising i18n now ;)) (If you don't find any text ... well, it didn't have any help text before, and the BZ is not about missing help, so .. not a blocker if we don't add a popover.) |
@himdel Yeah I too don't see any reference to "help missing" in the BZ only thing is that @serenamarie125 commented about that in the previous PR (#2606) so I didn't want to ignore her comment even though I too don't think it is necessary. I will wait for her to take a peek and give opinion and if it is not necassary I will drop the popover. |
7b9c3a2
to
2678047
Compare
@himdel, I removed the popover - It is not necessary for the BZ. PTAL? |
fix-minor mistakes missing default options freeze constant removing popover and adding comments
2678047
to
55af067
Compare
Checked commit nimrodshn@55af067 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
LGTM, merged :) (we probably still want the popover, but didn't want to block the PR on an unrelated change) @nimrodshn Is this meant for gaprindashvili? |
BZ is on |
BZ is now marked for z-stream. This can be marked as |
yes 👍 @simaishi |
Adding default labels 'com.redhat.component' to chargback assignments (cherry picked from commit f5e4dfc) https://bugzilla.redhat.com/show_bug.cgi?id=1552704
Gaprindashvili backport details:
|
What This Does
Makes the label
com.redhat.component
as default label for docker container images in chargback assignments screen.Why
This makes it easier for customers to leverage RH product labels, instead of scanning through what could be large number of image labels.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1417236
GIF:
cc: @himdel , @zeari