-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cloud database servers refresh support #513
Cloud database servers refresh support #513
Conversation
@miq-bot cross-repo-tests ManageIQ/manageiq#21977 ManageIQ/manageiq-schema#653 |
From Pull Request: ManageIQ/manageiq-providers-azure#513
:name => server.name, | ||
:server_type => 'SQL', | ||
:region => server.location, | ||
:status => server.properties&.state, |
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.
@agrare Do we need some sort of normalization on the status field? Or perhaps a raw_status vs normalized_status?
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.
👍 yeah we should map all of the possible azure states onto a a set that would work across providers
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.
@agrare @Fryguy I was not able to replicate any other states aside from "Ready"
. The Azure docs also do not provide the possible states https://docs.microsoft.com/en-us/rest/api/sql/2021-11-01-preview/servers/get#server. As a result, I have left it as https://github.com/ManageIQ/manageiq-providers-azure/pull/513/files#diff-0d177831b5af9863211ff4fa5e8c6810dac1b79b9cf5e132680b8db96f7b6f5cR573-R580. Since deleted servers don't persist on Azure and "Ready" seems to be the only available state, I am wondering whether the status
column is even necessary at this point? Let me know
:ems_ref => server.id, | ||
:name => server.name, | ||
:server_type => 'SQL', | ||
:region => server.location, |
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 think the region was removed in the schema.
96c21ca
to
d5a11bb
Compare
This comment was marked as outdated.
This comment was marked as outdated.
From Pull Request: ManageIQ/manageiq-providers-azure#513
@miq-bot cross-repo-tests ManageIQ/manageiq#21977 ManageIQ/manageiq-schema#653 |
From Pull Request: ManageIQ/manageiq-providers-azure#513
From Pull Request: ManageIQ/manageiq-providers-azure#513
d5a11bb
to
ed99303
Compare
Checked commit nasark@ed99303 with ruby 2.6.9, rubocop 1.19.1, haml-lint 0.35.0, and yamllint |
@agrare Aside from this comment #513 (comment), I think this PR and all its dependents are ready for another look. Thanks |
i.e.
Dependent:
@miq-bot assign @agrare
@miq-bot add_label enhancement