Add a test_runs_by_branch_name hook for the extension.

git-svn-id: svn://10.0.0.236/trunk@230366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
zach%zachlipton.com 2007-07-20 16:51:52 +00:00
parent 083e8868b4
commit 8b85358d47

View File

@ -90,6 +90,11 @@ if ($c->param("testcase_id")) {
$test_run->{'criteria'} = $criteria;
$js = $json->objToJson($test_run);
}
} elsif ($c->param("test_runs_by_branch_name")) {
my @branches = Litmus::DB::Branch->search(name => $c->param("test_runs_by_branch_name"));
my $branch = $branches[0];
my @runs = Litmus::DB::TestRun->search(branch => $branch);
$js = $json->objToJson(@runs);
} elsif ($c->param("validate_login")) {
my $uname = $c->param("username");
my $passwd = $c->param("password");