Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 440375

Summary: [pmi] Only render project charts if they are actually being displayed
Product: Community Reporter: Wayne Beaton <wayne.beaton>
Component: Project Management & PortalAssignee: Portal Bugzilla Dummy Inbox <portal-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 2014-Q3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Wayne Beaton CLA 2014-07-24 13:10:31 EDT
The current implementation renders the charts whether they are used or not. Drupal has a means of letting us know whether or not the current view_mode will display the charts; we should check that, and--if the charts will not be displayed--avoid incurring the cost of build them.
Comment 1 Eclipse Genie CLA 2016-07-14 16:19:07 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Wayne Beaton CLA 2016-07-25 15:18:40 EDT
I implemented this a while back.

For completeness, the pattern for determining whether or not a particular field is displayed looks something like this:

--
$extra_fields = field_info_extra_fields('node', $node->type, 'display');
if ($extra_fields['field_commit_activity']['display'][$view_mode]['visible'])
  ...
--