-
Notifications
You must be signed in to change notification settings - Fork 125
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
Model relation "SecurityGroup belongs to NetworkRouter or CloudSubnet" #258
Model relation "SecurityGroup belongs to NetworkRouter or CloudSubnet" #258
Conversation
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 👍
@agrare are you okay with this? |
Kindly ask either @Fryguy or @agrare to get this one in. Need to do a bunch of followup PRs, namely:
And would't want to get too close to code-freeze. |
@miha-plesko you don't need the parens for |
With this commit we add a foreign key on SecurityGroup to follow what Nuage needs. In Nuage, security group is something that only exists in a scope of either L3 domain (NetworkRouter) or L2 domain (CloudSubnet::L2). MIQ is currently not able to model such relation yet, hence this PR. Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
3d80875
to
4bef54a
Compare
@agrare so no parens shall be. |
Checked commit miha-plesko@4bef54a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 db/migrate/20180817152200_add_network_router_id_to_security_group.rb
db/migrate/20180817152201_add_cloud_subnet_id_to_security_group.rb
|
With this commit we add a foreign key on SecurityGroup to follow what Nuage needs. In Nuage, security group is something that only exists in a scope of either L3 domain (NetworkRouter) or L2 domain (CloudSubnet::L2).
MIQ is currently not able to model such relation yet, hence this PR.
@miq-bot add_label enhancement
@miq-bot assign @Fryguy
@Ladas @agrare looking forward to your opinion. Need for this was revealed when enhancing targeted refresh where we would need something like
network_router.security_groups
, but there is no such relation yet... Is schema already frozen for Hammer?