Bug 951929 - Resource Metric Graph portlet doesn't refresh
Summary: Resource Metric Graph portlet doesn't refresh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: RHQ 4.10
Assignee: Mike Thompson
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-14 14:27 UTC by Ilya Maleev
Modified: 2014-04-23 12:31 UTC (History)
1 user (show)

Fixed In Version: RHQ 4.8
Clone Of:
Environment:
Last Closed: 2014-04-23 12:31:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Ilya Maleev 2013-04-14 14:27:32 UTC
Dashboard has the Resource Metric Graph portlet dedicated to selected metric graph display. Guess, it should update each time when dashboard refreshed, but it doesn't. Thus, its content is static until manual page refresh or switch to another page and return.

Actions:
1. Open Dashboard
2. Click the "Edit Mode" button.
3. Click the "Add Portlet" button and select the Resource Metric Graph portlet.
4. Click the gear button in the portlet header and select any resource and its metric (set this metric collection interval to minimum before)
5. Periodically trigger the metric value change and Wait for Dashboard refresh

Expected results:
5. Each time when dashboard refreshes, the metric graph refreshes too. It's content is always up to date.

Actual results:
5. Portlet content doesn't refresh at all.

The portlet content doesn't also if click the refresh button in its header.


Workarounds are:
- Press F5 (reload the page)
- Switch to another page and return.

Comment 1 Heiko W. Rupp 2013-06-17 19:51:50 UTC
It even looks like the timeslice ending at now is missing.

The portlet content itself gets a refresh event for me and gets re-drawn, but its content is not refreshed (i.e. no new data is fetched from the backend).



On top: graph has no link to the resource / schedule / big graphs

Comment 2 Mike Thompson 2013-06-18 01:54:11 UTC
This looks like I was doing a redraw without doing a refresh so it appeared that data was refreshing when it was not. I have fixed this for group portlet graphs as well.

Committed to master: 79e5c3d

Comment 3 Mike Thompson 2013-06-18 01:57:15 UTC
The actual commit id to master changed once I pushed:

master commit id: 31587f2

Comment 4 Heiko W. Rupp 2013-06-18 10:26:00 UTC
I am reopening this, as the data displayed is a bit bogus:

the last (=rightmost) bar does not show [now-interval,now] but [now-2*interval,now-interval] on the x-axis.
Either the time info is wrong and the data correct or the wrong end-time
is selected (or both :-)

Comment 5 Mike Thompson 2013-09-10 14:48:25 UTC
Time intervals look correct.

Comment 6 Heiko W. Rupp 2014-04-23 12:31:50 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.


Note You need to log in before you can comment on or make changes to this bug.