diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 442b1151..6bd7c992 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -96,14 +96,6 @@ sub view_build : Chained('build') PathPart('') Args(0) { ($c->stash->{eval}) = $c->stash->{build}->jobsetevals->search( { hasnewbuilds => 1}, { limit => 1, order_by => ["id"] }); - - my $maxRelated = 100; - my $r = $c->model('DB::Builds')->search( - { eval => { -in => $build->jobsetevalmembers->search({}, {rows => 1})->get_column('eval')->as_query } }, - { join => 'jobsetevalmembers', order_by => [ 'project', 'jobset', 'job'], distinct => 1, rows => $maxRelated + 1 } - ); - $c->stash->{relatedbuilds} = [$r->all]; - delete $c->stash->{relatedbuilds} if scalar(@{$c->stash->{relatedbuilds}}) > $maxRelated; } diff --git a/src/root/build.tt b/src/root/build.tt index 4855234f..5c104321 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -66,7 +66,6 @@
  • Summary
  • Details
  • Build inputs
  • - [% IF relatedbuilds %]
  • Related builds
  • [% END %] [% IF build.buildsteps %]
  • Build steps
  • [% END %] [% IF build.dependents %]
  • Used by
  • [% END%] [% IF prevBuilds %]
  • History chart
  • [% END %] @@ -339,13 +338,6 @@ - [% IF relatedbuilds %] -
    -

    The following builds are part of the same jobset evaluation that produced this build.

    - [% INCLUDE renderBuildList builds=relatedbuilds hideProjectName=1 hideJobsetName=1 %] -
    - [% END %] - [% IF build.buildsteps %]
    [% INCLUDE renderBuildSteps type="All" %]