[Collab-qa-commits] r1186 - buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller

goneri at alioth.debian.org goneri at alioth.debian.org
Fri Aug 29 18:58:22 UTC 2008


Author: goneri
Date: 2008-08-29 18:58:22 +0000 (Fri, 29 Aug 2008)
New Revision: 1186

Modified:
   buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm
Log:
remove listByTeam. The team table doesn't exist anymore

Modified: buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm
===================================================================
--- buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm	2008-08-29 18:51:27 UTC (rev 1185)
+++ buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm	2008-08-29 18:58:22 UTC (rev 1186)
@@ -82,49 +82,7 @@
 
 }
 
-sub listByTeam : Local {
-    my ( $self, $c, $team_id ) = @_;
 
-    die unless $team_id =~ /^\d+$/;
-    
-    my $dbh = $c->model('DB')->storage->dbh;
-
-    my $package_hashref  = $dbh->selectall_hashref("
-SELECT
-  sourcepackage.name AS name, sourcepackage.id AS sourcepackage_id, changelogentry.id AS changelogentry_id, changelogentry.dscuri, changelogentry.isnative, changelogentry.isindebian, count(buildall.id) AS buildallcount, count(buildok.isbuildok) AS buildokcount, repositoryentry.issyncedwithupstream, repositoryentry.iswatchfilebroken
-FROM
-  repository, sourcepackage, changelogentry, repositoryentry
- LEFT OUTER JOIN build AS buildall
- ON
-  repositoryentry.changelogentry_id=buildall.changelogentry_id
- LEFT OUTER JOIN build AS buildok
- ON
-  repositoryentry.changelogentry_id=buildok.changelogentry_id AND buildok.isbuildok=true
-WHERE
-  repositoryentry.repository_id=repository.id
- AND
-  repository.team_id=4
- AND
-  repositoryentry.changelogentry_id=changelogentry.id
- AND
-  repositoryentry.sourcepackage_id=sourcepackage.id
- GROUP BY sourcepackage.name, sourcepackage.id, changelogentry.id, changelogentry.dscuri, changelogentry.isnative, changelogentry.isindebian, repositoryentry.issyncedwithupstream, repositoryentry.iswatchfilebroken
-        
-        ", 1);
-
-    # TODO find a way to merge the Team view and the par Maintainer view related to the team
-    # TODO maybe by adding a team.email entry
-    my $name_arrayref = $dbh->selectall_arrayref("SELECT name FROM team WHERE id='$team_id'");
-    $c->stash->{maintainer}->{name} = $name_arrayref->[0][0];
-    
-    $c->stash->{packages} = preparePackages($dbh, $package_hashref);
-
-    $c->stash->{template} = 'packages/listByMaintainer.tt2';
-
-
-    }
-
-
 sub preparePackages : Private {
     my ($dbh, $package_hashref) = @_;
 




More information about the Collab-qa-commits mailing list