-
Notifications
You must be signed in to change notification settings - Fork 42
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
Temporarily remove many-to-many from NetworkRouter #102
Conversation
@@ -1,3 +1,4 @@ | |||
class ManageIQ::Providers::Nuage::NetworkManager::NetworkRouter < ::NetworkRouter | |||
has_many :floating_ips, :dependent => :destroy | |||
# TODO(miha-plesko): uncomment when https://github.com/ManageIQ/manageiq-schema/pull/217 is merged | |||
# has_many :floating_ips, :dependent => :destroy |
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.
the best might be to define:
def floating_ips
FloatingIp.none
end
so you can have it used in UI or other places, but it will just return blank result until properly implemented
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.
Makes sense, done.
With this commit we remove relation which allows NetworkRouter to relate to multiple FloatingIps directly (instead via CloudNetwork). Until ManageIQ/manageiq-schema#217 is merged we are not able to use such direct relation or else UI crashes. Signed-off-by: Miha Pleško <[email protected]>
031e3dc
to
4d2221a
Compare
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.
👍 looks good as a temporary solution
Checked commit miha-plesko@4d2221a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
With this commit we remove relation which allows NetworkRouter to relate to multiple FloatingIps directly (instead via CloudNetwork). Until ManageIQ/manageiq-schema#217 is merged we are not able to use such direct relation or else UI crashes.