-
Notifications
You must be signed in to change notification settings - Fork 143
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
Added parts for the NSX-T provider #825
Conversation
The build fails probably because of this change:
In the previous version the security_groups would be converted to an Array and wouldn't be filtered by RBAC. I have looked at other methods and there is no consistent way of returning if the value is nil. Please advise. |
@gtanzillo @bdunne are you able to help with the rbac failure here? |
The subquery collection needs to return an array. So this is correct - All results go through Rbac here manageiq-api/app/controllers/api/base_controller/renderer.rb Lines 192 to 199 in 1ad20d2
Looking at https://github.com/ManageIQ/manageiq/blob/048c86151c95786875f00f233704af01b20aec41/lib/rbac/filterer.rb#L60 security groups should get filtered |
Sorry, my mistake. Had to look up the problem way we changed it. The reason is that mapping to a Array does not support filter as query parameter. Nevertheless there no consistent way of returning the xxx_query_resource within the api. |
Hey @gubbe505 any progress on this? |
Checked commits gubbe505/manageiq-api@0e4e9d0~...fdbcb0f with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint |
Hm I can't replicate the travis error locally, it seems like it can't find one of the tags in the region |
Spec failure looks unrelated to this change, ManageIQ/manageiq#20197 |
@gubbe505 we seem to be missing the specs here |
Added network_services, security_policies and security_policy_rules controllers and added some additional api methods to cloud_networks and providers