Repository navigation
fix(plan): reject warnings when updating scheduled plans - #5190
Conversation
|
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: Repository: openmeterio/openmeter/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
ChangesScheduled plan validation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Scheduled updates reject the described validation warning while draft updates retain their behavior. No issue identified here prevents merging after normal checks. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 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 |
A plan published with a future
EffectiveFromcan still be updated before it becomes active. The v1 update path setsIgnoreNonCriticalIssues=true, so an update that introduces a validation warning, such as a mismatch between the plan and rate card billing cadences, could be saved. WhenEffectiveFrompasses, the plan is reported as active without another validation pass.Scheduled-plan updates now reject validation warnings regardless of that flag. Draft updates retain their existing behavior.
Validation: the focused PostgreSQL-backed service test passes on
origin/main, andmake lint-gopasses. The regression test checks that a draft update can ignore the existing cadence-alignment warning, while the same scheduled-plan update fails and leaves the stored cadence unchanged.Summary by CodeRabbit
The PR appears safe to merge; the implementation is narrowly scoped and the regression test covers the intended state-dependent behavior.
Summary
This PR prevents scheduled-plan updates from ignoring non-critical validation issues while preserving the existing behavior for draft plans.
Reviews (1) · Last reviewed commit: "fix(plan): reject warnings when updating..."