Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/hydra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f9870b5fce85
Choose a base ref
...
head repository: NixOS/hydra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cd234f6a14cd
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 14, 2018

  1. feat: add /eval/<id>/builds endpoint

    This endpoint allows efficient retrieval of all the builds in an
    evaluation, without making a request for each single build.
    bennofs committed Jan 14, 2018
    Copy the full SHA
    3ab5d29 View commit details

Commits on Nov 19, 2018

  1. Merge pull request #529 from bennofs/feat-all-builds

    feat: add /eval/<id>/builds endpoint
    edolstra authored Nov 19, 2018
    Copy the full SHA
    cd234f6 View commit details
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/lib/Hydra/Controller/JobsetEval.pm
11 changes: 11 additions & 0 deletions src/lib/Hydra/Controller/JobsetEval.pm
Original file line number Diff line number Diff line change
@@ -264,4 +264,15 @@ sub store_paths : Chained('evalChain') PathPart('store-paths') Args(0) {
}


# Return full info about all the builds in this evaluation.
sub all_builds : Chained('evalChain') PathPart('builds') Args(0) {
my ($self, $c) = @_;
my @builds = $c->stash->{eval}->builds;
$self->status_ok(
$c,
entity => [@builds],
);
}


1;