]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add UnionModel support to filter query generator
authorKevin Benton <blak111@gmail.com>
Fri, 20 Nov 2015 05:16:42 +0000 (21:16 -0800)
committerKevin Benton <kevinbenton@buttewifi.com>
Tue, 24 Nov 2015 10:23:57 +0000 (10:23 +0000)
commit35beca53277d187af0ade05466e81699c6575b07
tree113dac4c343a87211ae344dec36ffecd6abbb111
parentbdfeee1f171f8b97e92da58f49443dfbaaf63b86
Add UnionModel support to filter query generator

The _apply_filters_to_query method did not handle UnionModels
so objects leveraging it (i.e. RBAC policies) did not have
queries applied to them.

This patch corrects it by iterating through the component models
of the UnionModel and applying the filters to each component model.
It also adds an API test on RBAC that exercises the filtering.

Change-Id: I449acf359dd61189bbdacd200d7c41a4a88d3de8
Closes-Bug: #1517818
neutron/db/common_db_mixin.py
neutron/tests/api/admin/test_shared_network_extension.py