Skip to content

Level (re)publish process rework - #935

Merged
jvyden merged 4 commits into
LittleBigRefresh:mainfrom
Toastbrot236:level
Aug 23, 2025
Merged

Level (re)publish process rework#935
jvyden merged 4 commits into
LittleBigRefresh:mainfrom
Toastbrot236:level

Conversation

@Toastbrot236

Copy link
Copy Markdown
Contributor

This rewrites a few parts in the /lbp/publish endpoint method, aswell as the AddLevel and UpdateLevel methods it calls to be more similar to the creation/updating process of other UGC (playlists for example). For example, the endpoint method doesn't pass a GameLevel object to the database methods anymore, validation is now only done in the endpoint method while creating and modifying GameLevel objects is only done in the database methods. If I understood it correctly, this also gets rid of reflection for those methods. This PR doesn't include anything for API endpoint and database methods.

This also gets rid of no longer nessesary attributes and methods in GameLevelRequest and fixes levels to be properly marked as modded if their contents get updated to contain something modded.

@jvyden
jvyden self-requested a review August 23, 2025 22:14

@jvyden jvyden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MUCH needed refactor. 🙌

@jvyden
jvyden merged commit ca51bcb into LittleBigRefresh:main Aug 23, 2025
3 checks passed
@Toastbrot236
Toastbrot236 deleted the level branch August 29, 2025 16:17
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