Skip to content

Rework API level editing, refactor icon validation#1040

Merged
Toastbrot236 merged 3 commits into
LittleBigRefresh:mainfrom
Toastbrot236:lel-edit
Mar 2, 2026
Merged

Rework API level editing, refactor icon validation#1040
Toastbrot236 merged 3 commits into
LittleBigRefresh:mainfrom
Toastbrot236:lel-edit

Conversation

@Toastbrot236

Copy link
Copy Markdown
Contributor
  • The normal and the admin API endpoint for editing a level now use separate request body classes/interfaces and DB methods
  • These DB methods no longer use reflection. They now update levels similarly to how most other similar methods do it now (handle every wanted attribute separately). Closes Dont use reflection to update level details #579
  • All API endpoints which need to validate icons now use one helper method for this. Removes duplicate code and inconsistent validation processes this way.

@Toastbrot236 Toastbrot236 merged commit 941058e into LittleBigRefresh:main Mar 2, 2026
3 checks passed
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.

Dont use reflection to update level details

1 participant