-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature/228 follow users projects #258
Conversation
changed user model tho have UserProject object.
Changed previous commit because there was an error with duplicate ids
…rResource result UserFollowedProject class is meant for linking tables
…m/DigitalExcellence/dex-backend into feature/228-follow-users-projects
Changed names to be in line with naming convention.
This commit makes it possible to follow other users. This commit includes the model,repository,service,dbset needed for following a user. Co-Authored-By: Dave Bouman <49709450+DaveBouman@users.noreply.github.com>
Added inversed props for linking table
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.
Thanks for your pull request.
Please change endpoints so they return ResourceResults. Then also add Postman tests for removing follow, now after one iteration Postman tests do not work anymore because you'll get HTTPstatus 409 You are already following this user.
I also think the FollowProject endpoints should be in the ProjectController.
Please also look into the migration because I think something is wrong.
In resources changed using models to using resources instead. Moved following projects from user controller to project controller. Added comments and got rid of all warnings. Co-Authored-By: Dave Bouman <49709450+DaveBouman@users.noreply.github.com>
Since #240 is now merged, make sure the documentation is updated! |
…m/DigitalExcellence/dex-backend into feature/228-follow-users-projects
…s' into feature/228-follow-users-projects
…-projects' into feature/228-follow-users-projects" This reverts commit b018704.
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 like the merge was good now. 👍
Please make sure all swagger documentation is updated. Also please change Postman tests as discussed.
…instead of random names which fail.
… uses the id's instead of the names since they can be different and can not be tested.
XML conflicts have been resolved. Also Postman now uses Id's instead of names so tests are run everywhere correct now. |
…m/DigitalExcellence/dex-backend into feature/228-follow-users-projects
Description
Ability to follow users and projects.
Type of change
Checklist
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
These steps will be used during release testing.
Everything happens in User Controller, pass in the ID of the project or user you want to follow, this is not the id of logged in user.
Login in and do a post to user/follow/user/{userId}
Unfollow the user with a delete method.
Follow a project user/follow/project/{projectId}
Unfollow the project
Link to issue
Closes: #issuenumber