-
Notifications
You must be signed in to change notification settings - Fork 897
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
Return result of destroy action to user, not nil #14097
Conversation
@isimluk Any way to write a test validating that destroy only gets called once? It would then fail before this PR and succeed with it. |
+1 @isimluk I am glad I could help. :-) although the hook seems to be conditional https://github.com/Ladas/manageiq/blob/cdc6c6319475c225cf0e5b970298c8a5a6bf8d29/app/models/orchestration_template_vnfd.rb#L6-L6 so it should not fire, unless you change the condition? |
Good food for thoughts. This will need to have some work on @miq-bot add_label wip |
Fixex https://bugzilla.redhat.com/show_bug.cgi?id=1414881 The cause of the bug was, that delete_resource action must return action-result-hash and the raw action was returning nil.
@abellotti, I have run into a dead end with #14266, so I changed this pr to just fix the bug. It is now ready for review. Thanks! |
Some comments on commits isimluk/manageiq@96e621c~...5af77c5 spec/requests/api/orchestration_template_spec.rb
|
Checked commits isimluk/manageiq@96e621c~...5af77c5 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
That fix looks right. Is this euwe/yes still ? if so does it depend on other PRs and have those been euwe/yes. Thanks. |
looks great 👍 |
Yes.
Unfortunately, no. Dust settles on the other parts of the code. |
Thanks @isimluk 👍 |
Return result of destroy action to user, not nil (cherry picked from commit 9aa0cfe) https://bugzilla.redhat.com/show_bug.cgi?id=1434952
Euwe backport details:
|
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1414881
The cause of the bug was, that delete_resource action must return action-result-hash and this was returning nil.
@miq-bot add_label bug, euwe/yes, api
@miq-bot assign @abellotti