fix(unified water): add IsDisabledByDefault#2474
Conversation
Extend Feature base class with a virtual IsDisabledByDefault() method so individual features can declare themselves disabled at boot by default. The user's explicit toggle still takes precedence once saved. Unified Water uses this to start disabled on fresh installs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds a feature-level mechanism to disable features by default at install or boot time. The base ChangesDefault-disabled feature initialization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 OpenGrep (1.22.0)OpenGrep fatal error (exit code 2): [00.12][ERROR]: Error: exception Unix_error: No such file or directory stat src/State.cpp 🔧 Infer (1.2.0)src/State.cppUsage Error: Failed to execute compilation command: Error message: *** Infer needs a working compilation command to run. 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 |
|
No actionable suggestions for changed features. |
|
✅ A pre-release build is available for this PR: |
Summary
virtual bool IsDisabledByDefault() constto theFeaturebase class (returnsfalseby default)State::Load, features not already in the user's saved config that declareIsDisabledByDefault() == trueare automatically disabled at bootUnifiedWateroverrides this to returntrue, so it starts disabled on fresh installsTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit