Closed ThaDeveloper closed 5 years ago
@PromasterGuru Will fix this, they have just arisen after https://github.com/andela/ah-infinity-stones/pull/40 has been merged to develop.
@codeplus254 Yes, it's possible. So let's say you have filtered by author
and you get a 100 hits, you can add another filter params like title
or tag
to narrow it down to a few hits.
Code Climate has analyzed commit 64555e82 and detected 1 issue on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 1 |
View more on Code Climate.
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
git clone -b ft-search-and-filter-articles-161966928 https://github.com/andela/ah-infinity-stones
and$ cd ah-infinity-stones
virtualenv -p python3 venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
to install the dependenciesActivate the env variables by
$source .env
.$ python3 manage.py migrate
$ python3 manage.py runserver
http://127.0.0.1:8000/api/users/
through Postman, provide inputs in the following format and create account.Check your email and activate account. Use the registration token to acess the following endpoints:
http://127.0.0.1:8000/api/articles
- Post an article. Try posting several articles to filterhttp://127.0.0.1:8000/api/articles/search/?q=<keyword1, keyword2>
- Search by keywords, one or more.http://127.0.0.1:8000/api/articles/search/?tag=<author>
- Filter bytag,author,title
python3 manage.py test authors.apps.articles.tests.test_views.ArticleSearchTest
What are the relevant pivotal tracker stories?
#161966928
Screenshots