Repository navigation
fix: Fix locale problem when having multiple plugins - #23049
Conversation
…nterfere in each others locales.
WalkthroughThe changes introduce support for a new property, Sequence Diagram(s)sequenceDiagram
participant UI as PluginsEngineManager
participant GQL as GraphQL Backend
participant SDK as BbbPluginSdk
UI->>GQL: Query PluginConfigurationQuery (includes localesBaseUrl)
GQL-->>UI: Return plugin config with localesBaseUrl
UI->>UI: Map plugin configs, preserve localesBaseUrl
UI->>SDK: getPluginApi(uuid, pluginName, localesBaseUrl)
SDK-->>UI: Return plugin API instance
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
Problem: When multiple plugins were loaded in the same meeting, one
localesBaseUrlcould interfere in the others'. That's mainly because the query we had to search for this particular base URL was not filtering for thepluginName, so basically the locales would work quite well when having only one plugin.Solution: As
localesBaseUrldoes not change during the entire meeting and we have that information the second we build thepluginApifor a particular plugin, instead of getting it via subscription, or even query, the client (bigbluebutton-html5) will send it inside the pluginApi, which besides fixing the issue, will spare another subscription/query from running.More
Closely related to: bigbluebutton/bigbluebutton-html-plugin-sdk#178
See the before and after of the fix (the three red arrows are plugins, so we can see that multiple plugins are running on this meeting - both before and after the fix).
Before:
After: