webui: only treat a duration of 31 hours as permanent in channel actions - #86
Conversation
In the combined parameter dialog of program channel actions, a duration value of 31 means "permanent" only with the unit hours. getConfigString() checked the value alone, so a duration of 31 seconds or 31 minutes was also written without an on-time and the channel stayed on permanently. Also check that the unit is hours. This natively replaces OpenCCU rootfs patch 0123-WebUI-Fix-ChannelActionDuration.patch.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesDuration handling
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The change prevents 31-second and 31-minute channel actions from becoming permanent while preserving the permanent-hours option. No actionable merge-blocking issue is identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Original OpenCCU rootfs patch: 0123
Original filename:
0123-WebUI-Fix-ChannelActionDuration.patchOriginal patch:
''https://github.com/OpenCCU/OpenCCU/blob/34d2133d4ba912ea8f26ee18556227ced6a8fc36/buildroot-external/package/openccu-base/rootfs-patches/0123-WebUI-Fix-ChannelActionDuration.patch''Original issue: OpenCCU/OpenCCU#1306
In the combined parameter dialog for program channel actions (
src/webui/www_source/webui/js/dialog/switchCombinedParamDialog.js), a duration value of 31 means "permanent" only with the unit hours (durationUnit == 2).getConfigString()checked the value alone, so a duration of 31 seconds or 31 minutes was also written without an on-time (OT), and the channel stayed on permanently. This change also checks that the unit is hours.The file's ISO-8859-1 encoding and LF line endings are preserved. It is part of the generated
www/webui/webui.js.40 earlier OpenCCU rootfs patches (0001 to 0122) also modify the generated
www/webui/webui.js. None of their hunks covers this line, and the line count is unchanged, so they all still apply unchanged.Validation
scripts/base-patch-migration.py validatewith the canonical Buildroot 2026.08git4archive of this branch (acc56ee0, sha256017c61f2dc1e37e060c77a2b2c51f192228c9b8670c54a3af9d0a3ce52e70471) and--skip-patch 0123: PASS (the other 117 rootfs patches apply with zero fuzz).compareagainst the current pin baseline (40894ac0, all 118 patches): IDENTICAL (4668 entries).OpenCCU cleanup PR (patch removal, pin and archive hash update): OpenCCU/OpenCCU#4285
Summary by CodeRabbit