On resource usage page charts - correctly set number of showed samples

Bug #1221566 reported by Ladislav Smola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Ladislav Smola

Bug Description

We need to always show some reasonable amount of samples in the chart.

Right now it's hardcoded to 1000s time windows, when there will be a several months of data, it will be a great amount of samples.

It needs to be changed to always show some reasonable amount of samples (I would say 400)

Should be done in RC1

Ladislav Smola (lsmola)
Changed in horizon:
assignee: nobody → Ladislav Smola (lsmola)
Ladislav Smola (lsmola)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/45412

Changed in horizon:
status: New → In Progress
Julie Pichon (jpichon)
Changed in horizon:
milestone: none → havana-rc1
Changed in horizon:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/45412
Committed: http://github.com/openstack/horizon/commit/e19677a80e54929bded86d493b47ffe430563859
Submitter: Jenkins
Branch: master

commit e19677a80e54929bded86d493b47ffe430563859
Author: Ladislav Smola <email address hidden>
Date: Fri Sep 6 12:53:46 2013 +0200

    Correct amount of samples in the chart

    We need to always show some reasonable amount of samples in the chart.

    It was hardcoded to 1000s time windows, when there will be a
    several months of data, it will be a great amount of samples.

    It needs to be changed to always show some reasonable amount of samples
    (I would say 400)

    Also exceptions added for unexpected states of dates.
    Date_from has been changed to beginning of the day, and date_to to
    the end of that day.

    Fixes bug 1221566
    Change-Id: I60cd0aa0882c5b8890d61b649c312d4f7e9ddf82

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.