-
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
Default connection_status to connected #18216
Conversation
For most providers, connection_status is populated For cloud providers, it is sometimes left to be nil. Since it doesn't make sense. But nil for them actually mean connected. So this changes what nil means. We're also modifying the parsers for the providers to the nil will not get into the database.
Checked commit kbrock@1b22b67 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Hm, isn't this almost the opposite of what we were talking about earlier when we said |
@miha-plesko Yes, I like not interpreting In the mean time, we need to interpret |
@agrare @kbrock I think we should close this PR and proceed like this: Quickly fix Hammer issue for vCloud with minimum impact on other providers:
Properly solve the problem on master only:
WDYT? |
Hey @miha-plesko
👍 I agree with this
I prefer this PR over that one because changing the default_value_for won't help for existing vms but yes I agree we should migrate nils => connected and update the parsers so we don't need this. |
@miha-plesko I'm concerned that the search functionality won't work because we'll be looking for cloud vms and they won't show up because That is my driving reason for this PR and for joining this conversation |
@miq-bot remove_label hammer/yes |
For most providers, connection_status is populated
For cloud providers, it is sometimes left to be nil.
Since it doesn't make sense.
But nil for them actually mean connected.
So this changes what nil means.
We're also modifying the parsers for the providers to the nil
will not get into the database.
Related to:
Fixes: ManageIQ/manageiq-ui-classic#4909
/cc @agrare @miha-plesko