REDIT should put Room ID in webSocketContext #418

Closed
opened 2025-02-04 13:06:55 -08:00 by scionaltera · 0 comments
scionaltera commented 2025-02-04 13:06:55 -08:00 (Migrated from github.com)

The room editor puts the entire room object in the webSocketContext, which is an artifact left over from when the game was backed with DynamoDB. Now with Hibernate this can result in stale entities. Instead, the room ID should be stored in the context and the room fetched fresh each time the code runs so that it stays in the correct transaction.

The room editor puts the entire room object in the webSocketContext, which is an artifact left over from when the game was backed with DynamoDB. Now with Hibernate this can result in stale entities. Instead, the room ID should be stored in the context and the room fetched fresh each time the code runs so that it stays in the correct transaction.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
agony-forge/agonyforge#418
No description provided.