Skip to content

feat(export-annotations): merge an override file into the default settings - #26174

Merged
antobinary merged 1 commit into
bigbluebutton:v4.1.x-developfrom
tibroc:simplify/export-annotations-config
Oct 23, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.1.x-developfrom
tibroc:simplify/export-annotations-config

Conversation

@tibroc

@tibroc tibroc commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

bbb-export-annotations gets an optional override file, /etc/bigbluebutton/bbb-export-annotations.json, merged into config/settings.json. Today it has no override file, and settings.json is read in seven places.

Change

  • New lib/utils/config.js reads the settings once and merges the override file if it exists; the seven readers import it.
  • Objects merge key by key; arrays and other values are replaced (same rules as the YAML override of bbb-shared-notes-server).
  • configuration-files.md gets the new override row; the Redis password row now points to it instead of "no override file; reapply after package upgrades".

Package installs

  • The package does not ship the override file, so the settings are deep-equal to settings.json; the new module is packaged with the rest and the unit is unchanged.
  • Shape.wrapText used to re-read settings.json on every call; now it uses the settings read at module load. Each job runs in its own thread that loads the module again, so each job still reads the file fresh.

Tested

  • assert.deepStrictEqual against settings.json without the override; with one, values are merged, including a Redis password with |&" in it.
  • eslint reports no findings for config.js (the 23 existing findings elsewhere are unchanged).
  • The image connects to Redis with the override mounted read-only.

Question

  • JSON or YAML for the override? The other Node services use .yml, but YAML would add js-yaml as a new dependency, and JSON matches the default file.

Image follow-up: v4.1.x-develop...tibroc:bigbluebutton:images/export-annotations-config, which removes the entrypoint sed that rewrites the Redis and bbb-web hosts in settings.json at start. Images: #26141.

…tings

Settings are read once, from config/settings.json, and merged with
/etc/bigbluebutton/bbb-export-annotations.json if that file exists, like the
override files of bbb-graphql-middleware and bbb-shared-notes-server. Without
the file the settings are the same as before, and changes such as the Redis
password no longer have to be reapplied after package upgrades.
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 4
  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 82565d97-dbbb-4404-b9da-48728968278e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@antobinary antobinary added this to the Release 4.1 milestone Oct 22, 2026
@antobinary

Copy link
Copy Markdown
Member

Thanks for also updating the docs! :)

@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@imdt-claudiop

Copy link
Copy Markdown
Contributor

Checked all seven former readFileSync('./config/settings.json') sites: every one now goes through lib/utils/config.js, none was left behind, so the override applies uniformly across master, workers and shapes. Moving the read in Shape.wrapText to module scope is behavior-preserving in practice because workers are spawned per job, so each job still picks up config changes at spawn. A malformed override file fails the process at load, which matches how the middleware treats its override; with no override file present the resolved config is identical to today. Docs table update (including the redis.password row) matches the implementation. LGTM.

@tibroc

tibroc commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks both! Glad the override applies uniformly now.

@antobinary
antobinary merged commit cf86341 into bigbluebutton:v4.1.x-develop Oct 23, 2026
49 of 51 checks passed
@TiagoJacobs TiagoJacobs mentioned this pull request Nov 24, 2026
@tibroc
tibroc deleted the simplify/export-annotations-config branch November 26, 2026 10:25
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.

3 participants