-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Append UriCombinedWildcardFilter in Search class Previously, because the original UriWildcardFilter was not combined, the WildcardFilter and the UriFilter were moved outside of the Search class. Since the UriCombinedWildcardFilter can act as both the original UriFilter and the new WildcardFilter, move it back into the Search __init__ and add a new param separate_wildcard_uri_keys to Search __init__ that will be passed to the UriCombinedWildcardFilter. This param will configure the UriCombinedWildcardFilter to behave in one of two ways: - Expect wildcards and exact matches in url/uri keys. - Expect wildcards in wildcard_uri and exact matches in url/uri keys. The default behavior is to separate wildcards and exact uri matches into separate keys. Since the UriCombinedWildcardFilter is now appended in the Search class, places that were previously appending UriFilter or UriCombinedWildcardFilter, no longer need to do so. The only view that expects wildcards and exact uri's to be in the same key is activity pages and a comment was added to explain why separate_wildcard_uri_keys is set to False. Add tests for the new param sepatate_wildcard_uri_keys in the Search class. * Delete UriFilter The UriCombinedWildcardFilter can act as the UriFilter, thus the individual UriFilter is no longer needed and can be removed. The UriCombinedWildcardFilter and UriFilter's can also be removed from the h/search/__init__.py since they are no longer used outside of the Search class. * fixup: indicate what boolean represents * fixup: use get_search fixture & object in cls def
- Loading branch information
Hannah Stepanek
committed
Oct 18, 2018
1 parent
dc8ef4c
commit b3b814f
Showing
10 changed files
with
69 additions
and
88 deletions.
There are no files selected for viewing
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
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