Add a column to the test data queue to indicate whether a test result is for a application version

that has maintainers. This lets admins defer processing test results to give appliction and version maintiners
a chance to do so.
This commit is contained in:
Chris Morgan
2007-06-07 02:04:15 +00:00
committed by WineHQ
parent 8970888921
commit b59a1d0b1f

View File

@@ -897,6 +897,7 @@ class testData{
"Application", "Application",
"Version", "Version",
"Release", "Release",
"Has maintainer",
"Rating"); "Rating");
return $aCells; return $aCells;
} }
@@ -911,12 +912,18 @@ class testData{
$oVersion = new version($this->iVersionId); $oVersion = new version($this->iVersionId);
$oApp = new application($oVersion->iAppId); $oApp = new application($oVersion->iAppId);
$oUser = new user($this->iSubmitterId); $oUser = new user($this->iSubmitterId);
//
$hMaintainers = maintainer::getMaintainersForAppIdVersionId(null, $this->iVersionId);
$bHasMaintainer = (mysql_num_rows($hMaintainers) == 0) ? false : true;
$aCells = array( $aCells = array(
print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)), print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)),
$oUser->objectMakeLink(), $oUser->objectMakeLink(),
$oApp->objectMakeLink(), $oApp->objectMakeLink(),
$oVersion->objectMakeLink(), $oVersion->objectMakeLink(),
$this->sTestedRelease, $this->sTestedRelease,
($bHasMaintainer ? "YES" : "no"),
$this->sTestedRating); $this->sTestedRating);
if($this->canEdit() or $this->sQueued == "rejected") if($this->canEdit() or $this->sQueued == "rejected")