Create routes and methods for updating User and Project 'ManagedBy' fields#1988
Conversation
|
@trillium |
|
@jng34 is adding unit tests to this PR and will remove the "waiting to merge" label once this PR is ready to be reviewed. |
|
Hi @jng34! I saw that you added / removed the |
|
@JackHaeg I forgot add one more test and will update the "waiting to merge" label once more when the PR is ready. |
|
@JackHaeg |
trillium
left a comment
There was a problem hiding this comment.
This PR is looking good! Please resolve these two things and we can merge it :)
…UserAndProj' into updateManagedFieldsUserAndProj
trillium
left a comment
There was a problem hiding this comment.
Thanks for your work here James :D
client/src/api/UserApiService.js
Outdated
| } | ||
| return undefined; | ||
| } | ||
| // // Updates user projects in db |
There was a problem hiding this comment.
Can you remove this commented out function
Fixes #1987
What changes did you make and why did you make them ?
UserController.updateManagedProjectsandProjectController.updateManagedByUsersto simultaneously update (add/remove) db for related user and project/:UserId/managedProjectsand new project route/:ProjectIdfor the respective methodsUserController.updateManagedProjectswhen a user adds or removes a project.