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 physical infra related default collections #17557

Merged

Conversation

tadeboro
Copy link
Contributor

@tadeboro tadeboro commented Jun 8, 2018

Newly added collections are used by physical infra providers when
performing inventory refresh.

@miq-bot assign @gtanzillo
/cc @gberginc @matejart

@tadeboro
Copy link
Contributor Author

tadeboro commented Jun 8, 2018

@miq-bot assign @Ladas

@miq-bot miq-bot assigned Ladas and unassigned gtanzillo Jun 8, 2018
:model_class => ::Hardware,
:association => :hardwares,
:manager_ref => [:computer_system],
:parent_inventory_collections => [:computer_systems],
Copy link
Contributor

@Ladas Ladas Jun 11, 2018

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)

Copy link
Contributor

@Ladas Ladas left a 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?

@Ladas
Copy link
Contributor

Ladas commented Jun 11, 2018

@miq-bot assign @agrare

@miq-bot miq-bot assigned agrare and unassigned Ladas Jun 11, 2018
Newly added collections are used by physical infra providers when
performing inventory refresh.
@tadeboro tadeboro force-pushed the add-physical-infra-default-collections branch from e7c409a to 6455b1c Compare June 12, 2018 06:56
@miq-bot
Copy link
Member

miq-bot commented Jun 12, 2018

Checked commit xlab-si@6455b1c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

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

Looks great 👍

Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

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

LGTM

@agrare agrare merged commit 419aa35 into ManageIQ:master Jun 12, 2018
@agrare agrare added this to the Sprint 88 Ending Jun 18, 2018 milestone Jun 12, 2018
@tadeboro tadeboro deleted the add-physical-infra-default-collections branch June 13, 2018 06:34
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.

5 participants