Skip to content

webui: remove the ReGa version selection - #193

Merged
jens-maus merged 3 commits into
mainfrom
jens-maus/webui-disable-rega
Oct 14, 2026
Merged

jens-maus merged 3 commits into
mainfrom
jens-maus/webui-disable-rega

Conversation

@jens-maus

@jens-maus jens-maus commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Original OpenCCU rootfs patch: 0008
Original filename: 0008-WebUI-Disable-ReGa.patch
Original patch: https://github.com/OpenCCU/OpenCCU/blob/6bb0e1690/buildroot-external/package/openccu-base/rootfs-patches/0008-WebUI-Disable-ReGa.patch (as extended by OpenCCU/OpenCCU#4431)
Original changes: OpenCCU/OpenCCU@39f1c8309 (split out of the former single RaspberryMatic patch)
Extension before migration: OpenCCU/OpenCCU#4431

The maintenance page ("Systemsteuerung > Zentralen-Wartung") has a "Version Logikschicht" row. It offers a choice between ReGaHss variants (NORMAL, COMMUNITY) through User.getReGaVersion / User.setReGaVersion, writes the choice to /etc/config/ReGaHssVersion and offers a reboot. OpenCCU installs only one /bin/ReGaHss and removes all ReGaHss.* variants, so the selection has no effect. The original rootfs patch only removed the row; OpenCCU/OpenCCU#4431 extends it to remove the rest of the selection. This applies the extended patch 1:1:

  • src/webui/www/config/cp_maintenance.cgi: the "Version Logikschicht" table row (select box, save button and help text) and its JavaScript block (User.getReGaVersion, saveRegaVersion(), User.setReGaVersion and the reboot dialog) are removed. Nothing else on the page uses saveRegaVersion, #selectedReGaVersion or #showReGaVersionHelp.
  • src/webui/www/api/methods.conf: the User.getReGaVersion and User.setReGaVersion API methods are removed.
  • src/webui/www/api/methods/user/getregaversion.tcl and setregaversion.tcl: their scripts are removed. User.setReGaVersion let any user with USER level write an arbitrary value to /etc/config/ReGaHssVersion.
  • src/webui/www/webui/js/lang/{de,en}/translate.lang.{extension,help,label,option}.js: the keys dialogRestart2ChanceReGaVersion, lblTDReGaVersionHelp, lblTDRegaVersion, optionReGaCOMMUNITY, optionReGaLEGACY and optionReGaNORMAL are removed. dialogHelpInfoLblVersion stays because help.cgi still uses it.

No other file in this repository references these methods or keys. The OpenCCU init script S70ReGaHss is simplified in OpenCCU/OpenCCU#4431 as well; DEBUG in /etc/config/ReGaHssVersion still starts ReGaHss in debug mode there.

Line endings and encodings are preserved. The root www/ copies are unused legacy files and are left unchanged.

Other OpenCCU rootfs patches also modify cp_maintenance.cgi (0001, 0007, 0012, 0031, 0089, 0135, 0163, 0164 and 0165), methods.conf and the language files. They still apply with zero fuzz.

Validation

  • OpenCCU scripts/base-patch-migration.py validate with the canonical Buildroot 2026.08 git4 archive of this branch (4c3457f7, main merged in, sha256 27f94cc6c0c17fe3dfae6d7637c20f0705f13b6bb22912681e32b2e337825fe1) and --skip-patch 0008, on OpenCCU master (6bb0e1690, with the extended rootfs patch from refactor(webui): remove the remaining ReGa version selection OpenCCU#4431, current pin df07a0ec): PASS (the other 57 rootfs patches apply with zero fuzz).
  • compare against a fresh validation of the current pin df07a0ec with all 58 patches, the extended 0008 included: IDENTICAL (4666 entries).
  • node --check passes for the eight changed language files.

OpenCCU cleanup PR (removing patch 0008 and updating the pin): OpenCCU/OpenCCU#4432


Generated by Claude Code

The maintenance page offered a choice between ReGaHss variants and wrote
it to /etc/config/ReGaHssVersion. OpenCCU only installs a single ReGaHss
binary, so the selection had no effect and is removed.

Applies OpenCCU rootfs patch 0008-WebUI-Disable-ReGa.
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e704b73a-0f91-4afa-87ff-ec43e5f5807e
📥 Commits

Reviewing files that changed from the base of the PR and between 8dda25f and 9f0f314.

📒 Files selected for processing: 11
  • src/webui/www/api/methods.conf
  • src/webui/www/api/methods/user/getregaversion.tcl
  • src/webui/www/api/methods/user/setregaversion.tcl
  • src/webui/www/webui/js/lang/de/translate.lang.extension.js
  • src/webui/www/webui/js/lang/de/translate.lang.help.js
  • src/webui/www/webui/js/lang/de/translate.lang.label.js
  • src/webui/www/webui/js/lang/de/translate.lang.option.js
  • src/webui/www/webui/js/lang/en/translate.lang.extension.js
  • src/webui/www/webui/js/lang/en/translate.lang.help.js
  • src/webui/www/webui/js/lang/en/translate.lang.label.js
  • src/webui/www/webui/js/lang/en/translate.lang.option.js
💤 Files with no reviewable changes: 11
  • src/webui/www/webui/js/lang/en/translate.lang.option.js
  • src/webui/www/webui/js/lang/en/translate.lang.extension.js
  • src/webui/www/webui/js/lang/de/translate.lang.help.js
  • src/webui/www/api/methods/user/setregaversion.tcl
  • src/webui/www/webui/js/lang/en/translate.lang.label.js
  • src/webui/www/webui/js/lang/de/translate.lang.extension.js
  • src/webui/www/webui/js/lang/de/translate.lang.label.js
  • src/webui/www/api/methods.conf
  • src/webui/www/api/methods/user/getregaversion.tcl
  • src/webui/www/webui/js/lang/de/translate.lang.option.js
  • src/webui/www/webui/js/lang/en/translate.lang.help.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The maintenance page no longer displays ReGa version controls or performs the associated version lookup, save, and reboot confirmation flow. The API methods for reading and writing the ReGa version and their English and German translations were also removed.

Changes: ReGa version setting removal

Layer / File(s) Summary
Remove ReGa version API methods
src/webui/www/api/methods.conf, src/webui/www/api/methods/user/getregaversion.tcl, src/webui/www/api/methods/user/setregaversion.tcl
The API declarations and Tcl implementations for reading and writing the ReGa version were removed.
Remove ReGa version controls
src/webui/www/config/cp_maintenance.cgi, src/webui/www/webui/js/lang/{de,en}/translate.lang.*.js
The maintenance page no longer displays ReGa version controls or performs the associated lookup, save, and reboot confirmation flow. Related English and German translations were removed.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 4c345

Merge Risk: ⚪ Minimal · up to 4c345

The removed ReGa controls have no remaining active callers, and no actionable merge-blocking issue was established.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "webui: remove the ReGa version selection" matches the main change. The PR removes the logic-layer (ReGa) version row from the maintenance page, along with the User.getReGaVersion and User.s…
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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.

With the selection gone from the maintenance page, nothing uses the
User.getReGaVersion and User.setReGaVersion API methods any more. They
read and wrote /etc/config/ReGaHssVersion to choose between ReGaHss
variants that OpenCCU no longer ships. Remove both methods, their
scripts and the translation keys of the removed maintenance page row.
@jens-maus jens-maus changed the title webui: remove the ReGa version selection from the maintenance page webui: remove the ReGa version selection Oct 14, 2026
@jens-maus
jens-maus merged commit 072f4e2 into main Oct 14, 2026
5 checks passed
@jens-maus
jens-maus deleted the jens-maus/webui-disable-rega branch October 14, 2026 17:07
jens-maus added a commit to OpenCCU/OpenCCU that referenced this pull request Oct 14, 2026
This removes OpenCCU rootfs patch 0008-WebUI-Disable-ReGa.patch, now that OpenCCU/OpenCCU-Base#193 is merged.
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.

1 participant