Add json output for the search API endpoint
[?]
Oct 31, 2018, 5:46 PM
MIMHJSZKFRNIKCYWQQDITZFPY6L2P43BSBPFERK3633CFDQY7YDACDependencies
- [2]
MMHOJIGDTest whether incorrect passwords are rejected - [3]
TX7Q4RASAdd page showing latest build steps - [4]
Q3VTDUSQFix the API test - [5]
SYLVCTT6Start api cleanup with the User model - [6]
7ECJWNVXCleanup Project model - [7]
MQYHIUEECleanup eval serialization - [8]
4VYSDP4IAdd eager fetching of relations and enable that for jobset->jobsetinputs - [9]
2DGIP6L4Cleanup build serialization - [10]
ZIIXICG7Make the outputs' outpaths available via the Build JSON API - [11]
LZVO64YGMerge in the first bits of the API work - [12]
YI3BZG5NCleanup Jobset serialization - [*]
J5UVLXOK* Start of a basic Catalyst web interface. - [*]
FHOH54HQWhen searching a path / drv path, use separate queries for both options to prevent seq. scan.
Change contents
- edit in src/lib/Hydra/Controller/Root.pm at line 422[15.285][3.639]
$c->stash->{resource} = { projects => $c->stash->{projects},jobsets => $c->stash->{jobsets},builds => $c->stash->{builds},buildsdrv => $c->stash->{buildsdrv} }; - replacement in tests/api-test.pl at line 3
use Test::Simple tests => 17;use Test::Simple tests => 19; - edit in tests/api-test.pl at line 68[4.437]
my $search_project = decode_json(request_json({ uri => "/search/?query=sample" })->content());ok($search_project->{projects}[0]->{name} == "sample", "Search for project 'sample' works");my $search_build = decode_json(request_json({ uri => "/search/?query=" . $build->{buildoutputs}->{out}->{path} })->content());ok($search_build->{builds}[0]->{buildoutputs}->{out}->{path} == $build->{buildoutputs}->{out}->{path}, "Search for builds work");