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 an association for Datacenters #17821

Merged
merged 1 commit into from
Aug 8, 2018

Conversation

agrare
Copy link
Member

@agrare agrare commented Aug 8, 2018

Datacenters are a subclass of EmsFolder but have their own inventory
collection. This will allow us use the standard association attribute
for an inventory_collection rather than having to define a custom arel
like Ovirt does today ref.

Datacenters are a subclass of EmsFolder but have their own inventory
collection.  This will allow us use the standard association attribute
for an inventory_collection rather than having to define a custom arel
like Ovirt does today.
@miq-bot
Copy link
Member

miq-bot commented Aug 8, 2018

Checked commit agrare@516ed3c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 1 offense detected

app/models/ext_management_system.rb

@kbrock
Copy link
Member

kbrock commented Aug 8, 2018

:dependent => :none is the default, not sure if we care about this miq-bot warning

@agrare
Copy link
Member Author

agrare commented Aug 8, 2018

@kbrock yeah since datacenter is a subclass any dependent destroy will be handled by the ems_folders association

@kbrock kbrock added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 8, 2018
@kbrock kbrock merged commit 262bef6 into ManageIQ:master Aug 8, 2018
@agrare agrare deleted the add_datacenters_association branch August 8, 2018 23:09
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.

3 participants