-
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
Add DOJO exercise submissions to the backend #2370
Add DOJO exercise submissions to the backend #2370
Conversation
@bryanjenningz is attempting to deploy a commit to the c0d3-prod Team on Vercel. A member of the Team first needs to authorize it. |
Codecov Report
@@ Coverage Diff @@
## master #2370 +/- ##
==========================================
Coverage ? 100.00%
==========================================
Files ? 183
Lines ? 3208
Branches ? 848
==========================================
Hits ? 3208
Misses ? 0
Partials ? 0
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deployment failed with the following error:
|
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.
Looks good.
id Int @id @default(autoincrement()) | ||
createdAt DateTime @default(now()) @db.Timestamptz(6) | ||
updatedAt DateTime @updatedAt @db.Timestamptz(6) | ||
id Int @id @default(autoincrement()) |
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.
What caused the change in formatting? The IDE?
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.
I ran yarn prisma format
and yarn prisma migrate dev
|
||
@@map("exercises") | ||
} | ||
|
||
model ExerciseSubmission { |
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.
I see some benefits for submittedAt
. But it's one of the things that is more suitable to be added once needed.
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.
Yeah, I agree, we can add fields when we need them
Changes:
How to test:
Here are some useful GraphQL queries and mutations for testing (you can run these at /api/graphql):
Add a new module
Add a new exercise to a module
Add an exercise submission to an exercise
Here is the query that gets run when you go to /exercises/js0
This pull request is a part of #2251 and #2253