fix issues related to school year
Tests / PHPUnit (push) Failing after 34s

This commit is contained in:
root
2026-07-31 18:52:25 -04:00
parent 8d7ee3b9fc
commit 09ea144bb2
23 changed files with 537 additions and 218 deletions
+14
View File
@@ -234,6 +234,20 @@ class Services extends BaseService
);
}
public static function staffDirectorySync(bool $getShared = true): \App\Services\StaffDirectorySyncService
{
if ($getShared) {
return static::getSharedInstance('staffDirectorySync');
}
return new \App\Services\StaffDirectorySyncService(
model(\App\Models\StaffModel::class),
model(\App\Models\UserModel::class),
model(\App\Models\ConfigurationModel::class),
\Config\Database::connect()
);
}
public static function schoolYearManagement(bool $getShared = true): \App\Services\SchoolYearManagementService
{
if ($getShared) {
+4 -4
View File
@@ -7,12 +7,12 @@ class SessionTimeout
// Session timeout in seconds (30 minutes)
public const TIMEOUT_DURATION = 1800;
// Show warning after 25 minutes of inactivity (5 minutes before timeout)
public const WARNING_THRESHOLD = 1500;
// Show warning during the last 30 seconds before timeout.
public const WARNING_THRESHOLD = 1770;
// Server-side check interval (in seconds)
public const CHECK_INTERVAL = 60; // 1 minute
public const CHECK_INTERVAL = 5;
// Client-side check interval (in milliseconds)
public const CLIENT_CHECK_INTERVAL = 60000; // 1 minute
public const CLIENT_CHECK_INTERVAL = 5000;
}