Bug 534236 (RHQ-1051) - re-implement "metric display range" Struts tile as a JSF component
Summary: re-implement "metric display range" Struts tile as a JSF component
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1051
Product: RHQ Project
Classification: Other
Component: Core UI
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On: RHQ-1478
Blocks: RHQ-1043
TreeView+ depends on / blocked
 
Reported: 2008-11-04 18:43 UTC by Joseph Marques
Modified: 2014-11-09 22:48 UTC (History)
1 user (show)

Fixed In Version: 1.2
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
error.txt (9.75 KB, text/plain)
2009-01-27 11:06 UTC, Joseph Marques
no flags Details

Description Joseph Marques 2008-11-04 18:43:00 UTC
mirror the look, feel, functionality:

last X units in Y time range (simple)
link to details ("advanced settings...")

advanced settings page *can* remain a Struts component, since it's a full-page Struts page...or it can be converted to (lean towards not converting it, unless it makes the navigation back to the calling JSF page in some way less convoluted)

Comment 1 Joseph Marques 2008-12-08 16:55:27 UTC
this component, when the "advanced settings..." link is clicked, needs to capture the current context / url.  store the url in some fashion, and then after the advanced settings are set (or even if cancel is pressed) to forward back to the stored url.  this way, the component can be dropped onto ANY page, and it'll "just work".

Comment 2 Jay Shaughnessy 2009-01-08 14:21:11 UTC
Fady,

As part of this work please add the new metric display range into the new resource and group metrics pages.  There are three tables.xhtml: common, resource and group.  The latter two embed the first.  I think you will probably need to add it to the resource and group pages explicitly but perhaps you can utilize common.  Please contact me for any questions regarding these new pages. Thanks, -J

Comment 3 Joseph Marques 2009-01-20 03:00:53 UTC
rev2666 - fix persistence of preferences for MetricComponent; 
remove MetricComponent from UIBean (managed beans need never concern themselves with the existence of this component on their corresponding facelet); 

Comment 4 fmatar 2009-01-23 18:20:21 UTC
Fixed the metric components and replicated it over the pages. (graphs, tables, events)

Comment 5 Joseph Marques 2009-01-27 11:06:18 UTC
from Ian:

java.lang.IllegalStateException: Required request parameter 'id' is missing when I try to change the metric display interval using the 'Last n Hours' control on the Graphs or Tables tab. I'm able to change the interval fine using the Change Settings link (i.e. the Advanced controls)

...will attach the trace in a moment.

Comment 6 Joseph Marques 2009-01-27 11:10:16 UTC
rev2755 - fix for majority of issues with metric component component; 
simple metric display works now on monitor>graphs and events>history pages; 
still need to do more testing around the advanced display; 

Comment 7 Joseph Marques 2009-01-27 11:29:24 UTC
rev2756 - make metric display range text label match the old monitor tab; 

Comment 8 Joseph Marques 2009-01-27 12:48:56 UTC
rev2757 - push the updates to user preferences into a managed bean and out of the metric component;
remove unnecessary component and renderer logic;
change tabs to spaces in advanced-metrics.js;
remove UI header from popup.xhtml, so popup feels like a popup instead of a full window;
fix the javascript in advanced.xhtml by hooking actions to onchange events instead of onclick;
reduce coordination between AdvancedMetricSettingsUIBean and persisted prefs by using units as the backing value of the drop-down list;

Comment 9 Joseph Marques 2009-01-27 14:50:34 UTC
rev2760 - add metric display range navigation rules to rest of resource, group, and autogroup pages; 

Comment 10 Joseph Marques 2009-01-27 16:43:14 UTC
rev2764 - by default, set the begin/end ranges to the "last X units" calculated range, if that's the selected display option; 
always reset the readonly option in the MetricComponentUtililty to make sure that state of that variable is consistent with the other detailed options; 

Comment 11 Joseph Marques 2009-01-27 17:01:22 UTC
rev2765 - we don't want to save custom units for the lifetime of the JVM, just until the user chooses some other display range; 

Comment 12 Joseph Marques 2009-01-28 19:51:36 UTC
i think this component is lookin' pretty good now.  been working with it on various monitor and events subtabs at the resource, group, and autogroup levels.  resolving for push to QA.

Comment 13 Jeff Weiss 2009-02-04 16:59:39 UTC
Verified date and time controls work, graphs update according to what you set there.  Link back to simple mode works.

linked bug i found here.

rev2898

Comment 14 Red Hat Bugzilla 2009-11-10 20:22:50 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1051
Imported an attachment (id=368485)



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