Fix the api for projects to include project users
- Dominant language
- JavaScript
- Stars
- 61
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
### 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
The following action items have already been completed via other PRs (see [comment](https://github.com/hackforla/VRMS/issues/1163#issuecomment-4076592977) for updates)
- [x] research how to create a many to many relationship with mongo
- [x] do some research about running a 'migration' to backfill all the data. (this will be a separate issue)
- [x] rewrite the model to connect the projects to the managedByUsers (add the foreign key to the projects model)
- [x] 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
[Issue where this was discovered](https://github.com/hackforla/VRMS/issues/1152#issuecomment-1175872747)
Contributor guide
Assessment
This issue has not been assessed yet.