Skip to content

refactor(reactions): drop per-user enable-user-reaction join parameter - #25438

Merged
antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
antobinary:remove-enable-user-reaction
Jul 21, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
antobinary:remove-enable-user-reaction

Conversation

@antobinary

Copy link
Copy Markdown
Member

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.

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]>
@antobinary antobinary added this to the Release 4.0 milestone Jul 16, 2026
@antobinary
antobinary requested a review from lfzawacki July 16, 2026 20:13
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The reaction enablement service removes the getFromUserSettings lookup for enable-user-reaction. useIsEnabled now directly combines useIsReactionsEnabled() with window.meetingClientSettings.public.userReaction.enabled.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: removing the per-user reactions join parameter.
Description check ✅ Passed The description matches the changeset by explaining the per-user override removal and the unused import cleanup.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/user-reaction/service.js (1)

5-5: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Avoid checking the public setting twice.

useIsReactionsEnabled() already applies both the reactions disabled-feature gate and public.userReaction.enabled. Calling getEnabledSetting() again is redundant and leaves two enablement paths that could drift later. Use useIsReactionsEnabled() 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

📥 Commits

Reviewing files that changed from the base of the PR and between 82cccb6 and ace6c5b.

📒 Files selected for processing (1)
  • bigbluebutton-html5/imports/ui/components/user-reaction/service.js

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@lfzawacki lfzawacki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved let's merge right after the 3.0 => 4.0 merge

@antobinary
antobinary merged commit 910f025 into bigbluebutton:v4.0.x-develop Jul 21, 2026
34 of 36 checks passed
@antobinary
antobinary deleted the remove-enable-user-reaction branch July 21, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants