Commit 4e07e25
Leaderboard and Room/Round Circular Dependency (#40)
* Support For Joining and Leaving Rooms (RTC Side)
* remove leaderboardKey
* add leaderboardKey
* GetLeaderboard()
* refactored JoinRoom
* fixed FindRoomEndpoint
* refactored LeaveRoom
* compressScoreAndTimeStamp
* inverted time
* deleteLeaderboard
* Organized functions
* Added comments
* Fixed rdb dependency in round_test
* typo
* Fix Some Room Edge Cases That Crash Server
* Moved CreateNewRound and StartRound to RoomController
* removed RoundController
* room cascade delete rounds
* append round to room on round create
* CreateNewRound by roomID path param
* GetLeaderboardEndpoint
* Deleted round-accessor
* Fixed InitiateRoundStart
* on room delete remove leaderboards
* Move request types to separate file. (#37)
* GetLeaderboard room.Rounds null check
* feat: added database relation
* feat: added implementation for round submission
* refactor: refactored auto migrate logic
* test: added unit test
* refactor: changed evaluation order
* feat: resolved remaining TODOs
Added check to prevent double counting AC submissions in a round.
Added check to prevent mismatch between problem and round's problemset.
* refactor: fixed unit test
* fix: added timestamp to submission
* GetLeaderboardByRoomID and GetLeaderboardByRoundID
* Remove test syntax errors
* Create Round Participant if Round is already started
* Leaderboard
add leaderboardKey
GetLeaderboard()
refactored JoinRoom
fixed FindRoomEndpoint
refactored LeaveRoom
compressScoreAndTimeStamp
inverted time
deleteLeaderboard
Organized functions
Added comments
Fixed rdb dependency in round_test
typo
* Moved CreateNewRound and StartRound to RoomController
removed RoundController
room cascade delete rounds
append round to room on round create
CreateNewRound by roomID path param
GetLeaderboardEndpoint
Deleted round-accessor
Fixed InitiateRoundStart
on room delete remove leaderboards
GetLeaderboard room.Rounds null check
GetLeaderboardByRoomID and GetLeaderboardByRoundID
Remove test syntax errors
Create Round Participant if Round is already started
* Merged RoundSubmissionService into RoundService
* fix: fixed test case
* Fixed RoundStart
* Round Start once check
* fix: fixed test case
* Mike Feedback
---------
Co-authored-by: Jude Joubert <[email protected]>
Co-authored-by: Jude Joubert <[email protected]>
Co-authored-by: Solomon Wakhungu <[email protected]>
Co-authored-by: Mike Nguyen <[email protected]>
Co-authored-by: Mike Nguyen <[email protected]>1 parent f5567ba commit 4e07e25
File tree
13 files changed
+1940
-1972
lines changed- central-service
- controllers
- models
- services
13 files changed
+1940
-1972
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
91 | 141 | | |
92 | 142 | | |
93 | | - | |
94 | 143 | | |
95 | 144 | | |
96 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 65 | + | |
72 | 66 | | |
73 | | - | |
74 | | - | |
| 67 | + | |
| 68 | + | |
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
83 | 76 | | |
84 | 77 | | |
85 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
This file was deleted.
0 commit comments