← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1384247] [NEW] Adjust metering units to sometime use a smaller unit

 

Public bug reported:

While reviewing https://review.openstack.org/#/c/96800 it seemed to me
the code would sometimes select a larger unit that people would normally
use to describe the data.

Consider these 2 representations of 2 data sets

Data set 1a:  15 sec 30 sec 45 sec 30 sec 75 sec
Data set 1b:  .2 min .5 min .7 min 1.2 min

Data set 2a :  1 day 2 days 3 days 10 days 18 days
Data set 2b:  .1 weeks .3 weeks .4 weeks 1.4 weeks 2.6 weeks

IMO the "a" version is how people normally think about the data, yet the
metering unit code will select "b".

Specifically I think the metering unit selection code should not move to
the next higher unit at 1 unit, but instead should convert at 2 or 3
units.

** 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/1384247

Title:
  Adjust metering units to sometime use a smaller unit

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  While reviewing https://review.openstack.org/#/c/96800 it seemed to me
  the code would sometimes select a larger unit that people would
  normally use to describe the data.

  Consider these 2 representations of 2 data sets

  Data set 1a:  15 sec 30 sec 45 sec 30 sec 75 sec
  Data set 1b:  .2 min .5 min .7 min 1.2 min

  Data set 2a :  1 day 2 days 3 days 10 days 18 days
  Data set 2b:  .1 weeks .3 weeks .4 weeks 1.4 weeks 2.6 weeks

  IMO the "a" version is how people normally think about the data, yet
  the metering unit code will select "b".

  Specifically I think the metering unit selection code should not move
  to the next higher unit at 1 unit, but instead should convert at 2 or
  3 units.

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


Follow ups

References