* 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];
}