-
Notifications
You must be signed in to change notification settings - Fork 896
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
Network Router: More generic use of SupportsFeatureMixin #13073
Network Router: More generic use of SupportsFeatureMixin #13073
Conversation
@miq-bot add_label ui |
@dclarizio, would you please assign it? |
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'm fine with the changes to supports :network_router
@gildub 👍 for changing to the generic :create
, :update
features.
But could you open for the removal of floating_ip
and security_group
another PR? I also see eg. create_floatin_ip still used in https://github.com/ManageIQ/manageiq/blob/0184457040609a6a27062682c8371fb7c98ddc5b/app/models/manageiq/providers/openstack/network_manager/floating_ip.rb
WRT the changes in network_router_controller.rb
I would defer to @martinpovolny - isnt there a more generic UI way to create tasks? I feel that this shouldnt be done by the Ems.
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
Because of other network items merges and some conflicts, I rebased and forced push, sorry for the inconvenience, bottom line this now only impacting network router. |
to make this consistent with the rest of the codebase you'd have to move the delete_network_router and queueing methods to the base class, leave only the raw methods in the openstack class and queue the |
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
Checked commit https://github.com/gildub/manageiq/commit/e547e04799cfbe70e668abaf2b1e1ed64de73c3a with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
@@ -2,10 +2,26 @@ class ManageIQ::Providers::Openstack::NetworkManager::NetworkRouter < ::NetworkR | |||
include ProviderObjectMixin | |||
include AsyncDeleteMixin | |||
|
|||
supports :create_network_router | |||
supports :delete_network_router | |||
supports :update_network_router |
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.
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.
@durandom, are you referring about moving to the base class all related SupportsFeatureMixin code? If so then yes, I'll be looking into it meanwhile that would be part of a separate pull request.
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.
supports :create_network_router
is still used in ManageIQ::Providers::Openstack::NetworkManager
can this be removed from the NetworkManager?
:delete_network_router
and :update_network_router
is not used anymore. So those can be removed from SupportsFeatureMixin
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.
please at least remove delete and update from the Mixin.
It would be great to get rid of :create_
too
@@ -2,10 +2,26 @@ class ManageIQ::Providers::Openstack::NetworkManager::NetworkRouter < ::NetworkR | |||
include ProviderObjectMixin | |||
include AsyncDeleteMixin | |||
|
|||
supports :create_network_router | |||
supports :delete_network_router | |||
supports :update_network_router |
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.
supports :create_network_router
is still used in ManageIQ::Providers::Openstack::NetworkManager
can this be removed from the NetworkManager?
:delete_network_router
and :update_network_router
is not used anymore. So those can be removed from SupportsFeatureMixin
This pull request is not mergeable. Please rebase and repush. |
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.
@gildub can you move this PR to the new provider repo, close this and add a link to the new PR?
Done, thanks |
More generic use of SupportsFeatureMixin