* 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';
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"]
, '+as' => ["releasename", "buildstatus"], order_by => 'system' })];

View file

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

View file

@ -22,7 +22,7 @@ sub view : Chained('project') PathPart('') Args(0) {
$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];
}

View file

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

View file

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

View file

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

View file

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