yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #07380
[Bug 1261279] [NEW] return value of filesizeformat filter is inconsistent between 0 and <1024 bytes
Public bug reported:
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.
** Affects: horizon
Importance: Undecided
Status: New
--
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):
New
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
Follow ups
References