← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1261279] Re: return value of filesizeformat filter is inconsistent between 0 and <1024 bytes

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1261279

Title:
  return value of filesizeformat filter is inconsistent between 0 and
  <1024 bytes

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  return value of filesizeformat filter is inconsistent between 0 and <1024 bytes.
  For 0 byte it returns a value with a unit ("0 byte"), but for a value where 0 < x < 1024 it returns a value without a unit ("500").
  The return value should be consistent whether it has a unit or not.

  In Django 1.5.5, a value with a unit is returned in filesizeformat (django/template/defaultfilters.py).
  It seems better Horizon follows this convention.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1261279/+subscriptions


References