-
Notifications
You must be signed in to change notification settings - Fork 70
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
Actually apply CloudManager's api_version #219
Conversation
@miha-plesko looks good to me just need to address the test failures |
97318e5
to
25696c7
Compare
@agrare done, thanks for pointing out. |
end | ||
|
||
module ClassMethods | ||
def raw_connect(server, port, username, password, validate = false) | ||
def raw_connect(server, port, username, password, api_version = '5.5', validate = false) |
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.
If you change the args to raw_connect
you'll need to update the UI task args here https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/mixins/ems_common_angular.rb#L124
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.
😱 Glad to have such a great reviewer, thank you so much, everything would break. Here's the PR ManageIQ/manageiq-ui-classic#3701, best to merge both at same time.
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 was top-of-mind because @slemrmartin is looking at improving the way we validate credentials for exactly this reason 😄
@miha-plesko looks good, just put a PR in to ui-classic and I'll merge this |
We're only storing API version in VMDB, but we never actually apply it when performing API calls (so it defaults to 5.1)! It didn't really matter until now, because most of the API was implemented in v1.5. Acquiring WebMKS ticket, however, requires >5.5. Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
25696c7
to
41c05ae
Compare
I pushed a slight change on this one to explicitly pick API version |
Checked commit miha-plesko@41c05ae with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Actually apply CloudManager's api_version
Actually apply CloudManager's api_version (cherry picked from commit 961b39a) https://bugzilla.redhat.com/show_bug.cgi?id=1563364
Gaprindashvili backport details:
|
We're only storing API version in VMDB, but we never actually apply it when performing API calls (so it always defaults to 5.1)! It didn't really matter until now, because most of the API was implemented in v1.5. Acquiring WebMKS ticket, however, requires >= 5.5.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1560517
Merge in one take with: ManageIQ/manageiq-ui-classic#3701
@miq-bot add_label enhancement,gaprindashvili/yes
@miq-bot assign @agrare