-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#162163269 Users can rate articles. #21
Merged
Merged
Conversation
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
resolve the conflicts |
Kasulejoseph
approved these changes
Dec 14, 2018
55c2fc7
to
cbe7f71
Compare
Kasulejoseph
approved these changes
Dec 15, 2018
kafuuma
approved these changes
Dec 17, 2018
632fbd4
to
005ed43
Compare
005ed43
to
6d6fd29
Compare
6d6fd29
to
31a1475
Compare
31a1475
to
41b60c7
Compare
41b60c7
to
051363b
Compare
051363b
to
9c3fade
Compare
d9c3e11
to
6825f96
Compare
joshtrigger
approved these changes
Dec 19, 2018
Nta1e
approved these changes
Dec 19, 2018
kafuuma
approved these changes
Dec 19, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this functionality with you and it works well
c08af3b
to
4b2cc0c
Compare
467606b
to
d354faf
Compare
d354faf
to
3ed7751
Compare
3ed7751
to
620c54b
Compare
620c54b
to
bc71b3b
Compare
This commit ensures that users are able to rate and re_rate articles. [Delivers #162163269]
bc71b3b
to
3444ba3
Compare
This commit ensures that users are able to rate and re_rate articles. [Delivers #162163269]
…/ah-backend-athena into ft-rate-article-162163269
collin5
approved these changes
Dec 21, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR ensures that an authenticated user can rate an article and also re-rate an article.
Description of Task to be completed?
A logged in user can rate an article.
A logged in user can re-rate an article
Endpoint working
POST "/api/articles/:slug/rate/"
How should this be manually tested?
Clone repository.
create virtual environment
Install requirements
pip install -r requirements.txt-
Run the projectpython manage.py runserver
Paste URL in postman: http://localhost:8000/api/articles/<slug>/rate/
Body in postman
{ "rating": 1 }
What are the relevant pivotal tracker stories?
![image](https://user-images.githubusercontent.com/40671517/49992945-751fdd80-ff96-11e8-8986-0972dd3e5a77.png)
#162163269
Screenshots: