Skip to content

Remove yearless client-data backend routes - #728

Merged
Márton Braun (zsmb13) merged 1 commit into
mainfrom
remove-yearless-client-routes
Jul 6, 2026
Merged

Remove yearless client-data backend routes#728
Márton Braun (zsmb13) merged 1 commit into
mainfrom
remove-yearless-client-routes

Conversation

@zsmb13

Copy link
Copy Markdown
Collaborator

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-less yearBasedRoutes() registration. userRoutes, scheduleRoutes, votingRoutes, imageProxyRoutes, conferenceInfoRoutes, goldenKodeeRoutes, and documentsRoutes are now served exclusively under /{year}.
  • routes/utils.kt: Removed the now-dead DEFAULT_YEAR = 2025 fallback in getYearFromPath. A missing/invalid year now returns 404. Doc comments updated accordingly.
  • Tests: Updated ApiTest, YearBasedApiTest, and DocumentsApiTest to use year-prefixed URLs; removed the tests that specifically asserted the removed prefix-less behavior; fixed MapsApiTest to fetch relative map-SVG paths under the /{year} prefix.
  • Docs: Removed mentions of the year-less backwards-compatible routes in CLAUDE.md and docs/ARCHIVE.md.

Verification

  • ./gradlew :backend:test passes (49 tests).
  • Clients are unaffected: YearlyApi and AdminApi already build year-prefixed URLs, and relative map-SVG paths are prepended with the year by YearlyApi.

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.
@zsmb13
Márton Braun (zsmb13) merged commit b5b0c8b into main Jul 6, 2026
5 checks passed
@zsmb13
Márton Braun (zsmb13) deleted the remove-yearless-client-routes branch July 6, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants