Repository navigation
refactor (gql-server): Refactor breakout room schema to simplify user linkage - #24228
gustavotrott merged 8 commits into
Conversation
WalkthroughThis PR renames and restructures breakout-related identifiers, DB models, DAOs, metadata, and frontend types across the stack. Key factual changes: breakoutRoom primary key renamed to breakoutRoomMeetingId and externalId → breakoutRoomExternalId; parentId/parentMeetingId and meetingId field usages harmonized; BreakoutUser/BreakoutRoomUser case classes expanded to include internal and external IDs (userId, extId) and constructors/signatures updated; BreakoutRoomUserDAO and BreakoutRoom DB models/tables updated to new column names and method signatures; UserBreakoutRoomDAO removed; SQL migrations, views, triggers, and Hasura metadata updated; GraphQL queries/mutations and many frontend TypeScript types/components were updated to use breakoutRoomMeetingId and isUserCurrentlyInRoom; several server handlers switched to using extId for user lookup and per-user DAO update calls. Sequence Diagram(s)mermaid Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (4)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2024-10-10T12:15:03.265ZApplied to files:
📚 Learning: 2025-05-09T14:36:13.418ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (22)
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: 4
♻️ Duplicate comments (1)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts (1)
79-84: LGTM!The update correctly uses the renamed
parentMeetingIdfield. Note: This logic is duplicated inservice.js—see the refactoring suggestion in that file's review.
🧹 Nitpick comments (3)
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsx (1)
124-124: Rename state variable for consistency with the refactoring.The state variable
requestedBreakoutRoomIdshould be renamed torequestedBreakoutRoomMeetingIdto maintain consistency with the schema refactoring throughout the codebase.Apply this diff:
- const [requestedBreakoutRoomId, setRequestedBreakoutRoomId] = React.useState<string>(''); + const [requestedBreakoutRoomMeetingId, setRequestedBreakoutRoomMeetingId] = React.useState<string>('');Additionally, update all references to this variable on lines 153, 221, 242, and 249.
bigbluebutton-html5/imports/ui/components/audio/service.js (1)
37-46: Consider extracting the duplicated meetingId logic.The changes correctly use the renamed
parentMeetingIdfield. However, this exact logic for determining the meetingId based on breakout context is duplicated inbigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts(lines 79-84). Consider extracting this logic into a shared utility function to improve maintainability.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutRoomUsersUpdateMsgHdlr.scala (1)
23-43: LGTM! User lookup and update logic correctly refactored.The changes correctly implement the new approach:
Lines 25, 31: Using
breakoutRoomUser.extIdinstead ofbreakoutRoomUser.idis appropriate, as the external ID provides the correct link between breakout room users and parent meeting users.Lines 38-43: The per-user update approach calling
BreakoutRoomUserDAO.updateUserJoinedfor each user is clearer and more explicit than the previous batch approach, aligning with the simplified schema wherebreakoutRoom_usertable directly tracks the linkage.If many users frequently join breakout rooms simultaneously, consider whether the per-user database updates could create performance bottlenecks. The current implementation enqueues each update individually. However, given that breakout room joins are typically staggered and the database connection uses batching (as seen in
DatabaseConnection), this should be acceptable.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (48)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutHdlrHelpers.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutRoomUsersUpdateMsgHdlr.scala(2 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/ChangeUserBreakoutReqMsgHdlr.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/EndAllBreakoutRoomsMsgHdlr.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/EjectUserFromMeetingCmdMsgHdlr.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala(5 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala(3 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala(3 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserBreakoutRoomDAO.scala(0 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/domain/BreakoutRoom2x.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/RegisteredUsers.scala(0 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/running/HandlerHelpers.scala(1 hunks)bbb-graphql-actions/src/actions/breakoutRoomRequestJoinUrl.ts(2 hunks)bbb-graphql-server/bbb-graphql-schema.md(5 hunks)bbb-graphql-server/bbb_schema.sql(10 hunks)bbb-graphql-server/metadata/actions.graphql(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom.yaml(3 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_assignedUser.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_createdLatest.yaml(2 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_lastJoinedRoom.yaml(2 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_participant.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_user.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_meeting_breakoutPolicies.yaml(2 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_breakoutRoom_lastAssignedRoom.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_breakoutRoom_lastJoinedRoom.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_current.yaml(2 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_current_breakoutRoom_lastAssignedRoom.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_current_breakoutRoom_lastJoinedRoom.yaml(1 hunks)bbb-graphql-server/metadata/databases/BigBlueButton/tables/tables.yaml(1 hunks)bbb-graphql-server/metadata/query_collections.yaml(1 hunks)bigbluebutton-html5/imports/ui/Types/meeting.ts(1 hunks)bigbluebutton-html5/imports/ui/Types/meetingStaticData.ts(1 hunks)bigbluebutton-html5/imports/ui/Types/user.ts(1 hunks)bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts(1 hunks)bigbluebutton-html5/imports/ui/components/audio/service.js(1 hunks)bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx(6 hunks)bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/queries.ts(2 hunks)bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsx(6 hunks)bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/queries.ts(2 hunks)bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/queries.ts(4 hunks)bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/room-managment-state/component.tsx(1 hunks)bigbluebutton-html5/imports/ui/components/breakout-room/mutations.ts(1 hunks)bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx(2 hunks)bigbluebutton-html5/imports/ui/core/graphql/queries/currentUserSubscription.ts(1 hunks)bigbluebutton-html5/imports/ui/core/graphql/queries/users.ts(1 hunks)
💤 Files with no reviewable changes (2)
- akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserBreakoutRoomDAO.scala
- akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/RegisteredUsers.scala
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: jaapjansma
Repo: bigbluebutton/bigbluebutton PR: 21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
📚 Learning: 2024-10-10T12:15:03.265Z
Learnt from: jaapjansma
Repo: bigbluebutton/bigbluebutton PR: 21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
Applied to files:
bigbluebutton-html5/imports/ui/components/breakout-room/mutations.tsakka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/ChangeUserBreakoutReqMsgHdlr.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scalabigbluebutton-html5/imports/ui/Types/user.tsakka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/EjectUserFromMeetingCmdMsgHdlr.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/domain/BreakoutRoom2x.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scalabigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsxbbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_assignedUser.yamlakka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scalabigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsxakka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/EndAllBreakoutRoomsMsgHdlr.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutRoomUsersUpdateMsgHdlr.scalabigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/queries.tsakka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scalabigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsxakka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutHdlrHelpers.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/running/HandlerHelpers.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala
📚 Learning: 2025-05-09T14:36:13.418Z
Learnt from: gustavotrott
Repo: bigbluebutton/bigbluebutton PR: 23137
File: bbb-graphql-server/bbb_schema.sql:2022-2027
Timestamp: 2025-05-09T14:36:13.418Z
Learning: User acknowledged that adding an ORDER BY clause to the DISTINCT ON query in v_breakoutRoom_commonProperties view makes sense but deferred implementation since "startedAt" values are mostly the same for all rooms.
Applied to files:
bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_lastJoinedRoom.yamlbbb-graphql-server/bbb_schema.sqlbbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_breakoutRoom_lastJoinedRoom.yaml
🧬 Code graph analysis (13)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scala (1)
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/BreakoutMsgs.scala (1)
BreakoutRoomDetail(40-66)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts (2)
bigbluebutton-html5/imports/ui/components/audio/service.js (5)
parentMeetingId(40-40)meetingStaticStore(38-38)isBreakout(39-39)meetingId(41-43)meetingId(88-88)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (1)
meetingId(36-40)
bigbluebutton-html5/imports/ui/components/audio/service.js (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala (1)
meetingId(43-66)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (1)
meetingId(36-40)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/domain/BreakoutRoom2x.scala (1)
bigbluebutton-html5/imports/ui/components/audio/service.js (1)
userId(89-89)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala (2)
meetingId(43-66)insert(98-164)bigbluebutton-html5/imports/ui/components/audio/service.js (3)
meetingId(41-43)meetingId(88-88)parentMeetingId(40-40)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (3)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (1)
breakoutRoomMeetingId(27-27)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (1)
meetingId(36-40)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/DatabaseConnection.scala (2)
DatabaseConnection(13-89)enqueue(42-45)
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx (4)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (1)
breakoutRoomMeetingId(46-49)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (1)
breakoutRoomMeetingId(27-27)bigbluebutton-html5/imports/ui/components/audio/container.jsx (1)
currentUser(151-157)bigbluebutton-html5/imports/ui/components/user-list/user-list-content/breakout-room/container.jsx (1)
currentUser(19-25)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/EndAllBreakoutRoomsMsgHdlr.scala (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (1)
BreakoutRoomDAO(52-192)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/NotificationDAO.scala (1)
NotificationDAO(34-72)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutRoomUsersUpdateMsgHdlr.scala (3)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (2)
BreakoutRoomUserDAO(30-127)updateUserJoined(59-69)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/RegisteredUsers.scala (4)
findWithBreakoutRoomId(74-79)RegisteredUsers(11-240)RegisteredUsers(242-259)updateUserLastBreakoutRoom(176-181)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Users2x.scala (1)
updateLastUserActivity(89-99)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (5)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/domain/BreakoutRoom2x.scala (2)
BreakoutRoom2x(3-26)BreakoutUser(28-28)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/RegisteredUsers.scala (1)
RegisteredUser(261-292)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (1)
breakoutRoomMeetingId(46-49)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/DatabaseConnection.scala (2)
DatabaseConnection(13-89)enqueue(42-45)bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/queries.ts (1)
breakoutRoom(8-19)
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsx (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (1)
breakoutRoomMeetingId(46-49)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (1)
breakoutRoomMeetingId(27-27)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutHdlrHelpers.scala (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/domain/BreakoutRoom2x.scala (1)
BreakoutUser(28-28)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (3)
MeetingBreakoutRoomPropsDAO(43-64)insert(44-63)meetingId(36-40)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (2)
insert(53-107)breakoutRoomMeetingId(46-49)
🪛 markdownlint-cli2 (0.18.1)
bbb-graphql-server/bbb-graphql-schema.md
118-118: Link fragments should be valid
Expected: #type-breakoutroom_user; Actual: #type-breakoutRoom_user
(MD051, link-fragments)
119-119: Link fragments should be valid
Expected: #type-breakoutroom_user; Actual: #type-breakoutRoom_user
(MD051, link-fragments)
234-234: Link fragments should be valid
Expected: #type-breakoutroom_user; Actual: #type-breakoutRoom_user
(MD051, link-fragments)
235-235: Link fragments should be valid
Expected: #type-breakoutroom_user; Actual: #type-breakoutRoom_user
(MD051, link-fragments)
🔇 Additional comments (78)
bbb-graphql-server/metadata/actions.graphql (2)
60-70: Verify consistency of breakout parameter naming with PR refactoring objectives.The PR objectives mention renaming
breakoutRoomIdtobreakoutRoomMeetingIdacross the codebase for clarity. However, thebreakoutRoomMoveUsermutation (lines 62–63) andbreakoutRoomRequestJoinUrlmutation (line 69) still use the old parameter names (fromBreakoutRoomId,toBreakoutRoomId,breakoutRoomId). These were not marked as modified in this diff.Please confirm whether:
- These mutation parameter names should have been renamed to match the refactoring (e.g.,
breakoutRoomMeetingId), or- The naming change is intentionally scoped to other files/systems, leaving GraphQL mutations unchanged for backward compatibility or other reasons.
If renaming is required, please apply the necessary updates to maintain consistency with the PR's schema refactoring objectives.
761-761: Trailing blank line added.Line 761 is a formatting-only change (trailing blank line after the
AudioGroupParticipantinput block). No semantic changes.bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx (1)
136-136: LGTM! Property rename improves clarity.The rename from
currentlyInRoomtoisUserCurrentlyInRoomfollows boolean naming conventions and makes the property's purpose clearer. Both occurrences in this file have been updated consistently—one for rendering the breakout room badge and one for determining avatar content.Also applies to: 202-202
bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/room-managment-state/component.tsx (1)
85-86: LGTM! Property rename applied correctly.The field rename from
breakoutRoomIdtobreakoutRoomMeetingIdis applied consistently for bothtoRoomIdandfromRoomIdlookups. The optional chaining is properly preserved, and the logic remains unchanged.bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/queries.ts (2)
9-9: LGTM! Interface field renamed correctly.The field rename from
breakoutRoomIdtobreakoutRoomMeetingIdin theBreakoutRoominterface is clean and consistent with the refactor objectives.
34-34: LGTM! GraphQL query synchronized with interface.The GraphQL subscription correctly queries
breakoutRoomMeetingId, matching the updated TypeScript interface.bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/queries.ts (4)
11-11: LGTM! Interface field renamed correctly.The field rename from
breakoutRoomIdtobreakoutRoomMeetingIdin thebreakoutRoominterface aligns with the refactor objectives.
28-29: LGTM! Interface fields renamed correctly.Both field renames in the
LastBreakoutDatainterface are clean:
breakoutRoomId→breakoutRoomMeetingIdclarifies the meeting ID contextcurrentlyInRoom→isUserCurrentlyInRoomimproves naming consistency with boolean convention
76-76: LGTM! GraphQL query synchronized.The
getBreakoutsquery correctly requestsbreakoutRoomMeetingId, matching the updatedbreakoutRoominterface.
92-93: LGTM! GraphQL query synchronized.The
getLastBreakoutsquery correctly requests both renamed fields (breakoutRoomMeetingIdandisUserCurrentlyInRoom), matching the updatedLastBreakoutDatainterface.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scala (2)
94-120: Constructor reformatting is correct in style and parameter mapping.Assuming the
BreakoutRoomDetailcase class parameter names match the current code (confirmed via the verification script above), the parameter order and value sources are correct:
breakout.idmaps to the first parameter (breakoutMeetingId)breakout.namemaps to the second parameter (name)liveMeeting.props.meetingProp.intIdmaps to the third parameter (parentId or parentMeetingId)- All subsequent parameters follow the expected order
The removal of the
newkeyword and multi-line formatting are idiomatic Scala improvements with no semantic impact.
94-120: Constructor call is correct; case class schema mismatch may indicate incomplete refactoring.The constructor call correctly aligns all arguments with the
BreakoutRoomDetailcase class parameters in proper order. The multi-line formatting improves readability without changing logic.However, the case class definition at
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/BreakoutMsgs.scala:43still showsparentIdinstead ofparentMeetingId. Per the stated PR objectives, this parameter should have been renamed. Either the case class definition was not fully updated or the PR scope description needs clarification. Ensure all schema renamings mentioned in PR objectives are applied consistently across all related classes.bbb-graphql-actions/src/actions/breakoutRoomRequestJoinUrl.ts (1)
24-28: LGTM! Input field reference correctly updated.The body construction now correctly references
input.breakoutRoomMeetingId, maintaining consistency with the validation change. The Redis message body field namebreakoutIdis appropriately preserved to maintain the existing message contract.bigbluebutton-html5/imports/ui/components/breakout-room/mutations.ts (2)
68-74: LGTM! Consistent parameter renaming.The mutation parameter and argument have been correctly renamed from
breakoutRoomIdtobreakoutRoomMeetingId, maintaining internal consistency and aligning with the broader schema refactoring effort.
29-41: No changes needed. The frontend mutation correctly matches the backend schema.The
BREAKOUT_ROOM_MOVE_USERmutation usesfromBreakoutRoomIdandtoBreakoutRoomIdbecause the backendbreakoutRoomMoveUsermutation inbbb-graphql-server/metadata/actions.graphqlexpects these exact parameter names. The frontend is correctly consistent with the backend schema.The
BREAKOUT_ROOM_REQUEST_JOIN_URLmutation uses different parameter naming (breakoutRoomMeetingId) because it corresponds to a different backend mutation (breakoutRoomRequestJoinUrl) with its own schema. Different GraphQL mutations can have different parameter conventions without issue.Likely an incorrect or invalid review comment.
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsx (3)
209-243: LGTM! Rendering logic updated consistently.All property accesses and function calls in the rendering logic have been correctly updated to use
breakoutRoomMeetingId. The React keys, conditional rendering, state updates, and function calls are all consistent with the schema refactoring.Also applies to: 265-269
152-161: Property access and type definitions verified correctly.The
BreakoutRoomTypeis aliased from theBreakoutRoominterface (imported from queries), which contains thebreakoutRoomMeetingId: stringproperty. The effect hook correctly accesses this property on line 154.
137-139: Parameter naming is correctly aligned with mutation schema.The
BREAKOUT_ROOM_REQUEST_JOIN_URLmutation schema (bigbluebutton-html5/imports/ui/components/breakout-room/mutations.ts:69-71) correctly declares the parameter as$breakoutRoomMeetingId: String!, and the function call properly passes this variable. The refactoring is consistent across all component usages.bigbluebutton-html5/imports/ui/Types/meeting.ts (1)
75-75: LGTM!The rename from
parentIdtoparentMeetingIdimproves clarity and aligns with the broader schema refactoring across the codebase.bigbluebutton-html5/imports/ui/Types/meetingStaticData.ts (1)
51-51: LGTM!Consistent with the
parentId→parentMeetingIdrename in the broader refactoring effort.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_user.yaml (1)
14-14: LGTM!The column rename from
breakoutRoomIdtobreakoutRoomMeetingIdaligns with the schema refactoring.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_current_breakoutRoom_lastJoinedRoom.yaml (1)
1-39: LGTM!The new Hasura metadata file properly exposes the
v_user_current_breakoutRoom_lastJoinedRoomview with appropriate permissions and uses the updated naming convention (breakoutRoomMeetingId,isUserCurrentlyInRoom).bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_breakoutRoom_lastAssignedRoom.yaml (1)
1-39: LGTM!The new Hasura metadata file properly exposes the
v_user_breakoutRoom_lastAssignedRoomview with appropriate moderator-scoped permissions (X-Hasura-ModeratorInMeeting) and uses the updated naming convention.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (5)
9-17: LGTM!The model updates correctly reflect the schema refactoring:
breakoutRoomId→breakoutRoomMeetingIdand the addition ofbreakoutRoomUserIdto represent the user's ID within the breakout room context.
19-28: LGTM!The table definition correctly updates the column names and projection to match the new model structure. The primary key on
breakoutRoomMeetingIdaligns with the schema refactoring.
31-46: Verify the emptybreakoutRoomUserIdinitialization.Line 35 initializes
breakoutRoomUserIdas an empty string. This appears to be a placeholder value since the actual breakout room user ID is not yet known at assignment time (only known after the user joins). Please confirm this is the intended behavior and that downstream code handles this empty string appropriately.
89-126: LGTM!The SQL queries have been correctly updated to use
breakoutRoomMeetingIdthroughout. The logic for managing visible breakout rooms remains intact with the updated column names.
59-69: Signature change verified; clarify the WHERE clause inequality logic.The method signature change from
Vector[String]to individual object parameters is complete—only one call site exists (BreakoutRoomUsersUpdateMsgHdlr.scala:42), and it has been properly updated to passBreakoutRoomUser,RegisteredUser, andBreakoutRoom2xobjects.However, line 67 contains an unusual condition:
AND "breakoutRoomUserId" != ${breakoutRoomUser.userId}. This update clause only affects rows where thebreakoutRoomUserIddiffers from the new user ID. The business logic intent behind this inequality check is unclear from the code—clarify whether this is intentional (e.g., to prevent self-assignment or handle a specific breakout room scenario) or if it's a logic error.bigbluebutton-html5/imports/ui/core/graphql/queries/users.ts (1)
61-61: LGTM! Field rename improves clarity.The rename from
currentlyInRoomtoisUserCurrentlyInRoommakes the boolean nature of this field more explicit and improves code readability.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/EndAllBreakoutRoomsMsgHdlr.scala (1)
7-7: LGTM! Cleanup of unused imports.The removal of unused imports (
EndBreakoutRoomInternalMsg,BigBlueButtonEvent,UserBreakoutRoomDAO) aligns with the PR's objective to remove the redundantUserBreakoutRoomDAOand simplifies the import surface.bigbluebutton-html5/imports/ui/core/graphql/queries/currentUserSubscription.ts (1)
49-49: LGTM! Consistent field rename.This change maintains consistency with the same field rename in
users.ts, ensuring uniform naming across GraphQL subscriptions.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_lastJoinedRoom.yaml (2)
2-7: LGTM! Metadata naming updated correctly.Table and custom name updates are consistent with the broader breakout room schema refactoring.
13-18: LGTM! Column permissions updated consistently.The addition of
breakoutRoomMeetingIdand rename ofcurrentlyInRoomtoisUserCurrentlyInRoomaligns with the schema refactoring. Both roles (bbb_clientandbbb_client_not_in_meeting) receive consistent updates.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_participant.yaml (1)
27-28: LGTM! Filter expression simplified.The removal of the unnecessary
_andwrapper makes the filter more direct and readable while preserving the same semantic filtering behavior.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala (2)
160-160: LGTM! DAO rename aligns with schema refactoring.The change from
MeetingBreakoutDAO.inserttoMeetingBreakoutRoomPropsDAO.insertcorrectly reflects the restructured breakout room properties schema while maintaining the same parameters.
168-174: LGTM! Query logic correctly updated for new schema.The subquery and filter updates correctly reflect the schema changes:
- Filters breakout rooms by
meetingId(parent meeting ID)- Projects
breakoutRoomMeetingId(breakout room's meeting ID)- Updates meetings where
meetingIdmatches the breakout room IDsThis correctly updates durations for all breakout rooms associated with a parent meeting.
bbb-graphql-server/metadata/query_collections.yaml (1)
69-69: LGTM! Consistent field rename in query collection.The rename from
parentIdtoparentMeetingIdmaintains consistency with the breakout room schema refactoring across the GraphQL API surface.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_meeting_breakoutPolicies.yaml (2)
19-19: LGTM! Column permissions updated consistently.The rename from
parentIdtoparentMeetingIdfor thebbb_clientrole aligns with the schema refactoring.
35-35: LGTM! Consistent update for second role.The same rename applied to the
bbb_client_not_in_meetingrole maintains consistency across all permission configurations.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutHdlrHelpers.scala (1)
121-121: LGTM: BreakoutUser construction updated correctly.The updated constructor call correctly maps the user fields to the new three-parameter
BreakoutUsersignature:(intId, extId, name). This aligns with the case class definition inBreakoutRoom2x.scala.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_assignedUser.yaml (1)
27-27: LGTM: Field rename aligns with schema refactoring.The rename from
parentMeetingIdtomeetingIdis consistent with the broader schema refactoring described in the PR objectives.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom_createdLatest.yaml (1)
13-13: LGTM: Consistent identifier renames in metadata.The field renames (
breakoutRoomId→breakoutRoomMeetingId,parentMeetingId→meetingId) are applied consistently across columns and filters, aligning with the PR's schema refactoring objectives.Also applies to: 28-30
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/ChangeUserBreakoutReqMsgHdlr.scala (1)
36-37: LGTM: User matching switched to external ID.The change from internal ID (
u.id) to external ID (u.extId) for user filtering and ejection is consistent with the PR's refactoring. Both the filter condition (line 36) and the eject message payload (line 37) correctly useextId.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/domain/BreakoutRoom2x.scala (1)
28-28: LGTM: BreakoutUser extended with external ID field.The addition of the
extIdparameter toBreakoutUserand the rename of the first parameter fromidtouserIdclarify the distinction between internal and external user identifiers. This core data model change is properly reflected in dependent code (e.g.,BreakoutHdlrHelpers.scalaline 121).bigbluebutton-html5/imports/ui/Types/user.ts (1)
6-6: LGTM: Frontend types updated to match backend schema.The field renames in the
LastBreakoutRoominterface (breakoutRoomId→breakoutRoomMeetingId,currentlyInRoom→isUserCurrentlyInRoom) correctly align with the backend schema changes and improve naming clarity.Also applies to: 10-10
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/EjectUserFromMeetingCmdMsgHdlr.scala (1)
54-55: LGTM: Ejection logic migrated to external ID matching.The changes correctly switch from internal ID-based user matching to external ID-based matching. Both the filter condition (line 54) and the eject message (line 55) consistently use
user.extId, aligning with the refactoring inChangeUserBreakoutReqMsgHdlr.scala.bbb-graphql-server/metadata/databases/BigBlueButton/tables/tables.yaml (1)
56-57: LGTM: Breakout room tracking split into distinct views.The replacement of single includes with separate
lastAssignedRoomandlastJoinedRoomincludes correctly implements the PR's objective to distinguish between the last breakout room a user was assigned to versus the last one they actually joined. The change is applied consistently for both regular user views anduser_currentviews.Also applies to: 64-65
bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_current_breakoutRoom_lastAssignedRoom.yaml (1)
1-39: LGTM! New metadata file is well-structured.The Hasura metadata configuration for the new
v_user_current_breakoutRoom_lastAssignedRoomtable is properly defined with appropriate permissions for both roles and correct column mappings using the renamedbreakoutRoomMeetingIdfield.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_breakoutRoom.yaml (2)
9-27: LGTM! Column mappings updated consistently.The array relationships for
assignedUsersandparticipantshave been correctly updated to usebreakoutRoomMeetingIdinstead ofbreakoutRoomId, maintaining consistency across the schema refactor.
28-55: LGTM! Select permissions updated correctly.The exposed column has been correctly renamed from
breakoutRoomIdtobreakoutRoomMeetingIdin the select permissions for thebbb_clientrole.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/running/HandlerHelpers.scala (2)
10-11: LGTM! Imports simplified appropriately.The import changes align with the removal of
UserBreakoutRoomDAOfunctionality and the streamlined approach to handling breakout room state.
225-235: Verify lastBreakoutRoom tracking is handled via new schema.The removal of
UserBreakoutRoomDAO.updateLastBreakoutRoomfromendAllBreakoutRoomsis consistent with the schema migration. The newbreakoutRoom_usertable tracks room associations withisLastJoinedRoomandisLastAssignedRoomboolean fields maintained by trigger functions (lines 2052-2122 in bbb_schema.sql). When breakout rooms are deleted, cascade rules clean up related records, and the trigger function recalculates the "last room" flags for remaining entries. Database persistence for user-room associations occurs viaBreakoutRoomUserDAO.updateUserJoined(), and the in-memorylastBreakoutRoomfield inRegisteredUsercontinues to be updated when users join breakout rooms. The new schema properly replaces the previoususer_breakoutRoomtable functionality.bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/queries.ts (2)
3-20: LGTM! TypeScript interface updated correctly.The
BreakoutRoominterface field has been correctly renamed frombreakoutRoomIdtobreakoutRoomMeetingId, maintaining consistency with the backend schema changes.
32-53: LGTM! GraphQL query updated correctly.The GraphQL subscription query correctly selects
breakoutRoomMeetingIdinstead ofbreakoutRoomId, aligning with the TypeScript interface and backend schema changes.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_current.yaml (2)
40-59: LGTM! Object relationships updated correctly.The new
lastBreakoutRoomrelationship and updatedlastBreakoutRoomAssignedrelationship are properly configured with correct column mappings (meetingId and userId) and appropriate remote tables for tracking both last joined and last assigned breakout rooms.
160-168: LGTM! Array relationship mapping updated correctly.The
breakoutRoomsarray relationship has been correctly updated to mapmeetingIdtomeetingId(instead of the previousparentMeetingId), aligning with the schema refactor to use clearer naming conventions.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (4)
12-28: LGTM! Database model fields renamed for clarity.The
BreakoutRoomDbModelfields have been comprehensively renamed to improve clarity:
breakoutRoomId→breakoutRoomMeetingId(clarifies it's the meeting ID of the breakout room)parentMeetingId→meetingId(simplified to indicate the parent/main meeting)externalId→breakoutRoomExternalId(more descriptive)
30-50: LGTM! Table definition updated consistently.The
BreakoutRoomDbTableDefcolumn definitions and projection mapping have been correctly updated to match the renamed model fields, maintaining consistency across the schema.
133-153: LGTM! Insert/update logic updated correctly.The
prepareInsertOrUpdatemethod correctly maps the domain model fields to the renamed database fields:
room.id→breakoutRoomMeetingIdroom.parentId→meetingIdroom.externalId→breakoutRoomExternalId
155-191: LGTM! All database operations updated consistently.All filter and update operations (
deletePermanently,updateRoomsStarted,updateRoomsEnded,updateRoomsDuration) have been correctly updated to usemeetingIdinstead ofparentMeetingId. The method signature change forupdateRoomsDurationis appropriate for the refactor.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/BreakoutRoomUsersUpdateMsgHdlr.scala (1)
4-4: LGTM! Import updated to align with refactor.The removal of
UserBreakoutRoomDAOimport aligns with the elimination of the redundantuser_breakoutRoomtable mentioned in the PR objectives.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user.yaml (1)
20-39: LGTM! Object relationships correctly configured.The new
lastBreakoutRoomrelationship (tracking last joined room) and updatedlastBreakoutRoomAssignedrelationship (tracking last assigned room) are properly configured with correct column mappings and remote tables. This separation of concerns clarifies the distinction between joining and assignment, aligning well with the PR's objectives to improve user linkage clarity.bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_breakoutRoom_lastJoinedRoom.yaml (1)
1-39: LGTM!The Hasura metadata configuration for the new
v_user_breakoutRoom_lastJoinedRoomview is well-structured and consistent. The exposed columns align with the refactored schema naming (breakoutRoomMeetingId,isUserCurrentlyInRoom), and both permission configurations correctly filter bymeetingIdfor access control.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (3)
7-19: LGTM!The case class
MeetingBreakoutRoomPropsDbModelis correctly renamed and the fieldparentMeetingIdaligns with the schema refactoring.
21-41: LGTM!The table definition is correctly refactored with the new table name
meeting_breakoutRoomPropsand column nameparentMeetingId. The projection properly references the renamed case class.
43-63: LGTM!The DAO insert method correctly maps
breakoutProps.parentIdto the database fieldparentMeetingId. This mapping pattern is appropriate for the refactoring, where the domain object field name differs from the database column name.bbb-graphql-server/bbb-graphql-schema.md (1)
276-283: LGTM!The field renaming from
breakoutRoomIdtobreakoutRoomMeetingIdis consistently applied across thebreakoutRoom_user,breakoutRoom, andbreakoutRoom_createdLatesttypes, aligning with the schema refactoring objectives.Also applies to: 459-477, 889-904
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx (4)
102-105: LGTM!The default breakout room selection logic correctly uses
breakoutRoomMeetingIdthroughout, with a sensible priority: rooms with invitations, last assigned rooms, rooms with joinURL, then the first room.
109-122: LGTM!The
requestJoinURLfunction correctly acceptsbreakoutRoomMeetingIdas a string parameter and passes it to the mutation. The free join logic properly compares against the first room'sbreakoutRoomMeetingId.
124-133: LGTM!Both event handlers (
handleSelectChangeandhandleJoinBreakoutConfirmation) correctly usebreakoutRoomMeetingIdfor breakout room selection and lookup. The logic is consistent and type-safe.Also applies to: 142-164
166-206: LGTM!The rendering logic correctly destructures and uses
breakoutRoomMeetingIdfor option keys and values. The container component properly passesisUserCurrentlyInRoombased oncurrentUser?.lastBreakoutRoom?.isUserCurrentlyInRoom, which aligns with the refactored schema.Also applies to: 253-296
bbb-graphql-server/bbb_schema.sql (7)
56-69: LGTM!The
meeting_breakoutRoomPropstable is correctly defined with the renamedparentMeetingIdfield and proper foreign key constraint. The viewv_meeting_breakoutPoliciesappropriately sources from the renamed table.
1991-2012: LGTM!The
breakoutRoomtable restructuring is well-designed:
- Primary key
breakoutRoomMeetingIdclearly indicates it's the meeting ID of the breakout room- Foreign key
meetingIdproperly links to the parent meetingbreakoutRoomExternalIdprovides better naming clarity- Indexes are correctly updated to reference the new column names
This refactoring significantly improves schema clarity.
2014-2036: LGTM!The
breakoutRoom_usertable refactoring effectively achieves the PR objective of clarifying the association between users in breakout rooms and their corresponding users in the main room:
breakoutRoomUserIdcaptures the user's ID in the breakout room contextmeetingIdanduserIdmaintain the link to the parent meeting user- The composite primary key ensures data integrity
- New indexes for
isLastJoinedRoomandisLastAssignedRoomoptimize common queriesThis is a well-designed schema improvement.
2052-2122: LGTM!The trigger functions for tracking
isLastAssignedRoomandisLastJoinedRoomare correctly updated to usebreakoutRoomMeetingId. The logic properly:
- Determines the latest assigned and joined rooms
- Updates boolean flags based on room comparisons
- Maintains
userJoinedSomeRoomAttimestamp for invitation logicThe implementation is sound and consistent with the refactored schema.
2125-2140: LGTM!The
update_bkroom_isUserCurrentlyInRoom_trigger_funccorrectly updates theisUserCurrentlyInRoomflag when a user's meeting presence changes. The guard conditionNEW."userId" <> ''at line 2129 is a good defensive practice to prevent issues with empty user IDs. The trigger properly maps the breakout room context usingbreakoutRoomMeetingIdandbreakoutRoomUserId.
2142-2258: LGTM!All breakout room views are consistently updated with the refactored column names:
breakoutRoomMeetingIdused throughout for primary key referencesmeetingIdcorrectly identifies the parent meetingisUserCurrentlyInRoomreplaces the old naming- New views
v_user_breakoutRoom_lastJoinedRoomandv_user_breakoutRoom_lastAssignedRoom(along with their_currentvariants) provide convenient access to user's last roomsThe view joins and projections are correct and align with the new schema structure.
2521-2593: LGTM!The
v_meeting_componentsFlagsview correctly usesbreakoutRoom.meetingIdto check for the existence of active breakout rooms associated with the parent meeting. The update aligns with the refactored schema wheremeetingIdnow explicitly represents the parent meeting.
|
|
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
@bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts:
- Line 83: The variable assignment for parentMeetingId uses
meetingStaticStore?.breakoutPolicies.parentMeetingId which can throw if
breakoutPolicies is undefined; update the expression to safely access
parentMeetingId using optional chaining on breakoutPolicies (i.e., use
meetingStaticStore?.breakoutPolicies?.parentMeetingId) so parentMeetingId falls
back to the empty string when any part is missing; change the code where
parentMeetingId is defined (the const parentMeetingId assignment) and keep the
existing fallback || ''.
🧹 Nitpick comments (1)
bbb-graphql-server/bbb_schema.sql (1)
2144-2149: Verify ORDER BY forv_breakoutRoom_commonPropertiesas previously suggested.Based on learnings, a previous review noted that adding an
ORDER BYclause to theDISTINCT ONquery would make the results deterministic. WhilestartedAtvalues are mostly the same, consider addingORDER BY "meetingId", "startedAt" DESC NULLS LASTfor robustness.♻️ Optional: Add ORDER BY for deterministic results
CREATE OR REPLACE VIEW "v_breakoutRoom_commonProperties" AS SELECT DISTINCT ON ("meetingId", "freeJoin", "durationInSeconds", "sendInvitationToModerators", "captureNotes", "captureSlides") "meetingId" as "meetingId", "freeJoin", "durationInSeconds", "sendInvitationToModerators", "captureNotes", "captureSlides", "startedAt" FROM "breakoutRoom" -WHERE "endedAt" IS null; +WHERE "endedAt" IS null +ORDER BY "meetingId", "freeJoin", "durationInSeconds", "sendInvitationToModerators", "captureNotes", "captureSlides", "startedAt" DESC NULLS LAST;
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (8)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scalabbb-graphql-server/bbb-graphql-schema.mdbbb-graphql-server/bbb_schema.sqlbigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.tsbigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsxbigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsxbigbluebutton-html5/imports/ui/core/graphql/queries/users.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx
- bigbluebutton-html5/imports/ui/core/graphql/queries/users.ts
- bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/component.tsx
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: jaapjansma
Repo: bigbluebutton/bigbluebutton PR: 21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
📚 Learning: 2024-10-10T12:15:03.265Z
Learnt from: jaapjansma
Repo: bigbluebutton/bigbluebutton PR: 21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
Applied to files:
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scalabigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.tsbbb-graphql-server/bbb_schema.sqlbbb-graphql-server/bbb-graphql-schema.mdbigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx
📚 Learning: 2025-05-09T14:36:13.418Z
Learnt from: gustavotrott
Repo: bigbluebutton/bigbluebutton PR: 23137
File: bbb-graphql-server/bbb_schema.sql:2022-2027
Timestamp: 2025-05-09T14:36:13.418Z
Learning: User acknowledged that adding an ORDER BY clause to the DISTINCT ON query in v_breakoutRoom_commonProperties view makes sense but deferred implementation since "startedAt" values are mostly the same for all rooms.
Applied to files:
bbb-graphql-server/bbb_schema.sql
🧬 Code graph analysis (3)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scala (1)
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/BreakoutMsgs.scala (1)
BreakoutRoomDetail(40-67)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts (3)
bigbluebutton-html5/imports/ui/components/audio/service.js (5)
parentMeetingId(40-40)meetingStaticStore(38-38)isBreakout(39-39)meetingId(41-43)meetingId(88-88)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingDAO.scala (1)
meetingId(43-66)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/MeetingBreakoutRoomPropsDAO.scala (1)
meetingId(36-40)
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomUserDAO.scala (1)
breakoutRoomMeetingId(27-27)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/BreakoutRoomDAO.scala (1)
breakoutRoomMeetingId(46-49)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: build-package (bbb-apps-akka)
- GitHub Check: build-package (bbb-html5)
- GitHub Check: build-package (bbb-graphql-server)
🔇 Additional comments (22)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/breakout/CreateBreakoutRoomsCmdMsgHdlr.scala (1)
96-123: LGTM!The reformatting of the
BreakoutRoomDetailconstructor call improves readability by placing arguments on separate lines. The arguments correctly align with the case class signature defined inBreakoutMsgs.scala.bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts (1)
86-88: LGTM!The logic correctly uses the renamed
parentMeetingIdproperty to derive the meeting ID for mute state storage, consistent with the broader refactoring in this PR.bbb-graphql-server/bbb-graphql-schema.md (3)
118-119: LGTM! Schema documentation correctly reflects the refactored breakout room relationships.The
lastBreakoutRoomandlastBreakoutRoomAssignedrelationships now properly referenceType breakoutRoom_user, aligning with the new data model that tracks both the last joined room and the last assigned room separately.
276-283: LGTM! ThebreakoutRoom_usertype correctly documents the renamed primary key.The
breakoutRoomMeetingIdfield name clearly conveys that this ID represents the meeting ID of the breakout room, improving clarity over the previous genericbreakoutRoomId.
459-483: LGTM! ThebreakoutRoomtype documentation is consistent with schema changes.The renamed
breakoutRoomMeetingIdfield andisUserCurrentlyInRoomfield are properly documented, and the relationship structure withassignedUsersandparticipantsremains clear.bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx (8)
102-105: LGTM! Default selection logic correctly updated to usebreakoutRoomMeetingId.The chained fallback logic for determining the default selected breakout room properly uses the new field name across all selection criteria (showInvitation, isLastAssignedRoom, joinURL presence, first item).
114-122: LGTM! Free join URL request logic correctly updated.The comparison and lookup operations consistently use
breakoutRoomMeetingIdfor matching breakout rooms.
124-133: LGTM! Select change handler correctly updated.The breakout room lookup uses the new
breakoutRoomMeetingIdfield for matching.
142-164: LGTM! Join confirmation handler correctly updated.The breakout room lookup at line 153 properly uses
breakoutRoomMeetingIdfor matching the selected value.
176-188: LGTM! Select options correctly usebreakoutRoomMeetingIdfor keys and values.The destructuring and usage of
breakoutRoomMeetingIdfor React keys and option values ensures proper rendering and selection handling.
199-206: LGTM! Waiting state effect correctly updated.The breakout room lookup uses
breakoutRoomMeetingIdconsistently.
289-295: LGTM! Container correctly wires the renamedisUserCurrentlyInRoomfield.The
currentUserJoinedprop is correctly derived fromlastBreakoutRoom?.isUserCurrentlyInRoom, properly handling the field rename from the previouscurrentlyInRoom.
109-111: Parameter naming is consistent with mutation signature.The
requestJoinURLfunction parameterbreakoutRoomMeetingIdcorrectly matches theBREAKOUT_ROOM_REQUEST_JOIN_URLmutation variable definition.bbb-graphql-server/bbb_schema.sql (9)
55-69: LGTM! Table rename frommeeting_breakouttomeeting_breakoutRoomPropsimproves clarity.The new name better describes the table's purpose as storing breakout room properties/configuration for a meeting, rather than the breakout rooms themselves.
1981-2001: LGTM! ThebreakoutRoomtable restructuring clarifies the parent-child meeting relationship.
breakoutRoomMeetingId(PK): The meeting ID of the created breakout roommeetingId(FK): The parent meeting IDbreakoutRoomExternalId: External identifier for the breakout roomThis naming convention makes the relationship between parent meetings and breakout room meetings immediately clear.
2004-2026: LGTM! ThebreakoutRoom_usertable structure properly models the dual context.The table now clearly tracks:
meetingId/userId: User identity in the parent meetingbreakoutRoomMeetingId/breakoutRoomUserId: User identity in the breakout room meetingThis enables direct linkage between a user's context in both meetings as described in the PR objectives.
2115-2130: LGTM! Trigger function correctly updated to propagate user presence to breakout room tracking.The trigger:
- Guards against empty
userIdvalues (line 2119)- Matches on
breakoutRoomMeetingIdandbreakoutRoomUserIdto update the correct breakout room user record- Propagates the
currentlyInMeetingstate toisUserCurrentlyInRoomThis ensures the breakout room user table accurately reflects when users are present in their assigned breakout rooms.
2058-2108: LGTM! Theset_last_roomfunction correctly uses the new column names.The function properly:
- Selects latest assigned/joined rooms by
breakoutRoomMeetingId- Compares against
breakoutRoomMeetingIdwhen setting flags- Uses
IS DISTINCT FROMto avoid unnecessary updates
2167-2193: LGTM! New views for last joined/assigned rooms are well structured.The four views provide:
v_user_breakoutRoom_lastJoinedRoom/v_user_current_breakoutRoom_lastJoinedRoom: Last room the user joinedv_user_breakoutRoom_lastAssignedRoom/v_user_current_breakoutRoom_lastAssignedRoom: Last room the user was assigned toThe separation between
useranduser_currentvariants allows proper permission scoping in Hasura.
2132-2142: LGTM! Thev_breakoutRoomview correctly exposes the refactored schema.The view:
- Uses
userMeetingIdalias to clearly indicate the user's parent meeting- Properly joins on
breakoutRoomMeetingId- Exposes all relevant fields for the UI layer
2195-2214: LGTM! Thev_breakoutRoom_participantview correctly handles both regular and audio-only participants.The UNION correctly:
- Includes regular participants via
v_breakoutRoomwithisUserCurrentlyInRoom = TRUE- Includes audio-only transfers by joining users where
transferredFromParentMeeting = TRUEBoth branches use the correct field names.
2238-2248: LGTM! Thev_breakoutRoom_user_summaryview correctly aggregates breakout room stats.The summary counts use
breakoutRoomMeetingIdconsistently for null checks in CASE expressions.
| }; | ||
|
|
||
| const parentId = meetingStaticStore?.breakoutPolicies.parentId || ''; | ||
| const parentMeetingId = meetingStaticStore?.breakoutPolicies.parentMeetingId || ''; |
There was a problem hiding this comment.
Add optional chaining on breakoutPolicies to prevent potential TypeError.
The code in audio/service.js uses meetingStaticStore?.breakoutPolicies?.parentMeetingId with optional chaining on both properties. This file only chains on meetingStaticStore, which could throw if breakoutPolicies is undefined.
Suggested fix
- const parentMeetingId = meetingStaticStore?.breakoutPolicies.parentMeetingId || '';
+ const parentMeetingId = meetingStaticStore?.breakoutPolicies?.parentMeetingId || '';📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| const parentMeetingId = meetingStaticStore?.breakoutPolicies.parentMeetingId || ''; | |
| const parentMeetingId = meetingStaticStore?.breakoutPolicies?.parentMeetingId || ''; |
🤖 Prompt for AI Agents
In
@bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/service.ts
at line 83, The variable assignment for parentMeetingId uses
meetingStaticStore?.breakoutPolicies.parentMeetingId which can throw if
breakoutPolicies is undefined; update the expression to safely access
parentMeetingId using optional chaining on breakoutPolicies (i.e., use
meetingStaticStore?.breakoutPolicies?.parentMeetingId) so parentMeetingId falls
back to the empty string when any part is missing; change the code where
parentMeetingId is defined (the const parentMeetingId assignment) and keep the
existing fallback || ''.
|
This pull request has conflicts ☹ |
|
Automated tests Summary✅ All the CI tests have passed! |
08081bc
into
bigbluebutton:v3.0.x-release
* build(bbb-webrtc-sfu): v2.21.1 v2.21.1 --- * fix(livekit): incorrect mute state with muteOnStart=false + eventSource=agent * fix(livekit): race condition on token generation (clients fail to connect) * move pinned notes notification to backend * style(poll): Increase visible area of typed responses * docs: Add / for defaultHTML5ClientUrl in cluster-proxy docs * docs: Add / for defaultHTML5ClientUrl in customize docs * redo local camera unmount check * Bump tika from 3.2.2 to 3.2.3 to avoid regression * Bump tika from 3.2.2 to 3.2.3 to avoid regression * Translate en.json in tr 100% translated source file: 'en.json' on 'tr'. * [use-meeting-data] added more fields to useMeeting and projection function * Translate en.json in et 100% translated source file: 'en.json' on 'et'. * make number of avatars in special tile match overflow count * fix sidebar content opening when presentation is restored on unified layout * [fix-loading-issues-plugin] fix duplicate pluginName when multiple errors; fix redirect problems with plugins * fix(html5/user-list): Append both user name and user id * Translate en.json in ru 100% translated source file: 'en.json' on 'ru'. * only copy private chat lock settings on breakout creation * [add-data-test] added data-tests to all extensible areas available to plugin-developers * fix(tldraw): remove unnecessary extra zoom calls + - Only reset zoom when fitTwoWdith actually changes, it was being set on every presentation mount - Round viewed region up to 100 percent when its too near (avoids 99.99... values) * adjust quiz correct answer validation to work with any language * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * fix: LiveKit token update fails on database When a new LK token is generated for an existing session, its insertion in the database is failing due to the usage of forceInsert. This is not the expected behavior - the token should be updated. While the behavior is mostly benign as token re-generation does not yet play a significant role, this might bork unrelated batched DB ops and should be fixed. Fix the issue by using insertOrUpdate so that LK tokens are properly updated. * Translate en.json in ar 100% translated source file: 'en.json' on 'ar'. * fix drop areas appearing when presentation is removed * chore: Bump release to 3.0.19 * [3.0] Adds the test upload multiple presentation on ci (#24218) * add test upload multiple presentation to run on ci * changed util to receive two options for the notification * (tests): Add tests for "create breakout rooms" buttons (#24183) * test: add check to create breakout rooms button existence * refac: update logic to fit typescript migration * fix: ensure mangeUsers dropdown is closed after continuing * (tests): Add tests for breakout rooms sharing audio and video (#24150) * test: refac to check user joining breakout with audio shared in the main room * tests: add tests for user joining breakout with audio and video in the main room * tests: add tests for user sharing audio after joining breakout rooms * tests: update to check with webcamContainer selector * refac: update logic to fit typescript migration * refac: remove duplicate checks from joinRoom * (tests): Add test for "group parameters" (breakout room pre-selection) (#24061) * test: add test for group parameters while create breakout rooms * fix: code rabbit suggestions * tests: update to check if correct user has joined the breakout room Co-authored-by: Anton Barboza de Sá <[email protected]> * tests: Update to check room name in fullscreen Co-authored-by: Anton Barboza de Sá <[email protected]> * tests: Update username check to compare with literal strings Co-authored-by: Anton Barboza de Sá <[email protected]> * tests: refac roomNameInput * refac: update logic to fit typescript migration --------- Co-authored-by: Anton Barboza de Sá <[email protected]> * do not display lock viewers option in breakout rooms * fix: LiveKit token update fails on database When a new LK token is generated for an existing session, its insertion in the database is failing due to the usage of forceInsert. This is not the expected behavior - the token should be updated. While the behavior is mostly benign as token re-generation does not yet play a significant role, this might bork unrelated batched DB ops and should be fixed. Fix the issue by using insertOrUpdate so that LK tokens are properly updated. * make breakout rooms inherit lock settings from parent meeting * only copy private chat lock settings on breakout creation * fix(html5/user-list): Append both user name and user id * fix(tldraw): remove unnecessary extra zoom calls + - Only reset zoom when fitTwoWdith actually changes, it was being set on every presentation mount - Round viewed region up to 100 percent when its too near (avoids 99.99... values) * adjust quiz correct answer validation to work with any language * move pinned notes notification to backend * style(poll): Increase visible area of typed responses * Translate en.json in ar 100% translated source file: 'en.json' on 'ar'. * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * Translate en.json in ru 100% translated source file: 'en.json' on 'ru'. * Translate en.json in et 100% translated source file: 'en.json' on 'et'. * Translate en.json in tr 100% translated source file: 'en.json' on 'tr'. * chore: Bump release to 3.0.19 * [3.0] Adds the test upload multiple presentation on ci (#24218) * add test upload multiple presentation to run on ci * changed util to receive two options for the notification * (tests): Add tests for "create breakout rooms" buttons (#24183) * test: add check to create breakout rooms button existence * refac: update logic to fit typescript migration * fix: ensure mangeUsers dropdown is closed after continuing * (tests): Add tests for breakout rooms sharing audio and video (#24150) * test: refac to check user joining breakout with audio shared in the main room * tests: add tests for user joining breakout with audio and video in the main room * tests: add tests for user sharing audio after joining breakout rooms * tests: update to check with webcamContainer selector * refac: update logic to fit typescript migration * refac: remove duplicate checks from joinRoom * (tests): Add test for "group parameters" (breakout room pre-selection) (#24061) * test: add test for group parameters while create breakout rooms * fix: code rabbit suggestions * tests: update to check if correct user has joined the breakout room Co-authored-by: Anton Barboza de Sá <[email protected]> * tests: Update to check room name in fullscreen Co-authored-by: Anton Barboza de Sá <[email protected]> * tests: Update username check to compare with literal strings Co-authored-by: Anton Barboza de Sá <[email protected]> * tests: refac roomNameInput * refac: update logic to fit typescript migration --------- Co-authored-by: Anton Barboza de Sá <[email protected]> * build(bbb-webrtc-sfu): v2.21.2 v2.21.2 --- * fix(livekit): incorrect callerIdNum causes audio join failures * build(deps): [email protected] * build(deps): [email protected] * build: bbb-playback to 5.4.3 * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * build(livekit): [email protected] (up from v1.9.7) * fix(livekit): trigger forced room reconnection on fatal errors There are known scenarios that currently can only be "addressed" via full LiveKit room reconnections. One of those is a race condition when publishing tracks - mainly audio - that causes all subsequent publish attempts to time out. While this is a media server issue, it should be mitigated on our side until fixed. A few mitigations have already been added to the client for the above scenario (timeouts). While they've reduced the error occurrence to 0.5%-0.7%~ of total sessions, it can still happen. A fail-safe that forces a reconnect is necessary for the remaining cases. Add a mechanism that can trigger LiveKit room reconnects on demand via custom browser events. When a reconnect is desired, the breakpoint should fire a 'livekitFatalError'-named event with the error and a source identifier as payload. This is generic enough so that we can add or remove scenarios to it as needed. The first use case is the above time out edge case. This forced reconnect can be enabled via settings.yml's `public.media.livekit.reconnectOnFatalFailures`. This is FALSE by default for now while it undergoes further testing. * fix(livekit): frozen cams on reconn, camera bridge improvements LK's camera bridge streams may freeze in specific LK reconnection scenarios. This is triggered by the bridge's usage of LK room events + local React refs to track publications and subscriptions. With reconnects, those refs become stale and, even though the remote references are still present, they don't work anymore for subsequen setSubscribed calls. Add sync routine for the refs when LiveKit's connection state becomes healthy, fixing the aforementioned freezes. Additionally, do a general review pass of the camera bridge: - Fix the debounced stream connection method: it's ineffective due to being re-created on every render, which loses the debounce timer reference. Make the debounce method stable so that pagination subscriptions have their frequency constrained. - Fix circular dependencies between effects, callbacks and component properties to shave off some unecessary re-renders - Stabilize helper functions that are passed as props to children * fix(livekit): frozen screen share on reconnects LK's screen share bridge streams may freeze in specific LK reconnection scenarios. This is triggered by the bridge's usage of LK room events + manually constructed JS maps to track publications and subscriptions. With reconnects, those map refs become stale and, even though the remote references are still present, no action to reattach or recover those refs is executed. Add sync routine for screne share subscriptions when LiveKit's connection state becomes healthy after a re-connect. When that happens, re-run the subscription procedures for any tracks that might need it. * build(bbb-webrtc-recorder): v0.14.0 v0.14.0 --- * feat: add docker matrix build to support arm64 * fix(webm): split seqnum tracking for A/V, muffle discont logs * build(docker): remove QEMU setup from publish Docker workflow * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * Translate en.json in ar 100% translated source file: 'en.json' on 'ar'. * Translate en.json in zh_TW 100% translated source file: 'en.json' on 'zh_TW'. * upgrade qs dependency on bbb-graphql-actions * Use messageAsHtml for chat message notification * refactor(html5): Replace isMeteorConnected prop with isConnected across UI components (#24171) * refactor(html5): Replace isMeteorConnected prop with isConnected across UI components * Fix eslint * Update bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/component.jsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Ramón Souza <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * adjust file reader to work if notifications are disabled * fix typescript error * [add-data-test] fixed data-tests not appearing * Fix(html5): chat counter stale due race condition on mark message as read * [add-data-test] changes suggested in review * build(livekit): [email protected] (up from v1.9.9) * feat: added fields IP, User-Agent e Referer to UserJoinedMeetingEvtMsg and UserConnectedToTransferSysMsg * fix(bigbluebutton-web): handle null headers in the join endpoint * feat: added field sessionToken to UserJoinedMeetingEvtMsg and UserConnectedToTransferSysMsg * test: update "give and remove whiteboard access" test * refactor (gql-server): Refactor breakout room schema to simplify user linkage (#24228) * fix: bigbluebutton-tests/playwright/package.json & bigbluebutton-tests/playwright/package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-PLAYWRIGHT-14888269 * display raise hand notification for moderators * feat (gql-server): Add breakout room participant activity tracking (#24233) * first step of refactor of breakout rooms schema * properly implement user lastBreakoutRoom and lastBreakoutRoomAssigned * remove user_breakoutRoomProps for good * update bbb-graphql-schema.md * remove comments * suggestions from review * allow to track activities of users in breakout rooms * hasura metadata for new tables * add activities per room * fix excludeFromDashboard * fix column rename * fix name of the new views * add more fields to breakoutRoom.assignedUsers * adjust maxDiffPixels for test breakout-moderator-chat-messages.png as the time of the messages will always be different * fix(html5): exclude worker.ts from ReactRefresh so hot reload can work React refresh was broken after #24152, it don't work in the worker thread. Excluded the worker file so hot reload can work again. * feat: harden client IP extraction from X-Forwarded-For header This prevents IP spoofing attacks by properly parsing proxy headers that may contain multiple comma-separated IPs. * gql-middleware: reject mutations exceeding the rate limit (instead of delay them) * feat(plugin): Add `nameSortable` and `bot` in the `UsersBasicInfo` data hook (#24213) * feat(plugin): Add nameSortable in the UsersBasicInfo data hook * feat(plugin): Add bot in the UsersBasicInfo data hook * Fix typing * upgrade plugin sdk to 0.0.96 * upgrade plugin sdk to 0.0.96 on bbb-web * fix ts error --------- Co-authored-by: Ramón Souza <[email protected]> * upgrade Hasura version from 2.48.1 to 2.48.9 * build(livekit): [email protected] (downgraded from v1.9.10) Downgrade livekit-server to 1.9.9 (from v1.9.10) as the latest version is panicking. * bump tldraw to 2.0.0-alpha.32 * Translate en.json in tr (#24461) 100% translated source file: 'en.json' on 'tr'. Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> * Updates for project BigBlueButton v3.0 HTML5 client and language ja (#24434) * Translate en.json in ja 100% translated source file: 'en.json' on 'ja'. * Translate en.json in ja 100% translated source file: 'en.json' on 'ja'. --------- Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> * refactor: consolidate join request metadata into single JSON property Replace individual fields (ipAddress, userAgent, referer, sessionToken) with a single joinRequestMetadata Map[String, String] property as suggested by @gustavotrott. This change: - Makes explicit that data is static request metadata, not dynamic user state - Avoids unnecessary additions of user properties in akka-apps - Allows future extensions without touching akka-apps core - Provides bbb-webhooks a single JSON property to consume The joinRequestMetadata contains: - ipAddress: Client IP from X-Forwarded-For/X-Real-IP/remoteAddr - userAgent: Browser/client user agent (max 512 chars) - referer: Origin page URL (max 1024 chars) - sessionToken: User session token * build(livekit): remove logging.level: debug from after-install bbb-livekit's after-install script is explicitly setting up the override config file with logging.level: debug. This is not necessary. * build(bbb-webrtc-sfu): v2.22.0 v2.22.0 --- * feat(livekit): add histogram metrics for mute/unmute duration * fix(livekit): honor user-scoped conditional recording flags * chore: disable Kurento by default in base/example config file * handle empty dropdown cases for leave meeting button * Implement dynamic layout in video recording format The current video recording format supports multiple layouts depending on the media shared in the recording, but the layout has to be selected before processing the recording and a single layout is used for the entire recording length. This causes problems with, for example, meetings that use deskshare and webcams, but do not use presentation. Either the webcams are fullscreen when deskshare isn't being used but the deskshare covers up the webcams, or the webcams are beside the deskshare but remain small and at the side of the recording. The new system uses the same layouts but instead of selecting the layout once before generating the video, it selects the layout separately for each individual cut of the video. This allows, for example, webcams to be fullscreen when deskshare isn't used, but when deskshare starts the webcams will become smaller and move to the side. As part of this work, to allow the presentation video to change size as the layout changes between cuts, the handling for video sources was refactored to be generic, allowing a new video source to be made for presentation video which generates presentation video on demand for each cut. This also speeds up recording processing and reduces disk space requirements by removing the separate step to generate the presentation video before rendering the recording. * Fix log output of video source commands * Add support for conditional rendering of video areas With the new system for selecting the layout separately for each cut depending on which type of content is present, it is also possible to make the layout selection depend on other things relating to the current state of the meeting. The EDL and layout data structures are updated to support "conditions". When the EDL is generated, various conditions can be included which identify things about the state of the session at that time. Then, when selecting a layout, the layout is only used if the conditions specified in the layout match the conditions in the session. Two conditions are added initially: * `presentation_used`: Indicates whether any actions have been done on the presentation/whiteboard area. * `screenshare_as_content`: Indicates the current state of the presentation/screenshare swap feature. The video recording format's code is simplified since it no longer needs to detect whether the presentation area was used itself; it can rely on the conditions to handle this instead. The default configuration file has been updated with layouts which handle the two new conditions. * Remove the unused bbb_presentation_video_codec config * Bugfixes for presentation format, video layout * Fix typo in 1080p video recoridng layout * Add presentation minimize support To make it easier to handle layout events, which usually deal with the "content" area rather than specifically presentation or screenshare, refactor the generator methods to create the EDL with layout-related conditions in a separate method. * Remove out of date comment from create_deskshare_edl * Fix calculation of fallback deskshare video size in presentation format * chore (gql-middleware): Introduce a config to dump queries to files (for debugging) (#24465) * introduce a config to dump queries to files (for debugging) * fix codeRabbit reports * Fix(graphql-server): Change type of some breakout name related fields to text * refactor: replace type method with fill where pressing events are not relevant * fix: add missing infinite whiteboard feature constant parameter * fix: replace fill method with type for forcing appending * Merge pull request #24475 from Tainan404/i-24448 Fix(html5): talking indicator being covered by webcam * Merge commit from fork * chore: Bump release to 3.0.20 * chore: Bump copyright year to 2026 * Fix(html5): Mod can't unlock user through Raised hand list (#24489) * Merge commit from fork When joining a session where the initial microphone state is supposed to be muted, the local MediaStreamTrack is not always disabled. This only affects the initial audio join. While the server discards data from muted streams by default, the local track enabled state should always match the user's mute state. This is a reggression caused by two elements: - The pivot to mute-on-creation (holding audio channels at creation time, transparent listen only) rather than muting as a side effect that happens after audio joins - The lack of mute state enforcement in the client's audio join callback Ensure the local audio MediaStreamTrack is disabled when joining if the initial mute state is "muted" by adding an enforcement routine in the audio join callback. Co-authored-by: prlanzarin <[email protected]> * npm audit on docs + testing * feat(LAD/akka): Added new functions for the plugin to publish data to LAD (#23619) * [lad-new-functions-plugin] added delete, upsert, and also fix issue with wrong total number * [lad-new-functions-plugin] rename from genericData -> pluginData in LAD context * [lad-new-functions-plugin] rename sendData -> upsertData (internally)for plugin data in LAD * [lad-new-functions-plugin] added documentation * [lad-new-functions-plugin] link PR on SDK * [lad-new-functions-plugin] rename data -> userData for LAD * [lad-new-functions-plugin] added clear all entries in lad for plugins * [lad-new-functions-plugin] refactor to improve readability * [lad-new-functions-plugin] updated documentation * [lad-new-functions-plugin] - adjust documentation * [lad-new-functions-plugin] - adjust package-lock.json * -- * [lad-new-functions-plugin] fixed akka breaking * Translate en.json in et 100% translated source file: 'en.json' on 'et'. * Update install.md * fix(audio): legacy listen only broken due to undefined argument Joining audio via the legacy listen only mode is failing due to a missing argument in a call to the onAudioJoining callback in AudioManager. Provide the callback with the appropriate argument in legacy listen only mode, as well as add a default value to the onAudioJoining method so this doesn't happen again. * build(bbb-webhooks): v3.6.0 v3.6.0 --- * feat: add docker matrix build to support arm64 * fix: parse boolean environment variables as booleans, not strings * refactor: pull ip address, user agent, referer and session token from joinRequestMetadata * build(deps): [email protected] * build(deps): [email protected] * build(deps): [email protected], [email protected] * build(deps): [email protected] * move react-scripts to devDependencies (#24502) * feat(publish-reports): add action to publish Playwright reports to GitHub Pages (#24471) * feat(publish-reports): add action to publish Playwright reports to GitHub Pages * fix(ci): enhance artifact fetching with error handling and validation for variables on publish action * upgrade webpack-dev-server to 5.2.3 (#24508) * build(deps): bump the npm_and_yarn group across 5 directories with 4 updates Bumps the npm_and_yarn group with 1 update in the /bbb-export-annotations directory: [js-yaml](https://github.com/nodeca/js-yaml). Bumps the npm_and_yarn group with 3 updates in the /bbb-graphql-client-test directory: [js-yaml](https://github.com/nodeca/js-yaml), [node-forge](https://github.com/digitalbazaar/forge) and [qs](https://github.com/ljharb/qs). Bumps the npm_and_yarn group with 4 updates in the /bbb-learning-dashboard directory: [js-yaml](https://github.com/nodeca/js-yaml), [node-forge](https://github.com/digitalbazaar/forge), [qs](https://github.com/ljharb/qs) and [diff](https://github.com/kpdecker/jsdiff). Bumps the npm_and_yarn group with 2 updates in the /bigbluebutton-html5 directory: [js-yaml](https://github.com/nodeca/js-yaml) and [diff](https://github.com/kpdecker/jsdiff). Bumps the npm_and_yarn group with 1 update in the /bigbluebutton-tests/playwright directory: [js-yaml](https://github.com/nodeca/js-yaml). Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `node-forge` from 1.3.1 to 1.3.3 - [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md) - [Commits](digitalbazaar/forge@v1.3.1...v1.3.3) Updates `qs` from 6.13.0 to 6.14.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.13.0...v6.14.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `node-forge` from 1.3.1 to 1.3.3 - [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md) - [Commits](digitalbazaar/forge@v1.3.1...v1.3.3) Updates `qs` from 6.13.0 to 6.14.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.13.0...v6.14.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `qs` from 6.13.0 to 6.14.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.13.0...v6.14.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `node-forge` from 1.3.1 to 1.3.3 - [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md) - [Commits](digitalbazaar/forge@v1.3.1...v1.3.3) Updates `qs` from 6.13.0 to 6.14.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.13.0...v6.14.1) Updates `diff` from 5.2.0 to 5.2.2 - [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md) - [Commits](kpdecker/jsdiff@v5.2.0...v5.2.2) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `node-forge` from 1.3.1 to 1.3.3 - [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md) - [Commits](digitalbazaar/forge@v1.3.1...v1.3.3) Updates `qs` from 6.13.0 to 6.14.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.13.0...v6.14.1) Updates `diff` from 5.2.0 to 5.2.2 - [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md) - [Commits](kpdecker/jsdiff@v5.2.0...v5.2.2) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `qs` from 6.13.0 to 6.14.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.13.0...v6.14.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `diff` from 5.2.0 to 5.2.2 - [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md) - [Commits](kpdecker/jsdiff@v5.2.0...v5.2.2) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `diff` from 5.2.0 to 5.2.2 - [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md) - [Commits](kpdecker/jsdiff@v5.2.0...v5.2.2) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.1.0...4.1.1) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: node-forge dependency-version: 1.3.3 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: node-forge dependency-version: 1.3.3 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: node-forge dependency-version: 1.3.3 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: diff dependency-version: 5.2.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: node-forge dependency-version: 1.3.3 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: diff dependency-version: 5.2.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.14.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: diff dependency-version: 5.2.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: diff dependency-version: 5.2.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]> * Fix(akka, html5): Prevent upload error notifications when converting breakout rooms with no changes (#24466) * Fix(akka): Don't emit upload error notification when a breakout ends with no changes * Fix(html5): Add notification for presenter in cases where no convertions will be made for breakout * Remove logs * Rename variables and add fixes * fix(workflows): update repository references for Playwright reports * bump tldraw to 2.0.0-alpha.33 (#24517) * build: bump bbb-playback to 5.4.4 * Fix(html5): Pinch zoom not propagating on WB * Use uint64 cache key to preserve both message identifiers * Fallback to using blanks if downscaling fails * Change png blank return value and add max svg size no-zero check * Add svg max size property * Translate en.json in zh_TW (#24522) 100% translated source file: 'en.json' on 'zh_TW'. Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> * fix: bbb-graphql-client-test/package.json & bbb-graphql-client-test/package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-LODASH-15053838 * fix(workflows): add artifact existence check for test reports in automated tests workflow for correctly updating "in progress" comment to failing when no reports are generated (#24520) * build(deps): bump the npm_and_yarn group across 4 directories with 1 update Bumps the npm_and_yarn group with 1 update in the /bbb-graphql-client-test directory: [lodash](https://github.com/lodash/lodash). Bumps the npm_and_yarn group with 1 update in the /bbb-learning-dashboard directory: [lodash](https://github.com/lodash/lodash). Bumps the npm_and_yarn group with 1 update in the /bigbluebutton-html5 directory: [lodash](https://github.com/lodash/lodash). Bumps the npm_and_yarn group with 1 update in the /docs directory: [lodash](https://github.com/lodash/lodash). Updates `lodash` from 4.17.21 to 4.17.23 - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.17.23) Updates `lodash` from 4.17.21 to 4.17.23 - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.17.23) Updates `lodash` from 4.17.21 to 4.17.23 - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.17.23) Updates `lodash` from 4.17.21 to 4.17.23 - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.17.23) --- updated-dependencies: - dependency-name: lodash dependency-version: 4.17.23 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: lodash dependency-version: 4.17.23 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: lodash dependency-version: 4.17.23 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: lodash dependency-version: 4.17.23 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]> * Move pres ext url check to create request constraint * build: Bump bbb-presentation-video to 5.1.0-beta.2 https://github.com/bigbluebutton/bbb-presentation-video/releases/tag/5.1.0-beta.2 * adjust bbb-html5 build script to not replace unintended strings * build(deps): bump ch.qos.logback:logback-core Bumps the maven group with 1 update in the /bbb-recording-imex directory: [ch.qos.logback:logback-core](https://github.com/qos-ch/logback). Updates `ch.qos.logback:logback-core` from 1.5.13 to 1.5.25 - [Release notes](https://github.com/qos-ch/logback/releases) - [Commits](qos-ch/logback@v_1.5.13...v_1.5.25) --- updated-dependencies: - dependency-name: ch.qos.logback:logback-core dependency-version: 1.5.25 dependency-type: direct:production dependency-group: maven ... Signed-off-by: dependabot[bot] <[email protected]> * fix(recording): Add check for notes_id undefined in events_worker.rb * Update events_worker.rb * Translate en.json in it_IT 100% translated source file: 'en.json' on 'it_IT'. * docs: Added new features to what is new * Fix(html5): enforce meetingId filtering across user-related data streams * Add filter to a extra list of components * review dixes * feat: Enhance PR comments for test outcomes and handle cancellations (#24541) * feat: Enhance PR comments for test outcomes and handle cancellations * feat: Update artifact existence check to use pagination and improve matching logic * Add docs for meta_analytics-callback-url * HTTP GET -> HTTP POST * Use secure prng for session id generation * feat(ci): Restore upload of merge HTML reporter to publish tests (#24479) * feat(ci): restore upload of merge HTML reporter to publish tests * fix(workflow/ci): update failure handling and report checks in publish-report job * fix(workflows): update HTML heading levels in automated tests comments * fix(action): refactor artifact existence check to use a consistent run ID retrieval method * fix(ci): update output variable name for check-artifact-exists action * fix: update automated tests comments for correct finding * Stringify "is_breakout" true/false statement * Fix(html5): presentation moving to old position when enable infinite WB * fix(ci): refine conditions for publishing test results and handling blob reports - avoid using grep-invert when`$SDK_FLAKY_TESTS` is empty for sdk tests - check for `bigbluebutton` as repository owner - fix output variable of check-reports action * ref(plugin): refactor the code of plugin logger to be more robust (#24185) * [sdk-plugin-logger] initial implementation of plugin-sdk powerful logger * [sdk-plugin-logger] enhance plugin-logger flow to include plugin name into the console logs. * [sdk-plugin-logger] added settings override for plugin logger * [sdk-plugin-logger] - Added example on how to use the logger. -- * [sdk-plugin-logger] resolve multiple runs of setLogger when new renders * [sdk-plugin-logger] changes in review * [sdk-plugin-logger] - added SDK flaky tests because pluginLogger changed structure. * [sdk-plugin-logger] - fixed path to flaky plugin tests * Translate en.json in hu_HU (#24547) 100% translated source file: 'en.json' on 'hu_HU'. Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> * Change bbb-conf to check with turnutils_stunclient (#24554) Co-authored-by: Michelle Winkler <[email protected]> * Translate en.json in ar (#24543) 100% translated source file: 'en.json' on 'ar'. Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> * docs: set a random domain as example in Docs * docs: include param sessionToken in getJoinUrl table * Fix(html5): missigin space in some locales on waiting room queue * build: Bump bbb-pads to 1.5.7 https://github.com/bigbluebutton/bbb-pads/releases/tag/v1.5.7 * update breakout rooms for user when role is changed (#24558) * chore: Bump release to 3.0.21 * build: Bump bbb-pads to 1.5.8 https://github.com/bigbluebutton/bbb-pads/releases/tag/v1.5.8 * chore: bump sdk version to 0.1.14 * fix(tests): fix breakouts tests in 3.1 * fix(tests): wait for upload to finish in multiple upload test Ensure upload is finished to avoid errors in CI Also remove 3.0 new features --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Anton Georgiev <[email protected]> Co-authored-by: Paulo Lanzarin <[email protected]> Co-authored-by: Ramón Souza <[email protected]> Co-authored-by: João Victor <[email protected]> Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> Co-authored-by: Guilherme Leme <[email protected]> Co-authored-by: Gustavo Trott <[email protected]> Co-authored-by: Gabriel Luiz Porfirio <[email protected]> Co-authored-by: Gabriel Ramos <[email protected]> Co-authored-by: Anton Barboza de Sá <[email protected]> Co-authored-by: Lucas <[email protected]> Co-authored-by: Tainan Felipe <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: AtilaU19 <[email protected]> Co-authored-by: Gabriel Ramos <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: João Victor Nunes <[email protected]> Co-authored-by: Calvin Walton <[email protected]> Co-authored-by: paultrudel <[email protected]> Co-authored-by: Anton Georgiev <[email protected]> Co-authored-by: Guilherme Pereira Leme <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paul Trudel <[email protected]> Co-authored-by: Fred Dixon <[email protected]> Co-authored-by: Michelle Winkler <[email protected]> Co-authored-by: Michelle <[email protected]>




This PR refactors the schema of breakout room–related tables and views.
The goal is to make it clearer and more straightforward to associate a user in a breakout room with their corresponding user in the main room.
The table
breakoutRoom_usernow contains all the necessary information to link both contexts:meetingId: ID of the main meetinguserId: user ID in the main meetingbreakoutRoomMeetingId: ID of the breakout room meetingbreakoutRoomUserId: user ID in the breakout room meetingSome property names were updated to better reflect their meaning.
The redundant and confusing
user_breakoutRoomtable was removed.Additionally, a new property
lastBreakoutRoomAssignedwas added to bothuseranduser_currentto make it easier to identify the last breakout room a user was assigned to.The existing
lastBreakoutRoomproperty was also fixed. It now correctly recordsjoinedAtonly when the user joins the meeting for the first time.