Repository navigation
feat(core): recording parameter passthrough to breakouts - #25172
Conversation
WalkthroughThis PR threads parent meeting recording settings into breakout room creation by adding autoStartRecording and allowStartStopRecording to the BreakoutRoomDetail message, propagating them through Java/message handlers, and exposing a frontend lockBreakoutRecording flag that forces and disables the record checkbox in the create-breakout-room UI. Sequence DiagramsequenceDiagram
participant Parent as Parent Meeting
participant Handler as CreateBreakoutRoomsCmdMsgHdlr
participant Schema as BreakoutRoomDetail
participant MeetingService as MeetingService / Msg GW
participant Frontend as CreateBreakoutRoom UI
Parent->>Handler: read recordProp (autoStartRecording, allowStartStopRecording)
Handler->>Schema: include autoStartRecording, allowStartStopRecording in BreakoutRoomDetail
Handler->>MeetingService: forward CreateBreakoutRoom with recording fields
MeetingService->>Frontend: CreateBreakoutRoom message contains recording fields
Frontend->>Frontend: read lockBreakoutRecording && isBreakoutRecordable -> forceRecord
Frontend->>Frontend: initialize record checkbox and set disabled when forceRecord
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scala`:
- Around line 113-115: In CreateBreakoutRoomsCmdMsgHdlr, do not trust
msg.body.record directly when constructing BreakoutRoomDetail; compute an
effectiveRecord server-side that enforces the lockBreakoutRecording policy: if
the meeting/props lockBreakoutRecording is enabled, derive effectiveRecord from
the server-side settings (e.g., liveMeeting.props.recordProp.autoStartRecording
and/or allowStartStopRecording) instead of msg.body.record, otherwise fall back
to honoring client intent; then pass this effectiveRecord into the
BreakoutRoomDetail constructor/creation code where msg.body.record is currently
used.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 44c498d0-4df0-4113-8de7-cff8b0173802
📒 Files selected for processing (9)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scalabbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/BreakoutMsgs.scalabbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.javabbb-common-web/src/main/java/org/bigbluebutton/api/messaging/messages/CreateBreakoutRoom.javabbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/OldMeetingMsgHdlrActor.scalabigbluebutton-html5/imports/ui/Types/meetingClientSettings.tsbigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/component.tsxbigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.tsbigbluebutton-html5/private/config/settings.yml
|
Actionable comments posted: 0 |
| breakoutRoomLimit: 16 | ||
| # Allow the presenter role to manage presentations inside breakout rooms | ||
| allowPresentationManagementInBreakouts: true | ||
| # Set to true to remove the ability to disable recording when setting up breakout rooms |
There was a problem hiding this comment.
# Set to true to remove the ability to disable recording when setting up breakout room
->
perhaps?
# Set to true to remove the ability for the breakout recording policy to be changed by the moderator at breakout creation time
|
Actionable comments posted: 0 |
| # Allow the presenter role to manage presentations inside breakout rooms | ||
| allowPresentationManagementInBreakouts: true | ||
| # Set to true to remove the ability for the breakout recording policy to be changed by the moderator at breakout creation time | ||
| lockBreakoutRecording: false |
There was a problem hiding this comment.
I suggest the name lockBreakoutRecordingSetting, it sounds clearer to me because the config is not disabling the feature itself, but preventing moderators from changing the setting value.
|
Actionable comments posted: 0 |
|
✅ Automated tests have passed! |
lockBreakoutRecordingSetting arrived on 3.0 with the recording parameter passthrough to breakouts (#25172): with it on, the Record option of the create-breakout form is forced on and the moderator cannot switch it off, as long as the meeting allows breakout recording. 4.0 had already replaced that form with the sidebar panel (#24691), so the forward merge of #25172 brought the settings.yml key, its comment, the type and the default, but not the behaviour: the panel never read the key and settings.yml kept promising that the recording policy could be locked. Port the 3.0 semantics: forceRecord = lockBreakoutRecordingSetting && isBreakoutRecordable seeds the record state, disables the switch and is re-applied when the meeting's recording policy arrives after the first render. The switch renderer passes the new disabled flag through. Add a Playwright test that drives the setting through the harness's client-side settings override on a meeting created with breakoutRoomsRecord=true (the bbb-web default is false, which hides the option altogether) and checks the switch is on and disabled. It fails on the 4.0.1 client and passes with this change.



What does this PR do?
Applies the following changes to breakout room creation:
autoStartRecordingfrom parent room to breakout roomallowStartStopRecordingfrom parent room to breakout roomlockBreakoutRecordingSetting(default:false) to remove the ability for a moderator to disable breakout room recording when setting up breakout rooms