Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: less information sent per SessionUpdate (Backend) #4246

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

BenedictHomuth
Copy link
Collaborator

@BenedictHomuth BenedictHomuth commented Jun 20, 2024

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:

  • Account (ID, name, avatar, account type) – for now remained PARTICIPANT_UPDATED
  • Board Session (connected, banned, etc.) – named PARTICIPANT_SESSION_UPDATED

Changelog

  • Simplified DB call, since we just need the session IDs and not all data per entry
  • Updated the UpdatedUser function to publish only a dto.User to realtime
  • Updated the dto.BoardSession – removing the whole account data and just leaving the id for identification
  • Simplified the UpdatedSession function, since we only need to publish a dto.BoardSession to realtime for one board going foreward
  • Adapted tests to use new dto.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

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • The light- and dark-theme are both supported and tested
  • The design was implemented and is responsive for all devices and screen sizes
  • The application was tested in the most commonly used browsers (e.g. Chrome, Firefox, Safari)

@BenedictHomuth BenedictHomuth self-assigned this Jun 20, 2024
@BenedictHomuth BenedictHomuth linked an issue Jun 20, 2024 that may be closed by this pull request

This comment has been minimized.

Copy link

octomind-dev bot commented Jun 20, 2024

🐙 Octomind

Test Report: 7/14 successful.

description status details
About Section Visibility Test Passed ✅ click
change avatar Failed ❌ click
check Privacy Policy Passed ✅ click
check terms & conditions Passed ✅ click
close cookie banner - front page Passed ✅ click
close cookie banner - sign-in Passed ✅ click
create and delete board columns Failed ❌ click
create_and_delete_notes_and_actions_v2 Failed ❌ click
create lean coffee board Failed ❌ click
edit_notes_and_actions_v5 Failed ❌ click
get started Passed ✅ click
share_session Failed ❌ click
sign-in Passed ✅ click
test all ways to open the setup flow Failed ❌ click

commit sha: 4fcad87

@BenedictHomuth BenedictHomuth changed the title refactor: SessionUpdate (Backend) refactor: less information sent per SessionUpdate (Backend) Jun 22, 2024
Copy link

github-actions bot commented Jul 7, 2024

The deployment to the dev cluster was successful. You can find the deployment here: https://4246.development.scrumlr.fra.ics.inovex.io
This deployment is only for testing purposes and will be deleted after 1 week.
To redeploy rerun the workflow.
DO NOT STORE IMPORTANT DATA ON THIS DEPLOYMENT

Deployed Images
  • ghcr.io/inovex/scrumlr.io/scrumlr-frontend:sha-ed17312

  • ghcr.io/inovex/scrumlr.io/scrumlr-server:sha-ed17312

@Schwehn42
Copy link
Collaborator

@BenedictHomuth I'll do the frontend part as soon as all/most of the other active PRs are merged into main – I'm worried that with such a change, there are just too many conflicts bound to happen 😅

@BenedictHomuth
Copy link
Collaborator Author

@BenedictHomuth I'll do the frontend part as soon as all/most of the other active PRs are merged into main – I'm worried that with such a change, there are just too many conflicts bound to happen 😅

Definitely worth its own release 😅
Hopefully, TS will make your life a little easier there. Let me know if I can help in any way.

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.

BoardEvent "ParticipantUpdated" sends too much information
2 participants