Skip to content

Fix the api for projects to include project users #1163

@jbubar

Description

@jbubar

Blocks

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 Error with npm library @slack/bolt #1052 issue to unblock it

Resources/Instructions

Issue where this was discovered

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New Issue Approval

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions