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

handle child_objs being nil in remove_child #20789

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Nov 7, 2020

remove_child in the rel mixin has a guard clause for handling nil children which should be first so we don't call with_rel_type on nil

broken in #20274

the test that's failing: https://github.com/ManageIQ/manageiq/blob/master/spec/models/mixins/relationship_mixin_spec.rb#L14

@miq-bot assign @kbrock
@miq-bot add_label bug

@miq-bot
Copy link
Member

miq-bot commented Nov 7, 2020

Checked commit d-m-u@98bbf85 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@kbrock kbrock merged commit b43cc96 into ManageIQ:master Nov 8, 2020
@d-m-u d-m-u deleted the remove_child_with_nil branch November 8, 2020 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants