From 6afe528570e0b0ce0b0a7238310493981b512bd9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Feb 2013 18:43:16 +0100 Subject: [PATCH] Remove the related builds tab You can now just click on the evaluation link on the first tab to see all builds in the same jobset. This also makes rendering build pages quite a bit faster for jobsets like Nixpkgs. --- src/lib/Hydra/Controller/Build.pm | 8 -------- src/root/build.tt | 8 -------- 2 files changed, 16 deletions(-) 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" %]