Repository navigation
Conversation
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Allimonae
force-pushed
the
get-filter-match-cycle
branch
from
October 6, 2026 20:52
01d6012 to
84dd53a
Compare
|
This was referenced Oct 9, 2026
spiffyy99
reviewed
Oct 22, 2026
| } | ||
|
|
||
| @PatchMapping("/admin/{id}/score") | ||
| @PatchMapping("/{id}/score") |
Contributor
There was a problem hiding this comment.
why are we taking this out? i thought we were gated by this somewhere
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Overview
Adds a
GET /api/admin/match_cyclesendpoint for listing match cycles.The endpoint accepts optional
period,startTime,endTime, andisDraftquery parameters, which are passed to the existing repo-level filtering as aMatchCycleFilterCriteria. With no parameters, it returns every match cycle. The response is wrapped in the standardApiResponderwith the message "Match Cycles retrieved successfully".MatchCycleService.filterMatchCyclesreplaces the commented-out stub. It delegates toMatchCycleRepo.filterMatchCyclesand maps each result to aMatchCycleResponse.MatchCycleSqlRepo.filterMatchCyclesnow appendsORDER BY run_at DESC, so results come back newest run first.Testing
Added automated tests covering each layer:
MatchCycleControllerTest(new,@WebMvcTest):period,startTime,endTime,isDraft) is parsed and passed into the criteria.startTimesuch asyesterdayreturns 400 withsuccess: false, and the service is never called.MatchCycleServiceTest(new):MatchCycleSqlRepoTest(updated): the expected SQL for the filter query now includesORDER BY run_at DESC.UI Changes
No UI changes. This is a backend API addition only.