You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
humanizeBytes renders Ki-range sizes as raw bytes #3105
humanizeBytes (apps/console/src/lib/k8s-quantity.ts:32) has branches for Ti/Gi/Mi and then falls through to ${bytes}B, with no Ki branch. Any value in the range [1024, 1024²) bytes is rendered as raw bytes — for example a 512Ki PersistentVolumeClaim shows as 524288B instead of 512Ki.
This surfaces in the Storage admin views (ClusterStorageSection, StorageClassUsagePage), which feed PVC requested/bound sizes through humanizeBytes. PVCs are usually Gi-sized, so it rarely bites in practice, but any Ki/sub-Mi value displays incorrectly.
The current behavior is pinned by k8s-quantity.test.ts, so the fix must update that test.
Suggested fix: add a bytes >= 1024 → Ki branch before the bytes fallback, with a test covering a Ki-range value.
Activity
fix(dashboard): render Ki-range sizes as Ki, not raw bytes
fix(dashboard): render Ki-range sizes as Ki, not raw bytes
fix(dashboard): render Ki-range sizes as Ki, not raw bytes
fix(dashboard): small Console fixes from the cozystack#3828 triage (c…