-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement: Add filtering in the ListPolicies RPC (#1642)
* enhancement: Add new FilterPolicies RPC Signed-off-by: Sam Lock <sam@swlock.co.uk> * Adds support to filter by `name` (regex), `scope` and `version`. * Adds application defined function for SQLite driver. * dedup filter query definition Signed-off-by: Sam Lock <sam@swlock.co.uk> * moved regexp cache to util pkg. made scope match use regexp also Signed-off-by: Sam Lock <sam@swlock.co.uk> * made attribute naming more consistent Signed-off-by: Sam Lock <sam@swlock.co.uk> * use client specific model for filter policies options Signed-off-by: Sam Lock <sam@swlock.co.uk> * make generate Signed-off-by: Sam Lock <sam@swlock.co.uk> * add post-filtering for non-regexp compatible DBs. Plus some test refactoring Signed-off-by: Sam Lock <sam@swlock.co.uk> * minor log wording changes Signed-off-by: Sam Lock <sam@swlock.co.uk> * make generate and make lint Signed-off-by: Sam Lock <sam@swlock.co.uk> * merged FilterPolicies into preexisting ListPolicies RPC Signed-off-by: Sam Lock <sam@swlock.co.uk> * docs update Signed-off-by: Sam Lock <sam@swlock.co.uk> * minor touches Signed-off-by: Sam Lock <sam@swlock.co.uk> * use case insensitive regexp Signed-off-by: Sam Lock <sam@swlock.co.uk> * Apply suggestions from code review Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com> Signed-off-by: Sam Lock <sam@swlock.co.uk> * use RWLock in regex cache Signed-off-by: Sam Lock <sam@swlock.co.uk> * version now supports regex too Signed-off-by: Sam Lock <sam@swlock.co.uk> * fixes for review comments Signed-off-by: Sam Lock <sam@swlock.co.uk> --------- Signed-off-by: Sam Lock <sam@swlock.co.uk> Co-authored-by: Charith Ellawala <charithe@users.noreply.github.com>
- Loading branch information
1 parent
fb98b74
commit c2fcf27
Showing
35 changed files
with
791 additions
and
148 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.