Repository navigation
Add analytics logging for breakout move-user request - #25326
TiagoJacobs merged 1 commit into
Conversation
ChangeUserBreakoutReqMsg (the moderator move-user request) was missing from AnalyticsActor's case branches, so move-user actions left no trace in bbb-apps-akka.log (unlike create/end/time breakout actions). Add the case following the existing pattern. Only the inbound request is logged -- it captures who moved whom and the from/to breakout rooms -- without the join URL; the outbound ChangeUserBreakoutEvtMsg and BreakoutRoomJoinURLEvtMsg carry signed join URLs (participant name + meeting password) and are intentionally not logged to avoid writing credentials to the log.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA single match case for Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Automated tests have passed! |
|



What
When a moderator moves a user into a breakout room (the "Manage breakout rooms" panel -> drag action), the action is processed correctly server-side but leaves no trace in
bbb-apps-akka.log. Every other breakout action (CreateBreakoutRoomsCmdMsg,EndAllBreakoutRoomsMsg,UpdateBreakoutRoomsTimeReqMsg, ...) is logged byAnalyticsActor, but the move-user request falls through to the silent default case.This makes post-incident investigation of breakout-room support tickets effectively impossible — there is no server-side record of how a user ended up in a breakout room.
Why it matters
The
-- analytics --log lines are how operators reconstruct what happened in a meeting. Every other breakout action emits one; the move-user action did not, creating a blind spot exactly where support questions tend to cluster ("how did this user get into that room?").The change
Add one case branch to
AnalyticsActor.scala, next to the existing breakout cases, following the identical pattern:ChangeUserBreakoutReqMsgis the inbound moderator request. Logging it captures who moved whom and the from/to breakout rooms, e.g.:{ "envelope": { "name": "ChangeUserBreakoutReqMsg", "routing": { "meetingId": "<meeting>", "userId": "<moderator>" } }, "core": { "body": { "meetingId": "<meeting>", "userId": "<moved user>", "fromBreakoutId": "<from>", "toBreakoutId": "<to>" } } }Additive logging only — no behavior change.
Why only the request, not the outbound events
The outbound counterparts (
ChangeUserBreakoutEvtMsg,BreakoutRoomJoinURLEvtMsg) carry signed join URLs that embed the participant's display name and the meeting password. Logging them would write those credentials to the akka log in plaintext. The inbound request already captures the full move action without any URL, so observability is complete without exposing credentials. The separate "ask to join" / join-URL-request flow is already observable via its inboundRequestBreakoutJoinURLReqMsg, whichAnalyticsActoralready logs.Verification
Reproduced on a 3.0 from-source dev environment (synthetic users). Before the change the message was absent from
bbb-apps-akka.log; after, a move-user action produces the analytics line:grep -c ChangeUserBreakoutReqMsgbefore:0-> after:1CreateBreakoutRoomsCmdMsg(control):>0before and after (unchanged)The logged body contains only internal identifiers (meeting id, internal user/room ids) — no join URL, no password.