Conversation
Available PR Commands
See: https://github.com/tahminator/codebloom/wiki/CI-Commands |
Title853: create /leaderboard/current endpoint PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
AdminController["AdminController"] -- "Handles PUT /leaderboard/current" --> EditLeaderboardBody["EditLeaderboardBody (Validation)"];
EditLeaderboardBody -- "Validated data" --> AdminController;
AdminController -- "Updates Leaderboard via" --> LeaderboardSqlRepository["LeaderboardSqlRepository"];
LeaderboardSqlRepository -- "Persists changes" --> Database["Database"];
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title853: create /leaderboard/current endpoint PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
AdminController -- "PUT /leaderboard/current" --> EditLeaderboardBody["Validate Request Body"]
EditLeaderboardBody --> LeaderboardRepository["Get & Update Leaderboard"]
LeaderboardRepository --> AdminController["Return Success"]
|
| Relevant files | |||
|---|---|---|---|
| Api endpoint |
| ||
| New feature |
| ||
| Database |
| ||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title853: create /leaderboard/current endpoint PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
AdminController["AdminController"] -- "PUT /leaderboard/current" --> EditLeaderboardBody["EditLeaderboardBody (Validation)"]
EditLeaderboardBody -- "Validates name & expiry" --> AdminController
AdminController -- "Updates Leaderboard" --> LeaderboardSqlRepository["LeaderboardSqlRepository"]
LeaderboardSqlRepository -- "Persists changes" --> Database["Database"]
|
| Relevant files | |||
|---|---|---|---|
| Enhancement |
| ||
| New feature |
| ||
| Database |
| ||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
9d909da to
5931e4e
Compare
Title853: create /leaderboard/current endpoint PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
A["AdminController"] -- "PUT /leaderboard/current" --> B["EditLeaderboardBody"];
B -- "validates input" --> C["ValidationException"];
A -- "uses" --> D["LeaderboardRepository"];
D -- "implements" --> E["LeaderboardSqlRepository"];
E -- "updates" --> F["Leaderboard Table"];
|
| Relevant files | |||
|---|---|---|---|
| Api changes |
| ||
| New feature |
| ||
| Database changes |
| ||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
Title853: create /leaderboard/current endpoint PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
AdminController["Admin Controller"] -- "PUT /leaderboard/current" --> EditLeaderboardBody["EditLeaderboardBody (Validation)"]
EditLeaderboardBody -- "Validates input" --> LeaderboardRepository["Leaderboard Repository"]
LeaderboardRepository -- "Updates 'Leaderboard' table" --> LeaderboardSqlRepository["LeaderboardSqlRepository"]
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title853: create /leaderboard/current endpoint PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
AdminController["AdminController"] -- "PUT /leaderboard/current" --> EditLeaderboardBody["EditLeaderboardBody (Validation)"]
EditLeaderboardBody -- "Validates input" --> LeaderboardRepository["LeaderboardRepository"]
LeaderboardRepository -- "Fetches & Updates" --> LeaderboardSqlRepository["LeaderboardSqlRepository (SQL Update)"]
|
| Relevant files | |||
|---|---|---|---|
| Api |
| ||
| New feature |
| ||
| Database |
| ||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title853: create /leaderboard/current endpoint PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
AdminController["AdminController (PUT /leaderboard/current)"] --> EditLeaderboardBody["EditLeaderboardBody (Validation)"]
EditLeaderboardBody --> LeaderboardRepository["LeaderboardRepository (updateLeaderboard)"]
LeaderboardRepository --> LeaderboardSqlRepository["LeaderboardSqlRepository (SQL Update)"]
AdminController --> AdminControllerTest["AdminControllerTest (Unit Tests)"]
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
|
/deploy |
Title853: create /leaderboard/current endpoint PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
AdminController["AdminController"] -- "PUT /leaderboard/current" --> EditLeaderboardBody["Validate Request Body"];
EditLeaderboardBody -- "Validates name & expiration" --> LeaderboardRepository["Get & Update Leaderboard"];
LeaderboardRepository -- "Updates 'shouldExpireBy' field" --> AdminController;
AdminController -- "Returns success/failure" --> Client;
|
| Relevant files | |||
|---|---|---|---|
| Enhancement |
| ||
| New feature |
| ||
| Database |
| ||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title853: create /leaderboard/current endpoint PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
AdminRequest["Admin PUT /leaderboard/current Request"] --> ValidateBody["Validate EditLeaderboardBody"]
ValidateBody -- "Valid" --> FetchLeaderboard["Fetch Current Leaderboard (LeaderboardRepository)"]
FetchLeaderboard -- "Found" --> UpdateLeaderboard["Update Leaderboard (LeaderboardRepository)"]
UpdateLeaderboard --> SuccessResponse["Return Success Response"]
FetchLeaderboard -- "Not Found" --> ErrorResponse["Return Not Found Error"]
ValidateBody -- "Invalid" --> ValidationError["Return Validation Error"]
|
| Relevant files | |||
|---|---|---|---|
| Api changes |
| ||
| New feature |
| ||
| Database |
| ||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
853
Description of changes
Added /leaderboard/current endpoint in admin route to update current leaderboard
Checklist before review
Screenshots
Dev
Screen.Recording.2026-03-17.at.7.45.33.PM.mov
Staging
Screen.Recording.2026-03-18.at.7.51.07.PM.mov