Remove yearless client-data backend routes - #728
Merged
Conversation
Drop the backwards-compatible prefix-less (no-year) routes for client data; all client-data routes now live only under /{year}. Removes the dead DEFAULT_YEAR=2025 fallback in getYearFromPath (missing/invalid year now 404), updates tests to use year-prefixed URLs, and updates docs.
Leonid Stashevsky (e5l)
approved these changes
Jul 4, 2026
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.
Summary
Removes the backwards-compatible prefix-less (no-year) backend routes for client data. All client-data routes now live only under the
/{year}prefix.Changes
RoutesModule.kt: Dropped the prefix-lessyearBasedRoutes()registration.userRoutes,scheduleRoutes,votingRoutes,imageProxyRoutes,conferenceInfoRoutes,goldenKodeeRoutes, anddocumentsRoutesare now served exclusively under/{year}.routes/utils.kt: Removed the now-deadDEFAULT_YEAR = 2025fallback ingetYearFromPath. A missing/invalid year now returns 404. Doc comments updated accordingly.ApiTest,YearBasedApiTest, andDocumentsApiTestto use year-prefixed URLs; removed the tests that specifically asserted the removed prefix-less behavior; fixedMapsApiTestto fetch relative map-SVG paths under the/{year}prefix.CLAUDE.mdanddocs/ARCHIVE.md.Verification
./gradlew :backend:testpasses (49 tests).YearlyApiandAdminApialready build year-prefixed URLs, and relative map-SVG paths are prepended with the year byYearlyApi.