-
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
Name the tags on the topology screens based on its classifications #3034
Conversation
ba8f423
to
c1c96c4
Compare
@miq-bot assign @dclarizio |
c1c96c4
to
97786d3
Compare
@epwinchell changed it to |
@skateman So is
Especially, since Status has no real meaning for a tag anyway. |
@dclarizio I'm not saying it can't be done, but it would add extra complexity into the codebase. But if @himdel approves, I'm okay with it... |
I'm OK with it too.. one extra if for tags won't kill us :). |
Marking as WIP based on the conversation. |
97786d3
to
8525e06
Compare
Adjusted based on the suggestions, updated the screenshots... |
@skateman was it not easy to remove "Status" from the tag popup? They really don't have a status. Let me know, otherwise, we can merge when green. Also removing |
8525e06
to
44bd5a4
Compare
Checked commit skateman@44bd5a4 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@dclarizio updated code and screenshot |
Name the tags on the topology screens based on its classifications (cherry picked from commit d7681c0) https://bugzilla.redhat.com/show_bug.cgi?id=1526582
Gaprindashvili backport details:
|
The
name
attribute on tags is displaying the full tag URI instead of a human-readable name. The tags we want to display on topology screens always provide a relatedClassification
object with an appropriate description. This object always has a parentClassification
also with the description. Using these objects we can build the desired human-readable tag name by joining the two descriptions together.As the tag name is being displayed on a tooltip with a
Name:
prefix before, I did not wanted to use a second colon for joining the two descriptions. Instead of that I am dropping the prefix for tags.Before:
After:
Depends on:
ManageIQ/manageiq#16607
#3007
https://bugzilla.redhat.com/show_bug.cgi?id=1467805
@miq-bot add_label bug, pending core, gaprindashvili/yes, topology