refactor: less information sent per SessionUpdate (Backend) #4246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Reduced the amount of information sent when a participant either changes his appearance or status on a board – as mention in #4217.
Before a
PARTICIPANT_UPDATED
event was published containing all information (account and board session). This is now split into two:PARTICIPANT_UPDATED
PARTICIPANT_SESSION_UPDATED
Changelog
UpdatedUser
function to publish only adto.User
to realtimedto.BoardSession
– removing the whole account data and just leaving the id for identificationdto.BoardSession
to realtime for one board going forewarddto.BoardSession
Next Steps
Since this is a breaking change, we need to modify the frontend to accommodate the backend changes. From my perspective either use this branch directly to make changes to the frontend or create a branch based on this one.
After the frontend changes are done, all tests should work again. For now, since I did not change the frontend, those tests obviously fail.
Checklist