Skip to content

Starred Goals Should be Stored on the Server #125

@cjs8487

Description

@cjs8487

Starred goals are currently stored as react state on the client. This means it’s lost on refresh and cannot be (easily) synced across multiple windows or persisted in the event of a server crash, restart, or the room being incorrectly closed.

With the recent changes to treat players as first class objects on the server and serialize them in the database, we should move this information to the server, storing the data locally in the player instance and serializing it to the database alongside the rest of the player data. This data should not be sent to other players, and should only be appended to messages being sent out to the player they belong to.

This may be a good opportunity to additionally fix #111 as it is much easier to detect and react to these events on the server than it is on the client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiProblem impacts the API serverenhancementNew feature or requestwebProblem impacts the website

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions