-
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
use ancestry in replace_children #20990
use ancestry in replace_children #20990
Conversation
should be fixed by the replace_children addition here
should be fixed by the |
7bc16d0
to
7841db9
Compare
it should be the responsibility of the caller to save this, not the mixin code see the related ManageIQ/manageiq#20990
a2293e1
to
cd35a2c
Compare
it should be the responsibility of the caller to save this, not the mixin code see the related ManageIQ/manageiq#20990
91574b0
to
430f52a
Compare
430f52a
to
fb77dbf
Compare
LGTM, @kbrock can you eyeball this as well? |
Checked commit d-m-u@fb77dbf with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint |
the api uses
replace_children
(https://github.com/ManageIQ/manageiq-api/blob/01bb977042d6b75e73a0e568b4b3fd455b9d0ec7/app/controllers/api/vms_controller.rb#L107) which, as it isn't an ancestry method, wasn't extended to use the gem functionality.currently broken: any api call that's updating vm ancestry
thanks @agrare
this fixes the failing api specs
@miq-bot assign @agrare
@miq-bot add_label bug
broken in #20274
related: ManageIQ/manageiq-api#994