-
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
Load all the values along with their key names into the field update method #17973
Conversation
@miq-bot assign @gmcculloug |
Failure, smailure, it's the same sporadic failure we're seeing everywhere, the number precision thingy, it's got nothing to do with this change. |
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.
app/models/dialog.rb
Outdated
@@ -89,7 +89,7 @@ def validate_field_data | |||
end | |||
|
|||
def load_values_into_fields(values, overwrite = true) | |||
values = values.with_indifferent_access | |||
values = values.with_indifferent_access if values.kind_of?(Hash) |
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.
What else could values
be if not a hash?
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.
It's a string in the api tests.
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.
That sounds wrong to me, especially when []
is called on it here
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.
Sounds like the tests need to be fixed
cc65351
to
65d21d1
Compare
65d21d1
to
545e4bc
Compare
@miq_bot remove_label wip |
The fact that this doesn't break any tests (before or after the change) makes me think we don't have enough tests around it... |
545e4bc
to
428ec31
Compare
428ec31
to
966dc9d
Compare
Checked commit d-m-u@966dc9d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@bdunne I think this should be g/yes cause it's for a g bug. |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1594469.
The main changes that got merged a little while ago, combined with #17855, break the custom actions API specs on ManageIQ/manageiq-api#448 because I'm an idiot who wrote that line that's breaking this to start with which shouldn't be just loading the values and definitely shouldn't just be loading the first one. Mea maxima culpa.