Skip to content

Fix contest creation and make it easier#1008

Merged
Toastbrot236 merged 11 commits into
LittleBigRefresh:mainfrom
Toastbrot236:contest-fix
Feb 7, 2026
Merged

Fix contest creation and make it easier#1008
Toastbrot236 merged 11 commits into
LittleBigRefresh:mainfrom
Toastbrot236:contest-fix

Conversation

@Toastbrot236

Copy link
Copy Markdown
Contributor

This PR is meant to close #1005 by fixing a few bugs in contest creation, while also making it easier by doing the following changes:

  • Request attributes like organizer ID and template level ID are now properly sanitized when creating or updating a contest, with the server returning proper error messages and the latter not throwing if it points to an invalid ID.
  • Error messages for contest creation and updating are hopefully more helpful now
  • Missing template level IDs from creation requests are now also properly handelled.
  • Titles, start and end dates are now explicitly checked to be included alongside organizer ID in creation requests, while other attributes will fall back to default values.
  • If there are no allowed games specified for a contest, all games are allowed.
  • The creation database method now receives an object implementing ICreateContestInfo instead of a GameContest to make it more consistent with the creation methods of other entities

@maks2011-2017

maks2011-2017 commented Jan 26, 2026

Copy link
Copy Markdown

dude whaaat, you are the goat!
@jvyden , you gotta probably check on PRs... maybe? eventually??😅

Signed-off-by: ToasterTheBrot <95178340+Toastbrot236@users.noreply.github.com>
@Toastbrot236 Toastbrot236 merged commit e5c1204 into LittleBigRefresh:main Feb 7, 2026
3 checks passed
@Toastbrot236 Toastbrot236 deleted the contest-fix branch February 9, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

creating contests broken, lol

2 participants