Skip to content
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

Add product files for physical server dashboard widgets #17172

Merged
merged 10 commits into from
Apr 9, 2018

Conversation

skovic
Copy link

@skovic skovic commented Mar 19, 2018

This PR adds the product files needed for the new physical server dashboard widgets.

@skovic
Copy link
Author

skovic commented Mar 19, 2018

@miq-bot add_label wip

@miq-bot miq-bot changed the title Add product files for physical server dashboard widgets [WIP] Add product files for physical server dashboard widgets Mar 19, 2018
@miq-bot miq-bot added the wip label Mar 19, 2018
@skovic skovic force-pushed the physical-server-widget-files branch from 358d191 to e90a8d9 Compare March 22, 2018 15:08
@skovic skovic force-pushed the physical-server-widget-files branch from 1ae080b to 21fe1a9 Compare March 29, 2018 19:27
@skovic skovic force-pushed the physical-server-widget-files branch from 21fe1a9 to bbf84bf Compare March 29, 2018 19:32
@skovic
Copy link
Author

skovic commented Mar 30, 2018

@miq-bot remove_label wip

@miq-bot miq-bot changed the title [WIP] Add product files for physical server dashboard widgets Add product files for physical server dashboard widgets Mar 30, 2018
@miq-bot miq-bot removed the wip label Mar 30, 2018
@skovic
Copy link
Author

skovic commented Mar 30, 2018

@miq-bot add_label providers/physical

@skovic
Copy link
Author

skovic commented Apr 2, 2018

@agrare Can you take a look at this PR when you get a chance? Thanks

@agrare
Copy link
Member

agrare commented Apr 4, 2018

@skovic can you address the spec failures?

@agrare agrare self-assigned this Apr 4, 2018
@skovic skovic force-pushed the physical-server-widget-files branch from a365613 to 6f4a563 Compare April 4, 2018 20:42
@skovic
Copy link
Author

skovic commented Apr 5, 2018

@agrare The tests pass now. Thanks

@gtanzillo gtanzillo assigned gtanzillo and unassigned agrare Apr 9, 2018
@@ -27,6 +27,9 @@ class PhysicalServer < ApplicationRecord

scope :with_hosts, -> { where("physical_servers.id in (select hosts.physical_server_id from hosts)") }

virtual_column :v_availability, :type => :string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add :uses => :host to both of these lines to force eager loading. This'll prevent n+1 queries when the widgets are generated.

@miq-bot
Copy link
Member

miq-bot commented Apr 9, 2018

Checked commits skovic/manageiq@16d2ce1~...fbc1e4d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@gtanzillo gtanzillo added this to the Sprint 83 Ending Apr 9, 2018 milestone Apr 9, 2018
@gtanzillo gtanzillo merged commit a5379c4 into ManageIQ:master Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants