Skip to content

TeamLead lost when role is changed #224

@taoTimTim

Description

@taoTimTim

When promoting/demoting a member by changing their role, they lose the role of team lead for all teams and the team’s team lead is set to null. There are two tables in the database, one for Admins and one for Team Members, so a whole new account with a new ID is created when changing their role (as is intended), however the team lead is never updated.

Change the backend service logic for promoting/demoting a member to keep track of which teams they are a team lead for, if any, and re-assign their new ID/account as team lead once the new account has been created and saved to the database.

Severity Level – High

Metadata

Metadata

Assignees

Labels

To-DobugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions