-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add flag columns to Exercise #1993
feat: Add flag columns to Exercise #1993
Conversation
@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #1993 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 168 168
Lines 2881 2881
Branches 760 760
=========================================
Hits 2881 2881 |
The flaggedBy column you had proposed would be useful I suggest you add that in this PR as well. |
I had some issues with having two columns with User type. I'll look into Prisma doc and add it. |
prisma/schema.prisma
Outdated
@@ -156,6 +156,7 @@ model User { | |||
modules Module[] | |||
exercises Exercise[] | |||
|
|||
Exercise Exercise[] @relation("flaggedBy") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like flaggedExercises
will be a more suitable and descriptive name for this field.
…acial/c0d3-app into 1/1990-dojoadmin-create-exercises-tab
Related to #1990
This PR adds the
flagged
,flaggedBy
, andflaggedReason
.flagged
refers to exercises that were flagged by students or mentors to be reviewed by the Admin.flaggedReason
is the reason for the flag.flaggedBy
is the user who flagged it.