Skip to content

Conversation

@jng34
Copy link
Member

@jng34 jng34 commented Jul 23, 2025

Fixes #1987

What changes did you make and why did you make them ?

  • Created new controller methods UserController.updateManagedProjects and ProjectController.updateManagedByUsers to simultaneously update (add/remove) db for related user and project
  • Created new user route /:UserId/managedProjects and new project route /:ProjectId for the respective methods
  • Updated relevant client side files to properly call the UserController.updateManagedProjects when a user adds or removes a project.

@jng34 jng34 requested a review from trillium July 23, 2025 20:40
@jng34
Copy link
Member Author

jng34 commented Jul 23, 2025

@trillium
I configured the client side files to test the new method. When you get a chance to review, please let me know if I should revert the changes to the client side files and keep the new methods and routes separate for this PR.

@JackHaeg
Copy link
Member

@jng34 is adding unit tests to this PR and will remove the "waiting to merge" label once this PR is ready to be reviewed.

@JackHaeg
Copy link
Member

Hi @jng34! I saw that you added / removed the waiting to merge label after making a few new commits. Is this issue ready to review?

@jng34
Copy link
Member Author

jng34 commented Jul 29, 2025

@JackHaeg I forgot add one more test and will update the "waiting to merge" label once more when the PR is ready.

@jng34
Copy link
Member Author

jng34 commented Jul 29, 2025

@JackHaeg
Ready for review.

@JackHaeg
Copy link
Member

Copy link
Member

@trillium trillium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is looking good! Please resolve these two things and we can merge it :)

Copy link
Member

@trillium trillium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work here James :D

}
return undefined;
}
// // Updates user projects in db
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this commented out function

@jng34 jng34 merged commit 9307f59 into hackforla:development Sep 23, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create user.controller and project.controller functions to update model

3 participants