-
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
Rename network module to not overrun network class #16994
Conversation
383d304
to
91c8472
Compare
@miq-bot add_label bug, core |
91c8472
to
a01857a
Compare
Checked commit d-m-u@a01857a with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
👍 LGTM - will need to change the other PRs
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.
@d-m-u This looks good 👍 Are there additional PRs to handle the users of this module?
Yeah, I see a few. I'll open PRs to fix them. |
Ok, I think I updated the clients of the old module name. @gildub Please confirm if you think there are others. Note, I believe we have two modules with the same name now. The PROVIDERS_BY_TYPE constant could be a problem since it looks like it's the same name constant now in manageiq/lib/manageiq/network_discovery/discovery.rb Lines 10 to 20 in ca48813
|
@jrafanie, the name space change is to allow a smooth transition to the new discovery modules location, details in ManageIQ/manageiq-network_discovery#8. There are now effectively 2 modules with the same name and this is going to create an issue with discovery. The best way to address this is use a different name like I believe ultimately having Models STI not allowing to use proper name spaces is something to be addressed because this is a bad structural constraint. Thank you for your time on this one and sorry for the trouble. |
@jrafanie, BTW IPMI is bit of a black sheep because it doesn't have its own space, maybe one day it will ;) |
@jrafanie, ManageIQ/manageiq-providers-vmware#183 is the last one |
We had a regression and tests didn't detect it: ManageIQ#208 ManageIQ/manageiq#16994
Note, Ovirt namespace exists in the client gem and also in the ManageIQ::Providers namespace so we need to clarify which Ovirt we want, namely, the ovirt gem's one. We had a regression and tests didn't detect it: ManageIQ#208 ManageIQ/manageiq#16994
ManageIQ/manageiq#16994 Add missing test for the probe method.
@miq-bot add_label gaprindashvili/yes |
Rename network module to not overrun network class (cherry picked from commit ca48813) https://bugzilla.redhat.com/show_bug.cgi?id=1552665
Gaprindashvili backport details:
|
This addresses the concern here wherein ManageIQ::Network is conflicting with ::Network...in particular on the has_many :networks relationship on ExtManagementSystem (or possibly ManageIQ::Providers::InfraManager, which strangely redefines has_many :networks), an issue which was created here