fix(utilization): hide usage when array is stopped - #2735
fix(utilization): hide usage when array is stopped#2735Eli Bosley (elibosley) wants to merge 1 commit into
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: Repository UI 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:
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 |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
Summary
This backport prevents stopped arrays from reporting 100% utilization by hiding usage percentages until the array is started.
Why This Exists
When the array stops, filesystem size can remain available while free-space metrics are absent. The existing fallback converts the missing value to zero, which makes the used-space formula render 100%. This appears in the navigation usage bar and pool filesystem rows.
Resolution
Require the array state to be Started before rendering utilization. Stopped arrays now show offline or filesystem status text, while started arrays keep the current usage display.
Reviewer Considerations
Behavior Changes
Stopped arrays no longer show a usage percentage in the navigation bar or filesystem rows. Started arrays behave as before.
Implementation Summary
Verification
Risk
Low; the change only suppresses usage rendering while the array is stopped and preserves the existing status output.
Linear
Related to OS-803: https://linear.app/lime-technology/issue/OS-803/733-stopped-array-shows-100percent-utilization