Skip to content

build: default shared notes to BlockNote - #25124

Merged
antobinary merged 7 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:swap-shared-notes
Jul 16, 2026
Merged

antobinary merged 7 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:swap-shared-notes

Conversation

@antobinary

Copy link
Copy Markdown
Member

What does this PR do?

Changes the default Shared Notes component for BigBlueButton 4.0 from Etherpad to BlockNote.

Closes Issue(s)

Closes # none
Ports #25117 to BBB 4.0

Motivation

Based on recent experience with BBB 3.0.26 and 3.0.27 we are happy with the usability and performance of BlockNote (introduced a few months prior in 3.0.x)

How to test

On a new BBB installation when you join a session, you should be seeing BlockNote's UI in the Shared Notes panel.
On upgraded servers, the packages bbb-pads and bbb-etherpad should be marked as not needed anymore.

@antobinary antobinary added this to the Release 4.0 milestone May 21, 2026
@coderabbitai

coderabbitai Bot commented May 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The default Shared Notes editor changes from Etherpad to BlockNote. Package options now enable bbb-shared-notes-server, remove bbb-pads from the disabled components, and include PostgreSQL 16 for the shared-notes server package. API documentation reflects the new default, and release documentation describes package availability and Etherpad opt-in configuration.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • Issue 25125: The changes implement the requested shift from Etherpad to BlockNote as the default shared-notes editor.

Suggested reviewers: guileme

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: switching the default shared notes editor to BlockNote.
Description check ✅ Passed The description is directly related and accurately explains the BlockNote default change and its motivation.
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.

Copilot AI 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.

Pull request overview

This PR switches BigBlueButton 4.0’s default Shared Notes implementation from Etherpad (bbb-etherpad/bbb-pads) to BlockNote (bbb-shared-notes-server), updating both runtime defaults and packaging dependencies for Ubuntu Noble.

Changes:

  • Set sharedNotesEditor=blockNote as the default in bigbluebutton-web configuration.
  • Update Noble packaging dependencies to install bbb-shared-notes-server by default (and add postgresql-16 for the shared-notes server).
  • Document the new default and how to opt back into Etherpad.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
docs/docs/new-features.md Adds release-note style documentation explaining BlockNote as the new default and how to use Etherpad instead.
build/packages-template/bbb-shared-notes-server/opts-noble.sh Adds postgresql-16 dependency needed for local DB initialization during install.
build/packages-template/bbb-html5/opts-noble.sh Swaps default dependency from bbb-pads to bbb-shared-notes-server so new installs pull BlockNote.
bigbluebutton-web/grails-app/conf/bigbluebutton.properties Changes the default shared notes editor from etherpad to blockNote.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud

Copy link
Copy Markdown

@antobinary

Copy link
Copy Markdown
Member Author

The tests right now require Etherpad
image

I've opened #25125 to add BlockNotes tests. Until then likely I'll disable the tests touching on shared notes.

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Comment thread docs/docs/new-features.md Resolved

@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.

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@build/packages-template/bbb-html5/opts-noble.sh`:
- Line 5: Remove bbb-shared-notes-server from the package list in OPTS so
upgrades do not invoke its destructive after-install.sh database-drop path;
preserve all other package entries unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b9bc6841-4591-4801-89cc-27b7f16c3842

📥 Commits

Reviewing files that changed from the base of the PR and between bc138d1 and e43395e.

📒 Files selected for processing (5)
  • bigbluebutton-web/grails-app/conf/bigbluebutton.properties
  • build/packages-template/bbb-html5/opts-noble.sh
  • build/packages-template/bbb-shared-notes-server/opts-noble.sh
  • docs/docs/data/create.tsx
  • docs/docs/new-features.md

@@ -2,4 +2,4 @@

. ./opts-global.sh

OPTS="$OPTS -d bc,bbb-pads,bbb-webrtc-sfu,bbb-export-annotations,bbb-web,bbb-graphql-middleware,bbb-graphql-actions,bbb-yq-go,nginx,unzip -t deb"
OPTS="$OPTS -d bc,bbb-shared-notes-server,bbb-webrtc-sfu,bbb-export-annotations,bbb-web,bbb-graphql-middleware,bbb-graphql-actions,yq,nginx,unzip -t deb"

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.

🗄️ Data Integrity & Integration | 🔴 Critical | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate relevant packaging files
fd -a 'after-install.sh' .
fd -a 'bbb-shared-notes-server' build packages . || true

# Search for shared notes database references
rg -n --hidden --no-ignore-vcs 'blocknote_app|bbb-shared-notes-server|DROP DATABASE|CREATE DATABASE|configure\|upgrade|after-install' build packages . || true

Repository: bigbluebutton/bigbluebutton

Length of output: 29985


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "ROOT: $(pwd)"
git ls-files | rg 'bbb-shared-notes-server|opts-noble.sh|after-install.sh|install.sh|postinst|preinst|debian'

Repository: bigbluebutton/bigbluebutton

Length of output: 6731


🏁 Script executed:

#!/bin/bash
set -euo pipefail
fd -a 'opts-noble.sh' .

Repository: bigbluebutton/bigbluebutton

Length of output: 2259


Avoid a destructive shared-notes upgrade path. Adding bbb-shared-notes-server here pulls in build/packages-template/bbb-shared-notes-server/after-install.sh, which runs DROP DATABASE IF EXISTS blocknote_app WITH (FORCE) on configure|upgrade. That can wipe existing BlockNote data during upgrades; keep the database and make migrations idempotent instead.

🤖 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 `@build/packages-template/bbb-html5/opts-noble.sh` at line 5, Remove
bbb-shared-notes-server from the package list in OPTS so upgrades do not invoke
its destructive after-install.sh database-drop path; preserve all other package
entries unchanged.

Shared notes now default to BlockNote, so the Etherpad iframe the test
typed into never renders and it timed out waiting for iframe[title="pad"].
Swap getNotesLocator (Etherpad) for getBlockNoteEditorLocator and click
the editor to focus it before typing (BlockNote needs focus; the iframe
locator did not).
Pin sharedNotesEditor=blockNote on the meeting create so the breakout
"Export breakout room shared notes" test is deterministic regardless of
the server's default editor — breakout rooms inherit the parent meeting's
editor — matching how the etherpad and blockNote shared-notes suites
already pin theirs.
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@antobinary
antobinary merged commit 3240775 into bigbluebutton:v4.0.x-develop Jul 16, 2026
33 of 35 checks passed
@antobinary
antobinary deleted the swap-shared-notes branch July 16, 2026 01:12
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