-
Notifications
You must be signed in to change notification settings - Fork 357
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
Show only servers in current region in Diagnostics #4849
Conversation
Checked commit ZitaNemeckova@0aa0421 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@lpichler Can you look at this one too, please? |
@@ -420,7 +420,7 @@ def diagnostics_server_list | |||
zone = Zone.find_by_id(x_node.split("-").last) | |||
@view, @pages = get_view(MiqServer, :named_scope => [[:with_zone_id, zone.id]]) # Get the records (into a view) and the paginator | |||
else | |||
@view, @pages = get_view(MiqServer) # Get the records (into a view) and the paginator | |||
@view, @pages = get_view(MiqServer, :named_scope => [[:in_region, MiqRegion.my_region.region]]) # Get the records (into a view) and the paginator |
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.
great! and I believe can also use :in_my_region
instead :in_region
👍
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 that works too and looks better. Changed 👍
@lpichler Are you OK with the current changes? |
0aa0421
to
3837814
Compare
3837814
to
e1859ab
Compare
Show only servers in current region in Diagnostics (cherry picked from commit b897cec)
Hammer backport details:
|
Closes #4719 .
Have two Regions each with one or more servers.
Configuration -> Diagnostics -> select Region -> select Servers tab -> see that number of servers in tree and in GTL isn't same
Before:
After:
@miq-bot add_label bug, hammer/no