Repository navigation
feat(LAD/akka): Added new functions for the plugin to publish data to LAD - #23619
Conversation
…ith wrong total number
…for plugin data in LAD
WalkthroughThis pull request refactors the Learning Analytics Dashboard plugin API from a single generic data operation to three distinct operation types: upsert, delete, and clear-all. Changes span message definitions, backend handlers in Akka actors, GraphQL mutations, and frontend components. The data model is renamed from Sequence Diagram(s)[No sequence diagrams generated for this change set] Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
bbb-graphql-server/metadata/actions.yaml (1)
319-324: Fix naming inconsistency between upsert and delete actions.While the action configuration is correct, there's a naming inconsistency:
pluginLearningAnalyticsDashboardUpsertDatauses camelCase whilePluginLearningAnalyticsDashboardDeleteDatauses PascalCase. Both actions should follow the same naming convention for consistency.- - name: PluginLearningAnalyticsDashboardDeleteData + - name: pluginLearningAnalyticsDashboardDeleteData
🧹 Nitpick comments (2)
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx (1)
40-70: Consistent implementation of new event handlers.Both handlers follow a consistent pattern for plugin name validation and target user ID handling. The type casting ensures proper TypeScript typing for the respective operation types.
Consider adding runtime validation for the data structures to improve type safety:
const handleUpsertDataForLearningAnalyticsDashboard: EventListener = ( (event: CustomEvent<LearningAnalyticsDashboardEventDetails>) => { if (event.detail.pluginName === pluginName) { const eventDetails = event.detail as LearningAnalyticsDashboardEventDetails; const dataToBeSent = eventDetails.data as UpsertDataArguments; + + // Validate required fields + if (!dataToBeSent.cardTitle || !dataToBeSent.columnTitle || !dataToBeSent.value) { + console.error('Invalid upsert data: missing required fields'); + return; + } + const targetUserId = eventDetails.targetUserId || ''; // ... rest of the handler } }) as EventListener;akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (1)
670-696: Solid upsert handler implementation with proper permission checking.The handler correctly implements the upsert logic with appropriate permission checks for moderator-only cross-user operations. The data structure updates and plugin titles tracking are properly handled.
Consider adding logging for permission violations to aid in debugging:
// Only moderators can alter learning-dashboard data from different user if (targetUserId != msg.header.userId && !fromUser.isModerator) { + log.warn("Permission denied: User {} attempted to modify data for user {} without moderator privileges", msg.header.userId, targetUserId) return }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
bigbluebutton-html5/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (15)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala(6 hunks)bbb-common-message/src/main/scala/org/bigbluebutton/common2/domain/Plugins.scala(1 hunks)bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala(2 hunks)bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardDeleteData.ts(1 hunks)bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardUpsertData.ts(3 hunks)bbb-graphql-server/metadata/actions.graphql(1 hunks)bbb-graphql-server/metadata/actions.yaml(1 hunks)bbb-learning-dashboard/public/test/test/learning_dashboard_data.json(0 hunks)bbb-learning-dashboard/src/App.js(3 hunks)bbb-learning-dashboard/src/components/PluginsTable.jsx(3 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx(2 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts(1 hunks)bigbluebutton-html5/package.json(1 hunks)docs/docs/plugins.md(1 hunks)
💤 Files with no reviewable changes (1)
- bbb-learning-dashboard/public/test/test/learning_dashboard_data.json
🧰 Additional context used
🧠 Learnings (8)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala (1)
Learnt from: jaapjansma
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.
bigbluebutton-html5/package.json (1)
Learnt from: kepstin
PR: #22200
File: docs/src/components/APITableComponent/index.tsx:79-80
Timestamp: 2025-02-05T20:23:17.109Z
Learning: In the BigBlueButton documentation site components, React key properties are not required for mapped elements as the pages are statically generated and don't require runtime reconciliation.
bbb-common-message/src/main/scala/org/bigbluebutton/common2/domain/Plugins.scala (1)
Learnt from: jaapjansma
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.
bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardUpsertData.ts (1)
Learnt from: jaapjansma
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.
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx (1)
Learnt from: jaapjansma
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.
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts (1)
Learnt from: jaapjansma
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.
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala (1)
Learnt from: jaapjansma
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.
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (1)
Learnt from: jaapjansma
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.
🧬 Code Graph Analysis (5)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala (1)
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala (4)
PluginLearningAnalyticsDashboardUpsertDataMsg(57-57)PluginLearningAnalyticsDashboardUpsertDataMsg(58-58)PluginLearningAnalyticsDashboardDeleteDataMsg(65-65)PluginLearningAnalyticsDashboardDeleteDataMsg(66-66)
bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardUpsertData.ts (1)
bbb-graphql-actions/src/imports/validation.ts (1)
throwErrorIfInvalidInput(29-126)
bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardDeleteData.ts (1)
bbb-graphql-actions/src/imports/validation.ts (1)
throwErrorIfInvalidInput(29-126)
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx (1)
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts (2)
PLUGIN_LEARNING_ANALYTICS_DASHBOARD_UPSERT_DATA_MUTATION(3-11)PLUGIN_LEARNING_ANALYTICS_DASHBOARD_DELETE_DATA_MUTATION(13-21)
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala (1)
bbb-common-message/src/main/scala/org/bigbluebutton/common2/domain/Plugins.scala (2)
PluginLearningAnalyticsDashboardData(3-7)PluginLearningAnalyticsDashboardDataDelete(9-12)
🔇 Additional comments (38)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala (1)
473-476: LGTM: Message routing updated correctly for new upsert/delete operations.The routing logic properly handles the two new message types that replace the deprecated generic data message. Both messages use the consistent
routeGenericMsgpattern and the message names match the constants defined inbbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala.bigbluebutton-html5/package.json (1)
60-60: Validate temporary GitHub tarball usage for the plugin SDKIt looks like there are no new npm releases for bigbluebutton-html-plugin-sdk beyond 0.0.87, and you’re pinning commit 5d1ebfea49ee70a3f16c6bcb504374cdca646659 (committed on 2025-07-25) via a GitHub tarball. While our postinstall script supports codeload URLs, pulling a raw commit can complicate downstream dependency management.
- File affected: bigbluebutton-html5/package.json (line 60)
- No recent releases found in the plugin SDK repo
- Pinned commit date: 2025-07-25
Please confirm:
- Is this GitHub URL a temporary workaround until the SDK is officially published to npm?
- If so, what’s the expected timeline for releasing a proper version?
bbb-common-message/src/main/scala/org/bigbluebutton/common2/domain/Plugins.scala (2)
3-7: LGTM: Case class renamed appropriately for upsert operations.The renaming from
PluginLearningAnalyticsDashboardGenericDatatoPluginLearningAnalyticsDashboardDataimproves clarity since this case class now specifically represents data for upsert operations rather than being a generic catch-all.
9-12: LGTM: Well-designed delete data case class.The new
PluginLearningAnalyticsDashboardDataDeletecase class correctly models delete operations by including only the necessary identification fields (columnTitleandcardTitle) while omitting thevaluefield that's not needed for deletion. This creates a more type-safe and self-documenting API.bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardUpsertData.ts (5)
8-9: LGTM: Input validation updated correctly for new upsert functionality.The parameter changes properly implement the new requirements:
- Renaming from
genericDataForLearningAnalyticsDashboardtodataForLearningAnalyticsDashboardaligns with the terminology cleanup- Adding
targetUserIdas a required string parameter enables the new capability for moderators to write data on behalf of other users
14-16: LGTM: Variable naming updated consistently.The local variable renaming from
genericDataForLearningAnalyticsDashboardtodataForLearningAnalyticsDashboardmaintains consistency with the input parameter changes while preserving the correct type assertion and validation logic.
17-18: LGTM: Validation logic updated with consistent naming.The validation condition and function call correctly use the renamed variable while maintaining the same validation requirements for the data object structure.
27-27: LGTM: Event name updated to match new message type.The event name change from
PluginLearningAnalyticsDashboardSendGenericDataMsgtoPluginLearningAnalyticsDashboardUpsertDataMsgcorrectly aligns with the new message type definitions and routing logic implemented across the codebase.
42-43: LGTM: Message body structure updated correctly.The message body changes properly implement the new structure:
- Field renaming maintains consistency with the input parameter updates
- Adding
targetUserIdensures the target user information is correctly passed to the backend for the new functionality allowing data modification on behalf of other usersbbb-graphql-server/metadata/actions.yaml (1)
313-318: LGTM: Upsert action configured correctly.The new
pluginLearningAnalyticsDashboardUpsertDataaction is properly configured with appropriate synchronous handling, correct handler URL, and consistent permissions for thebbb_clientrole.bbb-learning-dashboard/src/components/PluginsTable.jsx (6)
7-10: Documentation update looks good.The comment correctly reflects the new
pluginDataterminology while maintaining the same structure description.
12-15: Props renaming is consistent with the refactoring.The prop names have been correctly updated from
genericData*topluginData*terminology, maintaining consistency with the broader codebase changes.
46-53: Count calculation logic correctly updated.The duplicate removal logic using
SetwithObject.keysis sound, and the data access has been properly updated to usepluginDatainstead ofgenericData.
55-69: Column generation correctly uses updated prop name.The iteration over
pluginDataColumnTitleListis consistent with the prop renaming, and the column creation logic remains sound.
72-119: Row generation logic properly updated for new data structure.The data access patterns have been correctly changed from
genericDatatopluginData, and the processing logic for individual entries remains sound.
584-612: Tab rendering consistently updated with new prop names.All references to plugin data props have been correctly updated, maintaining consistency with the component's refactored interface.
bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardDeleteData.ts (4)
1-11: Function signature and initial validation look correct.The function follows the established pattern for GraphQL actions, and the input validation properly checks for all required parameters with appropriate types.
14-24: Nested validation properly implemented.The validation of
dataForLearningAnalyticsDashboardcorrectly ensures that required fields (cardTitleandcolumnTitle) are present and of the correct type.
26-37: Message routing and header construction are correct.The event name matches the expected delete message type, and the routing logic properly extracts session variables following the established pattern.
39-46: Message body construction and return are correct.The body includes all necessary input parameters, and the return statement provides a complete Redis message structure following the established pattern.
bbb-learning-dashboard/src/App.js (3)
246-261: Data processing logic correctly updated for new terminology.The renaming from
genericDatatopluginDatais consistent throughout, and the logic for extracting and deduplicating column titles remains sound.
584-612: Tab rendering consistently updated with new variable names.All references to plugin data variables have been correctly updated, maintaining the same functionality with the new terminology.
684-697: Tab panel content correctly updated for component interface changes.The props passed to
PluginsTableare consistent with the component's updated interface, using the newpluginData*prop names.bbb-graphql-server/metadata/actions.graphql (1)
357-362: Upsert mutation definition is well-structured.The mutation parameters are appropriately typed with required fields, and the naming clearly indicates the upsert operation.
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts (2)
3-11: Upsert mutation definition is correct.The variable declarations, parameter types, and operation call are all properly structured and consistent with GraphQL conventions.
13-21: Delete mutation definition follows correct conventions.The mutation structure is consistent with the upsert mutation, and the operation name correctly uses camelCase convention (
pluginLearningAnalyticsDashboardDeleteData).docs/docs/plugins.md (3)
950-956: Excellent documentation of the new API structure.The documentation clearly explains the new
learningAnalyticsDashboardobject with separateupsertanddeletefunctions, replacing the deprecated generic function. This provides better clarity for developers on the available operations.
957-975: Well-defined TypeScript interfaces.The
UpsertDataArgumentsandDeleteDataArgumentsinterfaces are clearly defined and align with the backend message structures. The separation of concerns between upsert (requiring value) and delete (not requiring value) operations is appropriate.
985-1010: Comprehensive usage examples with clear explanations.The examples demonstrate both basic usage and advanced scenarios with
targetUserIdfor moderators. The markdown support note and deprecation notice provide important additional context for developers migrating from the old API.bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx (3)
2-23: Proper imports and mutation hook setup.The imports correctly include the new TypeScript types and mutation constants. The mutation hooks are properly configured for both upsert and delete operations, maintaining consistency with the GraphQL layer changes.
25-38: Well-implemented legacy handler for backward compatibility.The legacy handler properly maintains backward compatibility while routing to the new upsert mutation. The deprecation comment and empty
targetUserIdhandling ensure a smooth transition for existing plugins.
72-96: Proper event listener management.The useEffect hook correctly registers all three event listeners (upsert, delete, and legacy) and properly cleans them up in the return function. This ensures no memory leaks and maintains React best practices.
bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala (2)
3-3: Well-structured message definitions following BigBlueButton conventions.The import statement correctly includes both domain classes, and the upsert message definition follows the established pattern with proper companion object and case class structure. The
targetUserIdfield enables moderators to publish data on behalf of other users as specified in the PR objectives.Also applies to: 57-63
65-71: Consistent delete message definition.The delete message definition maintains consistency with the upsert message structure while using the appropriate
PluginLearningAnalyticsDashboardDataDeletedata type. The consistent inclusion oftargetUserIdenables moderators to delete data on behalf of other users, maintaining feature parity between operations.akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (4)
26-26: Appropriate case class updates with improved naming.The renaming from "generic" to "plugin" terminology provides better clarity about the data's purpose. The
PluginDatacase class structure correctly captures the column title and value information needed for the learning analytics dashboard.Also applies to: 44-44, 78-81
180-183: Clean separation of upsert and delete message routing.The message routing correctly maps the new message types to their respective handlers, providing clear separation of concerns between upsert and delete operations.
661-668: Good refactoring with helper function to reduce duplication.The
updatePluginDataInLadHelperfunction properly encapsulates the common logic for updating meeting state, reducing code duplication between the upsert and delete handlers while maintaining consistency.
698-738: Comprehensive delete handler with thorough cleanup logic.The delete handler implements robust logic for removing plugin data entries while properly cleaning up empty cards and maintaining the plugin data titles. The permission checking is consistent with the upsert handler, and the conditional cleanup logic ensures data integrity.
There was a problem hiding this comment.
Actionable comments posted: 3
♻️ Duplicate comments (1)
bbb-graphql-server/metadata/actions.graphql (1)
355-375: LGTM! Consistent naming and well-structured mutations.The three new mutations follow consistent camelCase naming conventions and have appropriate parameter signatures:
upsertUserDataanddeleteUserDataboth requiretargetUserId,userDataForLearningAnalyticsDashboard, andpluginNameclearAllUsersDatarequirescardTitleandpluginNameThis addresses the previous naming inconsistency issue mentioned in past reviews.
🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/hooks.ts (1)
16-32: Consider adding dependency array to useEffect.The
useListenToEventhook's useEffect has an empty dependency array, but it uses theeventandhandlerparameters. This could cause stale closures if these values change.useEffect(() => { window.addEventListener( event, handler, ); return () => { window.removeEventListener( event, handler, ); }; - }, []); + }, [event, handler]);
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala(6 hunks)bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala(2 hunks)bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardClearAllUsersData.ts(1 hunks)bbb-graphql-server/metadata/actions.graphql(1 hunks)bbb-graphql-server/metadata/actions.yaml(1 hunks)bbb-learning-dashboard/src/App.js(3 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/hooks.ts(1 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx(1 hunks)bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (5)
- bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/manager.tsx
- bbb-graphql-server/metadata/actions.yaml
- bbb-learning-dashboard/src/App.js
- akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala
- bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/PluginMsgs.scala
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: jaapjansma
PR: bigbluebutton/bigbluebutton#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
PR: bigbluebutton/bigbluebutton#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/plugins-engine/learning-analytics-dashboard/mutations.tsakka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala
🧬 Code Graph Analysis (2)
bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardClearAllUsersData.ts (1)
bbb-graphql-actions/src/imports/validation.ts (1)
throwErrorIfInvalidInput(29-126)
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/hooks.ts (1)
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts (3)
PLUGIN_LEARNING_ANALYTICS_DASHBOARD_CLEAR_ALL_USER_DATA_MUTATION(23-30)PLUGIN_LEARNING_ANALYTICS_DASHBOARD_UPSERT_USER_DATA_MUTATION(3-11)PLUGIN_LEARNING_ANALYTICS_DASHBOARD_DELETE_USER_DATA_MUTATION(13-21)
🪛 GitHub Actions: Typescript - compile code
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/hooks.ts
[error] 3-3: TS2724: No exported member named 'ClearLearningAnalyticsDashboardEventDetails'. Did you mean 'LearningAnalyticsDashboardEventDetails'?
[error] 4-4: TS2724: No exported member named 'LearningAnalyticsDashboardDeleteUserData'. Did you mean 'LearningAnalyticsDashboardEventDetails'?
[error] 6-6: TS2724: No exported member named 'LearningAnalyticsDashboardUserData'. Did you mean 'LearningAnalyticsDashboardEventDetails'?
[error] 52-52: TS2551: Property 'CLEAR_ALL_USERS_DATA_COMMAND_SENT' does not exist on type 'typeof LearningAnalyticsDashboardEvents'. Did you mean 'UPSERT_DATA_COMMAND_SENT'?
[error] 94-94: TS2551: Property 'UPSERT_USER_DATA_COMMAND_SENT' does not exist on type 'typeof LearningAnalyticsDashboardEvents'. Did you mean 'UPSERT_DATA_COMMAND_SENT'?
[error] 125-125: TS2551: Property 'DELETE_USER_DATA_COMMAND_SENT' does not exist on type 'typeof LearningAnalyticsDashboardEvents'. Did you mean 'DELETE_DATA_COMMAND_SENT'?
⏰ 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). (4)
- GitHub Check: build-package (bbb-fsesl-akka)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-web)
- GitHub Check: build-package (bbb-apps-akka)
🔇 Additional comments (12)
bbb-graphql-actions/src/actions/pluginLearningAnalyticsDashboardClearAllUsersData.ts (1)
1-31: LGTM! Well-structured GraphQL action implementation.The implementation correctly follows the established patterns for GraphQL actions in this codebase:
- Proper input validation with required string parameters
- Consistent event naming convention
- Standard routing and header construction
- Clean separation of concerns
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/mutations.ts (1)
3-30: LGTM! GraphQL mutations correctly implement the new API.The three mutations properly correspond to the updated GraphQL schema:
- Consistent parameter naming and types
- Proper variable passing to mutation calls
- Clean separation of upsert, delete, and clear-all operations
The move to named exports is appropriate given the multiple mutations.
bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/hooks.ts (1)
52-52: Verify correct enum property in LearningAnalyticsDashboardEventsIt appears
CLEAR_ALL_USERS_DATA_COMMAND_SENTisn’t defined in any local enum. Please confirm the exact member name in your SDK and update accordingly.• Location to update:
– bigbluebutton-html5/imports/ui/components/plugins-engine/learning-analytics-dashboard/hooks.ts:52
ts // replace or correct this value based on the SDK’s enum LearningAnalyticsDashboardEvents.CLEAR_ALL_USERS_DATA_COMMAND_SENT,If the intended event is now named
UPSERT_DATA_COMMAND_SENT(or similar), swap in that member. Otherwise, verify the SDK’sLearningAnalyticsDashboardEventsenum and correct the reference.akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (9)
19-32: LGTM! Consistent data model refactoring.The
Meetingcase class correctly renamesgenericDataTitlestopluginUserDataCardTitles, maintaining consistency with the overall refactoring from generic to plugin-specific terminology.
34-52: LGTM! User model properly updated.The
Usercase class correctly renamesgenericDatatopluginUserData, maintaining the same data structure while adopting the new terminology.
80-84: LGTM! Enhanced data structure with plugin identification.The
PluginUserDatacase class (renamed fromGenericData) now includes apluginNamefield, enabling proper plugin-specific data management and filtering.
183-188: LGTM! Message routing updated for new operations.The message routing correctly handles the three new message types, replacing the single generic message handler with specific handlers for upsert, delete, and clear-all operations.
678-685: LGTM! Helpful state management abstraction.The
updatePluginUserDataInLadHelpermethod provides a clean abstraction for updating both user data and meeting-level card titles, reducing code duplication across the handlers.
687-718: LGTM! Secure upsert implementation with proper permissions.The upsert handler correctly implements:
- Permission check: only moderators can modify other users' data
- Proper target user resolution
- Data structure updates with new
PluginUserDataentries- Meeting-level card title management
720-761: LGTM! Comprehensive delete logic with cleanup.The delete handler properly:
- Enforces permission checks for cross-user operations
- Filters out entries by column title
- Removes empty cards and updates meeting-level titles
- Maintains data consistency
763-818: LGTM! Robust clear-all implementation.The clear-all handler correctly handles both scenarios:
- Clearing specific card titles
- Clearing all plugin data across all cards
- Proper permission enforcement (moderator-only)
- Efficient batch updates with state consistency
838-838: LGTM! Initialization updated consistently.The meeting creation correctly initializes
pluginUserDataCardTitlesas an empty vector, maintaining consistency with the renamed field.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (2)
687-718: LGTM! Upsert handler correctly implements permissions and data management.The handler properly:
- Determines target user (self vs. on-behalf-of)
- Enforces moderator-only permissions for cross-user operations
- Updates plugin user data and card titles appropriately
- Logs the operation
Consider replacing the early return with more idiomatic Scala pattern matching:
- // Only moderators can alter learning-dashboard data from different user - if (targetUserId != msg.header.userId && !fromUser.isModerator) { - return - } + // Only moderators can alter learning-dashboard data from different user + if (targetUserId != msg.header.userId && !fromUser.isModerator) { + log.warn("Non-moderator user {} attempted to modify data for user {}", msg.header.userId, targetUserId) + } else { + // ... rest of the logic + }
720-760: LGTM! Delete handler correctly removes data and cleans up empty cards.The handler properly:
- Enforces moderator permissions for cross-user operations
- Filters out matching entries by columnTitle
- Removes empty cards and updates card titles
- Maintains data consistency
Same style improvement suggestion applies here - consider replacing the early return with more idiomatic Scala pattern matching for consistency with functional programming principles.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala(6 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: jaapjansma
PR: bigbluebutton/bigbluebutton#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
PR: bigbluebutton/bigbluebutton#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/endpoint/redis/LearningDashboardActor.scala
⏰ 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). (6)
- GitHub Check: build-package (bbb-web)
- GitHub Check: build-package (bbb-playback-record)
- GitHub Check: build-package (bbb-html5)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: build-package (bbb-apps-akka)
🔇 Additional comments (6)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (6)
19-32: LGTM! Case class refactoring improves clarity and functionality.The renaming from generic terminology (
genericDataTitles,genericData) to more specific plugin user data terminology (pluginUserDataCardTitles,pluginUserData) enhances code readability. The addition of thepluginNamefield toPluginUserDatais valuable for tracking data ownership across plugins.Also applies to: 34-52, 80-84
183-188: LGTM! Message routing properly supports new granular operations.The replacement of the single generic message handler with three distinct handlers (upsert, delete, clear-all) provides better separation of concerns and aligns with the PR objectives for more explicit plugin data operations.
678-685: LGTM! Helper method reduces code duplication.The
updatePluginUserDataInLadHelpermethod appropriately centralizes the logic for updating both user data and plugin user data card titles, eliminating duplication across the three message handlers.
762-795: LGTM! Clear-all helper methods are well-designed and functional.The helper methods demonstrate good Scala functional programming practices:
clearAllDataFromUserselegantly handles both card-specific and plugin-wide clearing using Option pattern matchingremoveEmptyCardTitlesmaintains consistency by removing orphaned card titles- The use of
flatMapand filtering operations is idiomatic and efficient
797-825: LGTM! Clear-all handler properly restricts access and handles bulk operations.The handler correctly:
- Restricts the powerful clear-all operation to moderators only
- Supports both card-specific and plugin-wide clearing
- Updates all affected users and meeting state consistently
- Provides appropriate logging for audit purposes
The security model is appropriate for this sensitive bulk operation.
845-845: LGTM! Meeting creation properly initializes the renamed field.The initialization of
pluginUserDataCardTitlesas an empty Vector is correct and aligns with the refactoring fromgenericDataTitles.
|
|
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
bbb-graphql-server/metadata/actions.graphql (1)
355-375: Naming consistency issue from past review is resolved.The past review comment about PascalCase vs camelCase inconsistency has been addressed—all three mutations now use camelCase naming (
pluginLearningAnalyticsDashboardUpsertUserData,pluginLearningAnalyticsDashboardDeleteUserData,pluginLearningAnalyticsDashboardClearAllUsersData).However, consider revising the parameter nullability pattern:
targetUserIdandcardTitleare marked asString!(required), but the backend treats empty strings as optional (Line 722, 755, 832 in LearningDashboardActor.scala check.isEmpty). Standard GraphQL practice uses nullable types (String) for optional parameters rather than requiring clients to pass empty strings.Consider this refactor to make the API more idiomatic:
type Mutation { pluginLearningAnalyticsDashboardUpsertUserData( - targetUserId: String! + targetUserId: String userDataForLearningAnalyticsDashboard: json! pluginName: String! ): Boolean } type Mutation { pluginLearningAnalyticsDashboardDeleteUserData( - targetUserId: String! + targetUserId: String userDataForLearningAnalyticsDashboard: json! pluginName: String! ): Boolean } type Mutation { pluginLearningAnalyticsDashboardClearAllUsersData( - cardTitle: String! + cardTitle: String pluginName: String! ): Boolean }Then update the backend to check for
nullinstead of empty strings.akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (1)
796-860: Consider batching user updates for efficiency.The
clearAllDataFromUserslogic correctly handles two cases (specific card vs. all cards for a plugin), and the authorization check ensures only moderators can clear data (Line 840).However, Lines 849-851 call
updatePluginUserDataInLadHelperfor each user in a loop, repeatedly updating themeetingsmap. While this is safe in the actor model (sequential message processing), it's inefficient. Consider batching all user updates into a single meeting update:- updatedUsers.foreach { updatedUser => - updatePluginUserDataInLadHelper(meeting, updatedUser, updatedPluginUserDataCardTitles) - } + val updatedUsersMap = updatedUsers.map(u => u.userKey -> u).toMap + val updatedMeeting = meeting.copy( + users = meeting.users ++ updatedUsersMap, + pluginUserDataCardTitles = updatedPluginUserDataCardTitles + ) + meetings += (updatedMeeting.intId -> updatedMeeting)This performs a single map update instead of N updates.
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala(1 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala(6 hunks)bbb-graphql-server/metadata/actions.graphql(1 hunks)bbb-graphql-server/metadata/actions.yaml(1 hunks)bbb-learning-dashboard/src/App.js(3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- bbb-graphql-server/metadata/actions.yaml
🧰 Additional context used
🧠 Learnings (1)
📚 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/endpoint/redis/LearningDashboardActor.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala
🧬 Code graph analysis (1)
bbb-learning-dashboard/src/App.js (1)
bbb-learning-dashboard/src/components/PluginsTable.jsx (1)
PluginsTable(11-158)
⏰ 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). (5)
- GitHub Check: build-package (bbb-fsesl-akka)
- GitHub Check: build-package (bbb-learning-dashboard)
- GitHub Check: build-package (bbb-apps-akka)
- GitHub Check: build-package (bbb-web)
- GitHub Check: build-package (bbb-html5)
🔇 Additional comments (8)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala (1)
477-482: LGTM! The routing and integration changes are complete and correct.The three new LAD plugin message types (upsert, delete, clear-all) are properly defined in PluginMsgs.scala, correctly routed in ReceivedJsonMsgHandlerActor using the established
routeGenericMsgpattern, and have corresponding handlers in LearningDashboardActor. The deprecatedPluginLearningAnalyticsDashboardSendGenericDataMsgmessage type has been completely removed from the codebase.bbb-learning-dashboard/src/App.js (3)
347-361: LGTM: Data model migration is consistent.The variable renames from
genericDatatopluginUserDataare applied consistently throughout this segment. The logic for extracting and deduplicating column titles remains sound.
589-617: LGTM: Conditional rendering updated correctly.The plugin card rendering logic correctly uses the new
pluginUserDataCardTitleandpluginUserDataColumnTitleListvariables, maintaining the same conditional behavior as before.
691-697: LGTM: Props correctly passed to PluginsTable.The
pluginUserDataCardTitleandpluginUserDataColumnTitleListprops are correctly passed to thePluginsTablecomponent, matching the expected interface shown in the relevant code snippets.akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (4)
19-32: LGTM: Data model refactor is well-structured.The new data model clearly separates concerns:
Meeting.pluginUserDataCardTitlestracks active card titles across all usersUser.pluginUserDatais a map ofcardTitle → Vector[PluginUserData]PluginUserDatanow includespluginNameto support plugin-specific filteringThe use of immutable case classes and vectors ensures thread-safety in the actor model.
Also applies to: 34-54, 82-86, 879-879
712-719: LGTM: Helper function reduces code duplication.The
updatePluginUserDataInLadHelpermethod encapsulates the common pattern of updating both user data and card titles in the meeting, promoting DRY principles and ensuring consistent updates.
754-794: LGTM: Delete logic is thorough and consistent.The delete handler correctly:
- Enforces moderator authorization for cross-user operations (Line 763)
- Removes all entries matching the
columnTitle(Line 773)- Cleans up empty cards from both user data and meeting-level card titles (Lines 775-789)
- Maintains immutable update patterns
721-752: Clarify the intended upsert behavior for pluginUserData entries.The upsert logic appends a new
PluginUserDataentry without checking for existing entries with matchingcolumnTitle(line 741). Multiple calls with the samecardTitleandcolumnTitlewill create duplicate entries in the vector.Is this append-only behavior intentional—for example, to maintain an audit log of all updates—or should duplicates be deduplicated by
columnTitleto match standard upsert semantics (update if exists, insert if not)?
|
Still interested in this for BBB 3.0 (after an internal conversation) |
|
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (1)
894-915: Dead code: the "disabled" log message will never execute.Line 895 checks
if (disabledFeatures.contains("learningDashboard") == false), meaning the block only executes when the dashboard is NOT disabled. The inner check on line 912if (disabledFeatures.contains("learningDashboard"))is inside this block, so it will always be false and the log on line 913 will never execute.🔧 Suggested fix: Move the disabled log outside the if block or remove it
private def handleCreateMeetingReqMsg(msg: CreateMeetingReqMsg): Unit = { - if (msg.body.props.meetingProp.disabledFeatures.contains("learningDashboard") == false) { + if (msg.body.props.meetingProp.disabledFeatures.contains("learningDashboard")) { + log.info(" disabled for meeting {}.", msg.body.props.meetingProp.intId) + } else { val newMeeting = Meeting( // ... meeting creation ) meetings += (newMeeting.intId -> newMeeting) meetingAccessTokens += (newMeeting.intId -> msg.body.props.password.learningDashboardAccessToken) - - if (msg.body.props.meetingProp.disabledFeatures.contains("learningDashboard")) { - log.info(" disabled for meeting {}.",msg.body.props.meetingProp.intId) - } }
🤖 Fix all issues with AI agents
In
`@akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala`:
- Around line 806-811: The current logic uses filteredPluginUserData.nonEmpty to
decide whether to keep a card title, which only reflects the current user's data
and can remove the title while other users still have data; change the removal
check to scan all users' plugin data in meeting.pluginUserData and only remove
cardTitle from meeting.pluginUserDataCardTitles if no user has non-empty data
for that cardTitle (i.e., compute a boolean like anyUserHasData =
meeting.pluginUserData.values.exists(...) and use that to decide
updatedPluginUserDataTitles).
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scalabbb-graphql-server/metadata/actions.graphqlbbb-graphql-server/metadata/actions.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
- bbb-graphql-server/metadata/actions.graphql
🧰 Additional context used
🧠 Learnings (1)
📚 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/endpoint/redis/LearningDashboardActor.scalaakka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala
🔇 Additional comments (8)
bbb-graphql-server/metadata/actions.yaml (1)
313-330: LGTM!The three new GraphQL actions (
UpsertUserData,DeleteUserData,ClearAllUsersData) are well-structured and consistent with the existing action patterns in the file. The rename fromSendGenericDatatoUpsertUserDataaligns with the PR objectives, and the new delete/clear actions properly extend the plugin API surface.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/pubsub/senders/ReceivedJsonMsgHandlerActor.scala (1)
475-480: LGTM!The routing cases for the three new LAD messages follow the established pattern used by other plugin messages in the same file. The replacement of the single
SendGenericDataMsgwith the three distinct message types (UpsertUserData,DeleteUserData,ClearAllUsersData) correctly mirrors the GraphQL action changes.akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (6)
84-88: LGTM!The
PluginUserDatacase class cleanly captures the three key attributes (columnTitle,value,pluginName) needed for the new upsert/delete/clear operations. ThepluginNamefield is a good addition that enables the clear-by-plugin functionality.
193-198: LGTM!The message handler routing correctly maps the three new message types to their respective handler methods, consistent with the routing changes in
ReceivedJsonMsgHandlerActor.scala.
734-741: LGTM!Good extraction of the common meeting update logic into a helper method. This reduces duplication across the upsert, delete, and clear handlers.
743-774: Clarify "upsert" semantics: should duplicatecolumnTitleentries be allowed?The current implementation appends a new
PluginUserDataentry to the vector for a givencardTitle(line 763). This allows multiple entries with the samecolumnTitlewithin a card.If "upsert" is intended to mean "update existing or insert new" (standard upsert semantics), the implementation should replace an existing entry with the same
columnTitlerather than appending. Otherwise, the delete operation (which removes bycolumnTitle) would only remove the first matching entry, leaving duplicates.If multiple values per column are intentional, consider renaming to
addUserDatafor clarity.💡 Suggested fix if replacement semantics are intended
- val currentPluginUserData = targetUser.pluginUserData.getOrElse(msg.body.userDataForLearningAnalyticsDashboard.cardTitle, Vector()) val newPluginUserDataEntry = PluginUserData( msg.body.userDataForLearningAnalyticsDashboard.columnTitle, msg.body.userDataForLearningAnalyticsDashboard.value, msg.body.pluginName ) + val currentPluginUserData = targetUser.pluginUserData.getOrElse(msg.body.userDataForLearningAnalyticsDashboard.cardTitle, Vector()) + val filteredPluginUserData = currentPluginUserData.filterNot(_.columnTitle == newPluginUserDataEntry.columnTitle) val updatedUser = targetUser.copy( - pluginUserData = targetUser.pluginUserData + (msg.body.userDataForLearningAnalyticsDashboard.cardTitle -> (currentPluginUserData :+ newPluginUserDataEntry))) + pluginUserData = targetUser.pluginUserData + (msg.body.userDataForLearningAnalyticsDashboard.cardTitle -> (filteredPluginUserData :+ newPluginUserDataEntry)))
818-840: LGTM!The
clearAllDataFromUsershelper correctly handles both scenarios:
- When
cardTitleis provided: removes the entire card for the plugin.- When
cardTitleisNone: removes all entries for the givenpluginNameacross all cards, cleaning up empty cards.
842-851: LGTM!The
removeEmptyCardTitleshelper correctly computes which card titles should remain after a clear-all operation by checking the updated users' data.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
| val updatedPluginUserDataTitles = | ||
| if (filteredPluginUserData.nonEmpty) { | ||
| meeting.pluginUserDataCardTitles | ||
| } else { | ||
| meeting.pluginUserDataCardTitles.filterNot(_ == cardTitle) // remove title if card is gone | ||
| } |
There was a problem hiding this comment.
Bug: Card title prematurely removed from meeting when only one user's data is deleted.
When a user's data for a cardTitle becomes empty after deletion, line 810 removes that cardTitle from meeting.pluginUserDataCardTitles. However, other users may still have data for that same card title.
This causes the card title to disappear from the meeting-level tracking even though other users' data for that card still exists.
🐛 Proposed fix: Check all users before removing card title
val updatedPluginUserDataTitles =
if (filteredPluginUserData.nonEmpty) {
meeting.pluginUserDataCardTitles
} else {
- meeting.pluginUserDataCardTitles.filterNot(_ == cardTitle) // remove title if card is gone
+ // Only remove cardTitle from meeting if no other user has data for it
+ val otherUsersHaveCard = meeting.users.values.exists { u =>
+ u.userKey != targetUser.userKey && u.pluginUserData.contains(cardTitle)
+ }
+ if (otherUsersHaveCard) meeting.pluginUserDataCardTitles
+ else meeting.pluginUserDataCardTitles.filterNot(_ == cardTitle)
}🤖 Prompt for AI Agents
In
`@akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala`
around lines 806 - 811, The current logic uses filteredPluginUserData.nonEmpty
to decide whether to keep a card title, which only reflects the current user's
data and can remove the title while other users still have data; change the
removal check to scan all users' plugin data in meeting.pluginUserData and only
remove cardTitle from meeting.pluginUserDataCardTitles if no user has non-empty
data for that cardTitle (i.e., compute a boolean like anyUserHasData =
meeting.pluginUserData.values.exists(...) and use that to decide
updatedPluginUserDataTitles).
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala`:
- Around line 894-916: In handleCreateMeetingReqMsg remove the unreachable logic
caused by the outer if that ensures "learningDashboard" is not in
disabledFeatures: stop setting learningDashboardDisabled using
msg.body.props.meetingProp.disabledFeatures.contains("learningDashboard") (it
will always be false), and remove the inner if that logs when learningDashboard
is disabled (log.info block is unreachable); instead construct the Meeting with
learningDashboardDisabled = false (or omit the redundant check) and retain the
additions to meetings and meetingAccessTokens and other metadata as-is, keeping
the Meeting constructor and variables (Meeting, meetings, meetingAccessTokens,
log) unchanged so only the redundant checks are removed.
♻️ Duplicate comments (2)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (2)
806-811: Bug: Card title prematurely removed when only one user's data is deleted.This bug was already flagged: when a user's data for a
cardTitlebecomes empty, line 810 removes thatcardTitlefrommeeting.pluginUserDataCardTitles, but other users may still have data for that card. The fix should check all users before removing the card title.
866-873: Bug: Only the last user's update persists in clear-all operation.This bug was already flagged: the
foreachloop callsupdatePluginUserDataInLadHelperfor each user with the originalmeetingobject, so each iteration overwrites the previous. Only the last user's changes survive.
🧹 Nitpick comments (3)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (3)
752-755: Avoidreturninside for-comprehension.Using
returninside a for-yield block relies on Scala's non-local return mechanism, which throws aNonLocalReturnControlexception that's caught by the enclosing method. This is anti-idiomatic and can break if the code is refactored (e.g., wrapped in a Future or moved to a helper function).♻️ Suggested refactor using guard condition
- for { - meeting <- meetings.values.find(m => m.intId == msg.header.meetingId) - fromUser <- findUserByIntId(meeting, msg.header.userId) - targetUser <- findUserByIntId(meeting, targetUserId) - } yield { - - // Only moderators can alter learning-dashboard data from different user - if (targetUserId != msg.header.userId && !fromUser.isModerator) { - return - } + for { + meeting <- meetings.values.find(m => m.intId == msg.header.meetingId) + fromUser <- findUserByIntId(meeting, msg.header.userId) + targetUser <- findUserByIntId(meeting, targetUserId) + if targetUserId == msg.header.userId || fromUser.isModerator + } yield {
784-787: Avoidreturninside for-comprehension.Same issue as in the upsert handler. Use a guard condition in the for-comprehension instead of
return.♻️ Suggested refactor using guard condition
for { meeting <- meetings.values.find(m => m.intId == msg.header.meetingId) fromUser <- findUserByIntId(meeting, msg.header.userId) targetUser <- findUserByIntId(meeting, targetUserId) - } yield { - // Only moderators can alter learning-dashboard data from different user - if (targetUserId != msg.header.userId && !fromUser.isModerator) { - return - } + if targetUserId == msg.header.userId || fromUser.isModerator + } yield {
862-864: Avoidreturninside for-comprehension.Same issue as in the other handlers. Use a guard condition instead.
♻️ Suggested refactor using guard condition
for { meeting <- meetings.values.find(m => m.intId == msg.header.meetingId) fromUser <- findUserByIntId(meeting, msg.header.userId) + if fromUser.isModerator } yield { - // Only moderators can clear all users data - if (!fromUser.isModerator) { - return - }
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala
🧰 Additional context used
🧠 Learnings (1)
📚 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/endpoint/redis/LearningDashboardActor.scala
⏰ 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). (2)
- GitHub Check: build-package (bbb-apps-akka)
- GitHub Check: build-package (bbb-html5)
🔇 Additional comments (7)
akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/LearningDashboardActor.scala (7)
20-56: LGTM!The data model changes for
Meeting.pluginUserDataCardTitlesandUser.pluginUserDataare well-structured and align with the newPluginUserDatatype.
84-88: LGTM!The
PluginUserDatacase class is well-defined with clear field semantics.
193-198: LGTM!The message routing for the new plugin data operations is correctly wired to the corresponding handlers.
734-741: LGTM!The helper method cleanly encapsulates the common pattern for updating meeting state with user plugin data changes.
756-763: Method name says "upsert" but implementation only appends.The current logic appends
newPluginUserDataEntryto the vector at line 763, which creates duplicate entries if the samecolumnTitleis inserted multiple times. If "upsert" semantics are intended, existing entries with the samecolumnTitleshould be updated rather than duplicated.If duplicates are intentional (e.g., supporting multiple entries per column), the method name may need clarification. Otherwise, consider filtering out existing entries before appending:
♻️ Suggested fix for true upsert semantics
val currentPluginUserData = targetUser.pluginUserData.getOrElse(msg.body.userDataForLearningAnalyticsDashboard.cardTitle, Vector()) + // Remove existing entry with same columnTitle to achieve upsert semantics + val filteredPluginUserData = currentPluginUserData.filterNot(_.columnTitle == newPluginUserDataEntry.columnTitle) val updatedUser = targetUser.copy( - pluginUserData = targetUser.pluginUserData + (msg.body.userDataForLearningAnalyticsDashboard.cardTitle -> (currentPluginUserData :+ newPluginUserDataEntry))) + pluginUserData = targetUser.pluginUserData + (msg.body.userDataForLearningAnalyticsDashboard.cardTitle -> (filteredPluginUserData :+ newPluginUserDataEntry)))
818-840: LGTM!The helper correctly handles both clear modes: by specific card title or by plugin name across all cards.
842-851: LGTM!The helper correctly computes the remaining card titles based on whether a specific card was cleared or all plugin data was removed.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
Automated tests Summary✅ All the CI tests have passed! |
121293e
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]>


What does this PR do?
It does 4 things:
sendGenericDataForLearningAnalyticsDashboardfor being too verbose and not really following the SDK general pattern;pluginApi.learningAnalyticsDashboard:upsertUserData: it will basically replace the deprecated function mentioned with one extra feature - one can write data on behalf of another user if moderator;deleteUserData: Deletes entry from LADjsondata;clearAllUsersData: Deletes the entry for all user's data in LAD;Motivation
Deleting plugin data from the LAD was the first motivator for this PR, but then also include the possibility of a user publish or remove data on behalf of another user is also useful.
More
Closely related to the PR in the SDK: bigbluebutton/bigbluebutton-html-plugin-sdk#211
To use the new features just do: