Preset values of date picker fields in Resources Usage Overview can be confusing

Bug #1280441 reported by Vahid Hashemian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Vahid Hashemian

Bug Description

To reproduce the isssue:

1. Go to Admin > Resources Usage Overview.
2. Select "Other" in Period drop drown. From and To fields appear with no dates selected.
3. Select far back dates (when the environment did not exist) for both From and To. This should cause the message "No data available." appear under "Statistics of all resources".
4. Change the value of Period drop down to "Last day". "Statistics of all resources" should be refreshed with the appropriate graph.
5. Change the value of Period drop down back to "Other". From and To fields appear with dates previously set. However, the "Statistics of all resources" area is not refreshed. This can be confusing as it could imply that the shown statistics is for the date range shown. Even though the statistics is for the previous Period drop down selection.

Suggestion is to blank out From and To fields every time "Other" is selected on Period drop down.

Changed in horizon:
assignee: nobody → Vahid Hashemian (vahidhashemian)
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/73748

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/73748
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=9bb4bb7c9b18748e250242175061809c927c2b65
Submitter: Jenkins
Branch: master

commit 9bb4bb7c9b18748e250242175061809c927c2b65
Author: Vahid Hashemian <email address hidden>
Date: Fri Feb 14 16:30:46 2014 -0800

    Clear date picker fields every time 'Other' Period is selected

    In subsequent selections of 'Other' from Period field in Admin > Resources
    Usage Overview panel previously picked dates for From and To fields remain.
    This patch is to clear those fields every time 'Other' is selected, as
    preserving the values could be confusing.

    Change-Id: If82aa26cd453a038fb8821a4c33f979dd4dbb8a9
    Closes-Bug: #1280441

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-3 → 2014.1
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.