Add the long awaited 'maintainer notification' system. This system, running from the cron
cleanup scripts, will look for maintainers that have queued entries that the maintainer can process. If the queued entries aren't processed for X days an email is sent. In X*2 days another email is sent. After X*3 days the maintainer is stripped of their maintainership as they aren't really maintaining the application anyway. The hope is that this system lets maintainers know that they have pending queued entries to process to reduce the pressure on the appdb admins to handled hundreds of queued entries.
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
require_once("path.php");
|
||||
require_once(BASE.'include/maintainer.php');
|
||||
|
||||
// the maintainer notification system tests have been split out
|
||||
// into another file
|
||||
include_once("test_maintainer_notify.php");
|
||||
|
||||
|
||||
|
||||
/* unit tests for maintainer class */
|
||||
|
||||
// test that the maintainer count for a given user is accurate for both
|
||||
@@ -569,6 +575,7 @@ function test_maintainer_getMaintainersForAppIdVersionId()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if(!test_maintainer_getMaintainerCountForUser())
|
||||
{
|
||||
echo "test_maintainer_getMaintainerCountForUser() failed!\n";
|
||||
@@ -625,4 +632,13 @@ if(!test_maintainer_getMaintainersForAppIdVersionId())
|
||||
echo "test_maintainer_getMaintainersForAppIdVersionId() passed\n";
|
||||
}
|
||||
|
||||
if(!test_maintainer_notifyMaintainersOfQueuedData())
|
||||
{
|
||||
echo "test_maintainer_notifyMaintainersOfQueuedData() failed!\n";
|
||||
$bTestSuccess = false;
|
||||
} else
|
||||
{
|
||||
echo "test_maintainer_notifyMaintainersOfQueuedData() passed\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user