Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Use webargs for search argument parsing. #78

Merged
merged 3 commits into from
Aug 3, 2017
Merged

Use webargs for search argument parsing. #78

merged 3 commits into from
Aug 3, 2017

Conversation

cmc333333
Copy link
Member

We want to create swappable search backends (we'll be adding a Postgres
full-text-search shortly). Rather than continuing to copy-paste our custom
argument parsing solution, use webargs to handle type conversions and
argument validation.

It probably makes sense to use this more widely, but this is a start.

CM Lubinski added 2 commits August 1, 2017 18:49
We want to create swappable search backends (we'll be adding a Postgres
full-text-search shortly). Rather than continuing to copy-paste our custom
argument parsing solution, use `webargs` to handle type conversions and
argument validation.

It probably makes sense to use this more widely, but this is a start.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 93.326% when pulling 4512097 on 475-webargs into 7819155 on master.

This reduces the duplication a tad more.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 93.308% when pulling cc29a16 on 475-webargs into 7819155 on master.

@cmc333333
Copy link
Member Author

Thanks @tadhg-ohiggins !

@cmc333333 cmc333333 merged commit 68704d2 into master Aug 3, 2017
cmc333333 pushed a commit that referenced this pull request Aug 10, 2017
Breaking Changes
  * #79 "django.contrib.contenttypes" is now included in library's base
    settings. If copying these over, you'll need to deduplicate.

New Features
  * #79 Allow search handler to be defined via `SEARCH_HANDLER` setting
  * #83 Allow search results page size to be requested
  * #82 Add Postgres backend for search. See README for details.

Misc
  * #77 Allow ALLOWED_HOSTS to be set via env vars
  * #78 Use webargs library for checking search input
  * #80 Test different backends in different tox envs
  * #81 Remove QuantifiedCode badge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants