VRMS
VRMS copied to clipboard
Fix the api for projects to include project users
Blocks
- #1152
Overview
The projects api does not currently return a list of users managing the project. This fix requires updating the projects endpoint to return users assigned to it: users.managedProjects (the managedByUsers field in the projects table does not appear to ever contain any user ids).
Action Items
- [ ] research how to create a many to many relationship with mongo
- [ ] do some research about running a 'migration' to backfill all the data. (this will be a separate issue)
- [ ] rewrite the model to connect the projects to the managedByUsers (add the foreign key to the projects model)
- [ ] Create an issue to run a 'Migration' to have update all of the old data
- [ ] update the api endpoint to return user's info (user name, id, and email)
- [ ] comment on the #1052 issue to unblock it
Resources/Instructions
I want to encourage @chukalicious to do this issue. She is super smart and I feel like this would be a good opportunity to learn some backend.. I do need a bit of help breaking it down tho
Action items need to be re-written. This is an old issue, however, this will allow for the website team to know who is associated with the project when updates are done on VRMS.