VRMS icon indicating copy to clipboard operation
VRMS copied to clipboard

Fix the api for projects to include project users

Open jbubar opened this issue 2 years ago • 2 comments

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

Issue where this was discovered

jbubar avatar Jul 12 '22 02:07 jbubar

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

jbubar avatar Aug 09 '22 11:08 jbubar

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.

Screenshot 2023-10-19 at 6 58 54 PM

JackHaeg avatar Oct 19 '23 23:10 JackHaeg