Repository navigation
feat(export-annotations): merge an override file into the default settings - #26174
Conversation
…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.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 4
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
|
Thanks for also updating the docs! :) |
🚨 Automated tests failed |
|
Checked all seven former |
|
Thanks both! Glad the override applies uniformly now. |
cf86341
into
bigbluebutton:v4.1.x-develop
bbb-export-annotations gets an optional override file,
/etc/bigbluebutton/bbb-export-annotations.json, merged intoconfig/settings.json. Today it has no override file, andsettings.jsonis read in seven places.Change
lib/utils/config.jsreads the settings once and merges the override file if it exists; the seven readers import it.configuration-files.mdgets the new override row; the Redis password row now points to it instead of "no override file; reapply after package upgrades".Package installs
settings.json; the new module is packaged with the rest and the unit is unchanged.Shape.wrapTextused to re-readsettings.jsonon 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.deepStrictEqualagainstsettings.jsonwithout the override; with one, values are merged, including a Redis password with|&"in it.config.js(the 23 existing findings elsewhere are unchanged).Question
.yml, but YAML would addjs-yamlas 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
sedthat rewrites the Redis and bbb-web hosts insettings.jsonat start. Images: #26141.