-
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
Check that reconfigure is supported before we try it #18636
Conversation
@miq-bot add_label bug |
@miq-bot add_label hammer/yes |
df0bfb1
to
682bc05
Compare
682bc05
to
441ad79
Compare
Checked commit d-m-u@441ad79 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot remove_label wip |
can i get anyone to look at this please? |
This fix works perfectly and keeps the API happy. Thanks @d-m-u for taking care of this. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect
GET /api/services/:id?attributes=reconfigure_dialog
to check that the reconfigure is valid before running it rather than getting aninternal_server_error from undefined method `dialog_tabs' for nil:NilClass
because the reconfigure was called on a dialog without the endpoint set up (or without fields set to be reconfigureable). We have the supports_feature mixin on the reconfigure so we should use it." services shouldn't behave different than anything else with virtual associations", the man says.
Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1663972