coderplex-org / openrank-backend

Free and Open Source Coding Challenges Platform
128 stars 73 forks source link

User Role #42

Open pbteja1998 opened 4 years ago

pbteja1998 commented 4 years ago

Is your feature request related to a problem? Please describe. A user should be able to have different roles(Admin, Candidate, ContestManager, ...etc). Right now there is no way to assign a role to the user.

Describe the solution you'd like

debamitra commented 4 years ago

@pbteja1998 is this open to work on?

pbteja1998 commented 4 years ago

Yes.

pbteja1998 commented 4 years ago

@debamitra Shall I assign it to you?

debamitra commented 4 years ago

@pbteja1998 yes.

pbteja1998 commented 4 years ago

Open a WIP draft PR while developing.

nitinrgoyal commented 4 years ago

As per my understanding, OpenRank will be used by companies in-house. In that case, there should be 3 roles.

debamitra commented 4 years ago

@pbteja1998 @nitinrgoyal Have raised a Draft PR for this issue, please provide some feedback on what needs to change.

Are we also writing some tests?

Make sure that user will have a Candidate role when the user registers through api/register route. - this one is still pending

krushiraj commented 4 years ago

It's good to have tests written for this project. I guess we should mandate to write tests for anything that is added so that it won't break anything existing in the future. I suggest to go with Mocha or Jest. Any thoughts @pbteja1998 @nitinrgoyal