* 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:
@ -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' })];
|
||||
|
@ -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(
|
||||
|
@ -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];
|
||||
}
|
||||
|
@ -40,4 +40,5 @@ sub process {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
Reference in New Issue
Block a user