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
Move VIM_SELECTOR_SPEC out of the base EmsRefresh #20
Conversation
d2f223e
to
601074a
Compare
@durandom this is pluggable-providers/provider-extraction territory, can you review? |
601074a
to
f2f56be
Compare
Looks like a move in the right direction :) How about moving the whole Isnt this whole VimBroker construct really Vmware specific? Maybe you can chat with @jrafanie how we can move |
@durandom that's exactly what I'm planning on 😄 right now VcUpdates still needs to be in EmsRefresh so I can't just move it out (yet) but that's coming soon |
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.
👍 should I merge?
@@ -15,7 +15,7 @@ def self.init_console(use_vim_broker = false) | |||
def provider.use_vim_broker?; @__use_vim_broker; end | |||
klass = use_vim_broker ? MiqVimBroker : MiqVimInventory | |||
klass.cacheScope = :cache_scope_ems_refresh | |||
klass.setSelector(EmsRefresh::VcUpdates::VIM_SELECTOR_SPEC) | |||
klass.setSelector(ManageIQ::Providers::Vmware::InfraManager::SelectorSpec::VIM_SELECTOR_SPEC) |
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.
you could use parent to avoid the FQN
klass.setSelector(parent::SelectorSpec::VIM_SELECTOR_SPEC)
but it looks like we seldom use this...
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.
Good point, yeah this is just used when running EmsRefresh
on the rails console
If ManageIQ/manageiq#14205 looks good to you too then go for it :) |
Yeah, the corresponding PR looks great too |
Thanks @durandom ! The rest of |
The
VIM_SELECTOR_SPEC
is used to filter properties that we care about from the VMware provider to reduce memory usage. It is a very VMware specific construct but was inEmsRefresh::VcUpdates
in the main manageiq repository.This moves the selection spec out of
EmsRefresh
underManageIQ::Providers::Vmware::InfraManager::VimSelectorSpec