-
Notifications
You must be signed in to change notification settings - Fork 993
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 #37584 - Host details - Fix append domain setting #10217
Conversation
@stejskalleos, could you please provide a more detailed description of the problem? I'm not entirely sure what I need to check here. |
Yop.
Without this change, the hostname on the new host detail page would be |
I see it only happens for hosts without a domain, which makes sense. |
It doesn't work for hosts with long names like meh-3-3.vms.meh.meh.foreman.com, and for hosts without domain (unmanaged hosts).
2a442e3
to
b7178ae
Compare
@nofaralfasi rebased and updated with the |
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.
Works well for me.
I would also suggest fixing the breadcrumb. However, it might be more complicated to fix, so we can leave it for a future PR.
Update: |
I looked at the |
@nofaralfasi, if you are okay with it, can you merge? |
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.
I've tested the fix, and it works for newly registered host with FQDN like meh-3-3.vms.meh.meh.foreman.com,
But when we've previous hosts with FQDN like meh-3-3.vms.meh.meh.foreman.com, before applying this patch, then after patch host remains same which has No Domain assigned in HostDetails page and host is displayed the same as earlier with FQDN in title and breadcrumbs
Have you tried it in a different browser? |
Yes :) |
Correct. Only setting the |
The thing is that the display_name is already there. ANyway, I'm merging the issue as the fix was resolved and other changes can be fixed in follow up PR |
It doesn't work for hosts with long names like
meh-3-3.vms.meh.meh.foreman.com, and for hosts
without domain (unmanaged hosts).