Repository navigation
fix: correct initial percentage to only average active managers - #471
Conversation
At the moment `None` managers use `unwrap_or(0.0)` which dragged down the percentage when only some managers are active like when filters are disabled, only block headers are active. With this PR only phases that have actually started contribute to the average.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe percentage calculation for sync progress is refined to only aggregate percentages from active managers, ignoring None values, and returns 0.0 when no managers are active. Tests are updated to reflect the new calculation behavior, and a new method Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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 |
At the moment
Nonemanagers useunwrap_or(0.0)which dragged down the percentage when only some managers are active like when filters are disabled, only block headers are active. With this PR only phases that have actually started contribute to the average.Summary by CodeRabbit
Release Notes