fix: keep overrides whose settings are not exposed, and name them on the form - #7
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe consumer override form now warns about stored settings that are no longer exposed. It preserves those settings during save and removes only unticked exposed settings. Tests cover renamed settings and warning output. ChangesConsumer override preservation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change preserves previously stored overrides when settings are no longer exposed and names those overrides for deliberate cleanup; no actionable merge-blocking risk remains. 🚥 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/2-exclude-mail-notification #7 +/- ##
=======================================================================
+ Coverage 85.86% 86.12% +0.25%
=======================================================================
Files 9 9
Lines 481 490 +9
=======================================================================
+ Hits 413 422 +9
Misses 68 68 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
fd08808 to
cfac1c5
Compare
Summary
ConsumerOverridesForm::submitForm()rebuilt the stored override map from the rendered rows alone, so an override whose setting stopped being exposed (a shrunk exposure list, or a theme switch renaming every<theme>.settings:*key) was silently deleted on the next save of that consumer.Changes
SettingsMerger::pruneUnexposed()stays uncalled fromsrc/: pruning is exactly the silent deletion this removes. A deliberate cleanup action can adopt it later.Summary by CodeRabbit
Bug Fixes
Tests