Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database migration to include project managers on project db entry #1386

Open
4 tasks
jbubar opened this issue Apr 25, 2023 · 2 comments
Open
4 tasks

Database migration to include project managers on project db entry #1386

jbubar opened this issue Apr 25, 2023 · 2 comments

Comments

@jbubar
Copy link
Member

jbubar commented Apr 25, 2023

Overview - Work in Progress

We want to display the PM's for the project on the Project page, and the first step is having that information in the backend.

Currently the project manager information (who can change project meeting times) are being kept in the User model (managedProjects array of project IDs) however, it is not in the project model. What we need is to add the User ids into the managedByUsers array on the project model.

Action Items

  • Add a field to the projects model to keep track of the managers
  • Do a database migration to add this new field to the test db.
  • Create a new db query that adds a specified user id to a project
  • Create a new db query that removes a specified user id from a project
    • These queries may need their own api route
    • These queries should be PUT requests because they're updating a current entrey
  • Note from Trillium that I don't have enough of a mental model of the project right now to point out where in the code this needs to go. Will update.

Resources/Instructions

  • Test
@jbubar
Copy link
Member Author

jbubar commented Jun 20, 2023

Do we still want to do this issue? @Spiteless.

@juliagab56
Copy link
Member

This issue needs to be cleaned up and possibly broken down into two (based on the multiple labels) before we can assign a milestone or move it forward on the board @JackHaeg @jbubar @Spiteless @ExperimentsInHonesty

@jbubar jbubar added size: 2pt Can be done in 7-12 hours and removed x-size: 3pt labels Jul 13, 2023
@JackHaeg JackHaeg added this to the PM Permission Management milestone Jul 20, 2023
@jbubar jbubar changed the title Database migration for to include project managers on project db entry Database migration to include project managers on project db entry Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New Issue Approval
Development

No branches or pull requests

5 participants