Skip to content

Create user.controller and project.controller functions to update model #1987

@trillium

Description

@trillium

Overview

Create functions that will only update the managedBy type fields of the user and project so that when the call to one of those controllers happens it can update the corresponding document for either user or project

Action Items

  • in backend/controllers/user.controller.js add a function that updates only the field managedProjects
    • This is to be called from the project.controller.js file
  • in backend/controllers/project.controller.js add a function that updates only the field managedByUsers
    • This is to be called from the user.controller.js file
  • Create unit tests for all new functionality / update existing unit tests for any changed functionality

It might just to be something that adds or deletes, might need to be two functions

Would be great to have its own test file for these too

Resources

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Final QA (product)

Relationships

None yet

Development

No branches or pull requests

Issue actions