-
Notifications
You must be signed in to change notification settings - Fork 5
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
#164046256 Users Should Follow Each Other #22
Conversation
f5cd7b9
to
dd22308
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.
looks good
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.
Approved
dd22308
to
e4278d6
Compare
e4278d6
to
d697b31
Compare
d697b31
to
515269d
Compare
515269d
to
ee2e9ac
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.
@BrianSerem, Please fix the failing build.
-write tests on following/follower feature -create manytomany field on follower/followee -create views and serializers on this feature -verify if tests running [Finishes #164046256]
ee2e9ac
to
7ce5218
Compare
Was waiting for @ElMonstro 's PR to be merged, it fixed the failing build |
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
Description
This Pull request implements users' abiity to follow each other, an existing user may be followed by another user.
These endpoints will now be working:
GET
/api/profiles/<username>/follow/
- Follow a userDELETE
/api/profiles/<username>/follow/
- Unfollow a userGET
/api/profiles/<username>/following/
- Get a users statistics: followers/followees**Type of change**
How has this been tested
How to test this manually
Using Postman, navigate to https://ah-legion-staging-pr-22.herokuapp.com, use instructions below to test the various endpoints.
: Follow a user
https://ah-legion-staging-pr-22.herokuapp.com/api/profiles/
Unfollow a user:
https://ah-legion-staging-pr-22.herokuapp.com/api/profiles/username/
Get user statistics: Number of followers and followees:
https://ah-legion-staging-pr-22.herokuapp.com/api/profiles/username/followings/
**Checklist:**
Related Stories
#164046256