As a Judge, I should be able to assign myself to a submission to indicate to other judges that I am in the process of reviewing the submission.
On the submissions service (app/challenges-platform/services/submissions-service.ts), we need to create a new method called "assign" that takes submisisonId (uuid) and judgeId (uuid) as arguments.
On app/challenges-platform/models/Submission.ts submissions should have a nullable/optional attribute called assignee of type Judge.
We will need to create the Judge model in app/challenges-platform/models and create a judges table in db/schema.ts
At the database level, submissions will need a nullable foreign key to the judges table.
For the scope of this ticket, only implement the assign method, do not worry about populating assignee in other submission service methods.
As a Judge, I should be able to assign myself to a submission to indicate to other judges that I am in the process of reviewing the submission.
On the submissions service (
app/challenges-platform/services/submissions-service.ts), we need to create a new method called "assign" that takessubmisisonId (uuid)andjudgeId (uuid)as arguments.On
app/challenges-platform/models/Submission.tssubmissions should have a nullable/optional attribute calledassigneeof typeJudge.We will need to create the
Judgemodel inapp/challenges-platform/modelsand create a judges table indb/schema.tsAt the database level, submissions will need a nullable foreign key to the judges table.
For the scope of this ticket, only implement the
assignmethod, do not worry about populatingassigneein other submission service methods.