* Disable the statistics on the project, jobset and job pages for now

because they take too much time to compute.
This commit is contained in:
Eelco Dolstra 2010-02-09 12:35:20 +00:00
parent 324cac9ae9
commit fabc8e4774
7 changed files with 19 additions and 14 deletions

View file

@ -23,7 +23,7 @@ sub overview : Chained('job') PathPart('') Args(0) {
$c->stash->{template} = 'job.tt'; $c->stash->{template} = 'job.tt';
getBuildStats($c, scalar $c->stash->{job}->builds); #getBuildStats($c, scalar $c->stash->{job}->builds);
$c->stash->{currentBuilds} = [$c->stash->{job}->builds->search({iscurrent => 1}, { join => 'resultInfo', '+select' => ["resultInfo.releasename", "resultInfo.buildstatus"] $c->stash->{currentBuilds} = [$c->stash->{job}->builds->search({iscurrent => 1}, { join => 'resultInfo', '+select' => ["resultInfo.releasename", "resultInfo.buildstatus"]
, '+as' => ["releasename", "buildstatus"], order_by => 'system' })]; , '+as' => ["releasename", "buildstatus"], order_by => 'system' })];

View file

@ -26,7 +26,7 @@ sub index : Chained('jobset') PathPart('') Args(0) {
$c->stash->{template} = 'jobset.tt'; $c->stash->{template} = 'jobset.tt';
getBuildStats($c, scalar $c->stash->{jobset}->builds); #getBuildStats($c, scalar $c->stash->{jobset}->builds);
$c->stash->{activeJobs} = [ $c->stash->{activeJobs} = [
$c->stash->{jobset}->builds->search( $c->stash->{jobset}->builds->search(

View file

@ -22,7 +22,7 @@ sub view : Chained('project') PathPart('') Args(0) {
$c->stash->{template} = 'project.tt'; $c->stash->{template} = 'project.tt';
getBuildStats($c, scalar $c->stash->{project}->builds); #getBuildStats($c, scalar $c->stash->{project}->builds);
$c->stash->{views} = [$c->stash->{project}->views->all]; $c->stash->{views} = [$c->stash->{project}->views->all];
} }

View file

@ -40,4 +40,5 @@ sub process {
return 1; return 1;
} }
1; 1;

View file

@ -14,7 +14,7 @@
<li><a href="#tabs-status">Status</a></li> <li><a href="#tabs-status">Status</a></li>
<li><a href="#tabs-channels">Channels</a></li> <li><a href="#tabs-channels">Channels</a></li>
<li><a href="#tabs-latestbuilds">Latest builds</a></li> <li><a href="#tabs-latestbuilds">Latest builds</a></li>
<li><a href="#tabs-statistics">Statistics</a></li> <!-- <li><a href="#tabs-statistics">Statistics</a></li> -->
</ul> </ul>
<div id="tabs-status"> <div id="tabs-status">
<h2>Finished builds</h2> <h2>Finished builds</h2>
@ -51,9 +51,11 @@
[% END %] [% END %]
</ul> </ul>
</div> </div>
[%#
<div id="tabs-statistics"> <div id="tabs-statistics">
[% INCLUDE showBuildStats %] [% INCLUDE showBuildStats % ]
</div> </div>
%]
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$("#generic-tabs").tabs(); $("#generic-tabs").tabs();

View file

@ -85,7 +85,7 @@
<li><a href="#tabs-setup">Setup</a></li> <li><a href="#tabs-setup">Setup</a></li>
[% IF !edit -%] [% IF !edit -%]
<li><a href="#tabs-channels">Channels</a></li> <li><a href="#tabs-channels">Channels</a></li>
<li><a href="#tabs-statistics">Statistics</a></li> <!-- <li><a href="#tabs-statistics">Statistics</a></li> -->
[% END %] [% END %]
</ul> </ul>
<div id="tabs-information"> <div id="tabs-information">
@ -129,7 +129,7 @@
[% IF jobset.errormsg -%] [% IF jobset.errormsg -%]
<div id="tabs-errors"> <div id="tabs-errors">
<h3>Evaluation error</h3> <h3>Evaluation errors</h3>
<pre class="multiLineMsg error">[% HTML.escape(jobset.errormsg) %]</pre> <pre class="multiLineMsg error">[% HTML.escape(jobset.errormsg) %]</pre>
</div> </div>
[% END %] [% END %]
@ -236,12 +236,14 @@
</p> </p>
</div> </div>
[%#
<div id="tabs-statistics"> <div id="tabs-statistics">
<h2>Statistics</h2> <h2>Statistics</h2>
[% INCLUDE showBuildStats %] [% INCLUDE showBuildStats % ]
</div> </div>
%]
[% END %] [% END %]
</div> </div>

View file

@ -16,7 +16,7 @@
[% IF !edit %] [% IF !edit %]
<li><a href="#tabs-views">Views</a></li> <li><a href="#tabs-views">Views</a></li>
<li><a href="#tabs-channels">Channels</a></li> <li><a href="#tabs-channels">Channels</a></li>
<li><a href="#tabs-statistics">Statistics</a></li> <!-- <li><a href="#tabs-statistics">Statistics</a></li> -->
[% END %] [% END %]
</ul> </ul>
@ -177,12 +177,12 @@
</ul> </ul>
</div> </div>
<div id="tabs-statistics"> [%#
<div id="tabs-statistics">
<h2>Statistics</h2> <h2>Statistics</h2>
[% INCLUDE showBuildStats % ]
[% INCLUDE showBuildStats %]
</div> </div>
%]
[% END %] [% END %]
</div> </div>