Repository navigation
refactor(reactions): drop per-user enable-user-reaction join parameter - #25438
antobinary merged 1 commit into
Conversation
The userdata-enable-user-reaction join parameter let an individual user override the reactions toggle. Reactions are already gated by the userReactions disabledFeatures flag and public.userReaction.enabled in settings.yml, so the per-user override is redundant. Remove it along with the now-unused getFromUserSettings import. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
WalkthroughThe reaction enablement service removes the Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/user-reaction/service.js (1)
5-5: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAvoid checking the public setting twice.
useIsReactionsEnabled()already applies both thereactionsdisabled-feature gate andpublic.userReaction.enabled. CallinggetEnabledSetting()again is redundant and leaves two enablement paths that could drift later. UseuseIsReactionsEnabled()directly, removing the helper if it has no other consumers.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@bigbluebutton-html5/imports/ui/components/user-reaction/service.js` at line 5, Update useIsEnabled to rely directly on useIsReactionsEnabled(), removing the redundant getEnabledSetting() check and deleting the helper if it has no other consumers. Preserve the existing disabled-feature and public setting gates provided by useIsReactionsEnabled().
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@bigbluebutton-html5/imports/ui/components/user-reaction/service.js`:
- Line 5: Update useIsEnabled to rely directly on useIsReactionsEnabled(),
removing the redundant getEnabledSetting() check and deleting the helper if it
has no other consumers. Preserve the existing disabled-feature and public
setting gates provided by useIsReactionsEnabled().
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 9bb4c66a-8a2b-4bb0-953c-b810a0496272
📒 Files selected for processing (1)
bigbluebutton-html5/imports/ui/components/user-reaction/service.js
|
🚨 Automated tests failed |
lfzawacki
left a comment
There was a problem hiding this comment.
Approved let's merge right after the 3.0 => 4.0 merge
910f025
into
bigbluebutton:v4.0.x-develop



What does this PR do?
The userdata-enable-user-reaction join parameter let an individual user override the reactions toggle. Remove it along with the now-unused getFromUserSettings import.
Closes Issue(s)
Closes # none
Motivation
Reactions are already gated by the userReactions disabledFeatures flag and public.userReaction.enabled in settings.yml, so the per-user override is redundant.
Caught when trying to document missing userdata- parameters.