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
Change error message flash of existing label to more informative #1123
Change error message flash of existing label to more informative #1123
Conversation
LGTM. |
@@ -153,7 +153,7 @@ def label_tag_mapping_add(entity, label_name, cat_description) | |||
|
|||
# UI currently can't allow 2 mappings for same (entity, label). | |||
if Classification.find_by_name(cat_name) | |||
add_flash(_("Mapping for %{entity}, %{label} already exists") % | |||
add_flash(_("Mapping for %{entity}, Label %{label} already exists") % |
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.
@zgalor would it make sense to have single quotes around %{label} for clarity.
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.
@h-kataria I added double quotes to be consistent with
https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/ops_controller/settings/label_tag_mapping.rb#L175
and
https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/ops_controller/settings/label_tag_mapping.rb#L193
@zgalor can you add a link to BZ to commit message if there is one. |
@h-kataria thanks, |
2cb1c44
to
068b8fa
Compare
Checked commit zgalor@068b8fa with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Change error message flash of existing label to more informative (cherry picked from commit 03689c2)
Fine backport details:
|
Added Label and "" for clarity
BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1444110
@miq-bot add-label bug
@serenamarie125 @cben @h-kataria PTAL