-
Notifications
You must be signed in to change notification settings - Fork 4
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
#161966626 report articles #27
Conversation
authors/apps/articles/serializers.py
Outdated
|
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.
Identical blocks of code found in 2 locations. Consider refactoring.
f2f22aa
to
4a52bba
Compare
4a52bba
to
e1b602d
Compare
e1b602d
to
7e4c486
Compare
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.
LGTM
- add endpoint for reporting articles - add endpoint for getting reported articles [#161966626]
7e4c486
to
98b445f
Compare
Code Climate has analyzed commit 98b445f and detected 0 issues on this pull request. View more on Code Climate. |
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.
LGTM
What does this pull request do?
Add the password reset feature
Description of the tasks to be completed?
How should this be manually tested?
Clone the repo
git clone https://github.com/andela/ah-technocrats.git
cd ah-technocrats
Checkout out to this branch
git checkout ft-reporting-articles-161966626
Make virtual environment
python3 -m venv venv
Activate the virtual environment
source venv/bin/activate
Install all the dependencies from the requirements file
pip install -r requirements.txt
Make migrations
python manage.py makemigrations
Apply the migrations
python manage.py migrate
Run the server
python manage.py runserver
With a logged in user, create an article
To report an article, send a post request to the following url
POST/ /api/articles/<slug>/report/
The
<slug>
needs to be a valid article slugThe format of the post data is as follows:
{"report": 2}
The integer value passed to the report data corresponds to a preset list of possible reportable violations
GET / api/articles/reports/
Any background context you want to provide?
What are the relevant Pivotal Tracker Stories
#161966626
Checklist: