-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(be): calculate contest participants score (#1643)
* fix(be): add finish time field on contest record * feat(be): add finish time * feat(be): implement the calculation of contest participants score * fix(be): change seed script for test * fix(be): add accepted problem num increment logic * fix(be): fix conflict exception message * fix(be): refactor logic using early return * fix(be): add comment to explain the fix * test(be): add bruno api docs * fix(be): resolve client submission test error * fix(be): add to be equal * fix(be): add promise resolve value of submission update stub * test(be): add a test scenario for creating submission with constest id * test(be): add test scenario for creating submission with workbook id * test(be): add test scenario for creating submission for already AC problem * test(be): add scenario for updating submission result with conest id * chore(be): add comments on schema * feat(be): add contest not found handling logic * docs(be): add no contest found bru doc * docs(be): add create submission for contest with accpeted code burno doc * docs(be): add create submission for contest with wrong answer code bruno doc * docs(be): add create submission for contest with time limit exceeded * test(be): add contest find or throw mocking data * test(be): add enable copy paste field to resolve type check error * docs(be): fix bruno api docs description and assertion * test(be): add invitation code to contest mock data --------- Co-authored-by: Jiyun Park <[email protected]>
- Loading branch information
1 parent
4c2b50a
commit 0c47ae7
Showing
10 changed files
with
490 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.../backend/prisma/migrations/20240408084124_add_finish_time_on_contest_record/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "contest_record" ADD COLUMN "finish_time" TIMESTAMP(3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.