-
Notifications
You must be signed in to change notification settings - Fork 897
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
Migration: Add health_state and power_state columns to physical server #14042
Conversation
Closing to re-initiate travis tests. |
Reopen to run travis tests |
Missing addition of new column to Otherwise LGTM 👍 |
Checked commits https://github.com/lenovo/manageiq/compare/4ff1b4652cd880c7358555516968e5c9ebe44473~...686c805555453db79073eb7328e99252a31c14be with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot remove_label wip |
@juliancheal @blomquisg Could you review this? |
Hi @juliancheal @blomquisg, @Fryguy How do you see this PR? Schema freeze is getting close |
@@ -0,0 +1,5 @@ | |||
class AddPowerStatePropertyToPhysicalServer < ActiveRecord::Migration[5.0] | |||
def change | |||
add_column :physical_servers, :power_state, :string |
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.
My only concern is that in the other tables we have separated the concept of "raw_power_state" and "power state". "raw_power_state" is the raw string that we get from the provider, whereas "power_state" is a normalized value, mainly used for reporting. cc @blomquisg
I'll merge anyway, but you might need a followup PR to add "raw_power_state". Also, please be sure that usage of the power state column is limited to the regular normalized values (like what we show in the quadicons in the UI.
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.
PR to fix this #14287
@miq-bot add_label: wip, providers/physical-infrastructure