Skip to content

Add analytics logging for breakout move-user request - #25326

Merged
TiagoJacobs merged 1 commit into
bigbluebutton:v3.0.x-developfrom
imdt-claudiop:breakout-move-user-analytics-logging
Jun 24, 2026
Merged

TiagoJacobs merged 1 commit into
bigbluebutton:v3.0.x-developfrom
imdt-claudiop:breakout-move-user-analytics-logging

Conversation

@imdt-claudiop

Copy link
Copy Markdown
Contributor

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 by AnalyticsActor, 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:

// Breakouts
case m: CreateBreakoutRoomsCmdMsg => logMessage(msg)
case m: ChangeUserBreakoutReqMsg => logMessage(msg)   // added

ChangeUserBreakoutReqMsg is 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 inbound RequestBreakoutJoinURLReqMsg, which AnalyticsActor already 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 ChangeUserBreakoutReqMsg before: 0 -> after: 1
  • CreateBreakoutRoomsCmdMsg (control): >0 before and after (unchanged)

The logged body contains only internal identifiers (meeting id, internal user/room ids) — no join URL, no password.

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.
@TiagoJacobs
TiagoJacobs requested a review from ritzalam June 24, 2026 14:54
@coderabbitai

coderabbitai Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0a333984-0bbd-4457-8691-66048680b7a3

📥 Commits

Reviewing files that changed from the base of the PR and between 9832cf4 and 4c39d12.

📒 Files selected for processing (1)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core2/AnalyticsActor.scala

Walkthrough

A single match case for ChangeUserBreakoutReqMsg was added to the Breakouts section of AnalyticsActor.handleBbbCommonEnvCoreMsg. When this message is received, it is now passed to logMessage(msg), consistent with how other breakout-related messages are handled in that block.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding analytics logging for the breakout move-user request.
Description check ✅ Passed The description is directly related to the change and accurately explains the added logging behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@TiagoJacobs
TiagoJacobs merged commit 01459fc into bigbluebutton:v3.0.x-develop Jun 24, 2026
34 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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.

3 participants