-
Notifications
You must be signed in to change notification settings - Fork 898
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 physical infra related default collections #17557
Add physical infra related default collections #17557
Conversation
:model_class => ::Hardware, | ||
:association => :hardwares, | ||
:manager_ref => [:computer_system], | ||
:parent_inventory_collections => [:computer_systems], |
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.
the parent should be the top level entity, so :parent_inventory_collections => [:physical_servers]
(saying that, it should be probably named root_inventory_collections
)
you would see this fail when doing targeted refresh, where it would build invalid SQL (I think I should be able to add assert that parent_inventory_collections must not have parents)
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.
Looks good, once we fix the parent_inventory_collections.
@agrare I think you've commented on gitter, that this should be valid connection of physical_server, computer_system and hardware. Can you review?
Newly added collections are used by physical infra providers when performing inventory refresh.
e7c409a
to
6455b1c
Compare
Checked commit xlab-si@6455b1c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
Looks great 👍
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.
LGTM
Newly added collections are used by physical infra providers when
performing inventory refresh.
@miq-bot assign @gtanzillo
/cc @gberginc @matejart