Skip to content

Feature/149 server restoration via db#154

Merged
XtophB merged 22 commits into
developmentfrom
feature/149-server-restoration-via-db
Jun 11, 2026
Merged

Feature/149 server restoration via db#154
XtophB merged 22 commits into
developmentfrom
feature/149-server-restoration-via-db

Conversation

@XtophB

@XtophB XtophB commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Context

This PR contains the addition of a restoration feature to re-create lobbies and games when the container dies and restarts.

Description

  • 2 Classes were added, a mapping (helper) and a service restoration class. Service class is has PostConstruct annotated method that will be called when the container comes back up again.
  • Lobby and GameManagers will be recreated from the information stored in the database.

Changes in the code base

  • Addition of Mapping Class
  • Addition of Service Class
  • Service Class uses existing infrastructure from GameService and LobbyService to recreate active games and lobbies.

Changes outside the code base

N/A

Additional information

N/A

@XtophB XtophB linked an issue Jun 9, 2026 that may be closed by this pull request
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@XtophB XtophB marked this pull request as ready for review June 10, 2026 16:29

@the-only-queen-anna the-only-queen-anna left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@tasaje1 tasaje1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@XtophB XtophB merged commit 06141f2 into development Jun 11, 2026
1 check passed
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.

JSON Restoration -> DB Restoration

3 participants