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

Fixes #23873 - Cannot remove content view on org destroy #7435

Merged
merged 1 commit into from
Jun 11, 2018

Conversation

jturel
Copy link
Member

@jturel jturel commented Jun 11, 2018

Fixes nightly build

@theforeman-bot
Copy link

Issues: #23873

@@ -67,7 +67,7 @@ def plan(content_view, options)

if organization_destroy
content_view.hostgroups.clear
Copy link
Member

Choose a reason for hiding this comment

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

This should likely be destroy_all as well

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not against changing it but I think my test illustrates that at least for now w/ the way the associations are set up, we don't need it. That said, will update!

Copy link
Member

Choose a reason for hiding this comment

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

I think we would have run into a problem if something else referenced the hostgroup that would have been 'deleted'. Such as another hostgroup or another host that hadn't been deleted yet

@jturel jturel force-pushed the content_view_remove_action branch from e30b33d to a216843 Compare June 11, 2018 14:10
@jturel
Copy link
Member Author

jturel commented Jun 11, 2018

@jlsherrill you OK with a merge here despite the react failure?

@jturel jturel merged commit 69cd04b into Katello:master Jun 11, 2018
@jturel jturel deleted the content_view_remove_action branch June 11, 2018 17:10
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