-
Notifications
You must be signed in to change notification settings - Fork 293
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
Fixes #37123 - Correct virtual_host subscription facet name in Legacy UI #10871
Conversation
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 was changed to display_name
recently, in #10538, which is related to theforeman/foreman#9613. I want to make sure we fully understand what caused this, because it's kinda weird to be changing it back so soon..
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.
Marking requested changes so it's not merged accidentally
let's double-check it
Hmmm, all the other changes in that PR were from I wonder if |
That is what I think happened, I am going to try using short names and see if it makes a difference on the host, if it does not affect the hostname then I think it's fine to switch it, since it's only the old UI. |
In Foreman, node :display_name do |host|
host.to_label
end This means that when looking at a In Katello, belongs_to :hypervisor_host, :class_name => "::Host::Managed" In child :hypervisor_host => :virtual_host do
attributes :id, :name
end This means that in the subscription_facet_attributes API response node, the We could make this work with |
Thanks @jeremylenz . Could you help me better understand what is the upside vs. effort required for doing so? Is this issue going to come up a different way in the future once the old UI goes away? |
@wbclark If we leave it as |
I am +1 for changing the rabl so it works with the |
Hmmm, I can understand why some users might prefer to see short names only when looking at all hosts, but maybe there is no reason to care when they are looking up the hypervisor a host is mapped to? Not sure tbh. If the effort is small and you both want to do it, then IMO go for it. |
@jeremylenz updated, here is what the object looks like now: It works great both in the old and new UI |
awesome! And just double-checking, does it display differently in the web UI based on that setting? |
[test katello] |
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.
Nice work! Thanks @chris1984
APJ 👍 from me
[test katello] |
What are the changes introduced in this pull request?
subscription_facet_attributes.virtual_host
fromdisplay_name
toname
when we were doing stuff in the new UI, because it works fine there but we didn't check the old UI. This fixes that up, so it shows correctly the displays the guest/host mapping.Considerations taken when implementing this change?
What are the testing steps for this pull request?
Screenshot before:
Screenshot after: