License updated to GPLv3

🧲 New features
Custom user role permissions
Employee edit form updated
Employee daily task list
Attendance and employee distribution charts on dashboard
Improvements to company structure and company assets module
Improved tables for displaying data in several modules
Faster data loading (specially for employee module)
Initials based profile pictures
Re-designed login page
Re-designed user profile page
Improvements to filtering
New REST endpoints for employee qualifications

🐛 Bug fixes
Fixed, issue with managers being able to create performance reviews for employees who are not their direct reports
Fixed, issues related to using full profile image instead of using smaller version of profile image
Changing third gender to other
Improvements and fixes for internal frontend data caching
This commit is contained in:
Thilina Pituwala
2020-10-31 19:02:37 +01:00
parent 86b8345505
commit b1df0037db
29343 changed files with 867614 additions and 2191082 deletions

View File

@@ -1,5 +1,11 @@
<?php
$migrationList = [];
$migrationList[] = 'v20201028_280002_update_gender';
$migrationList[] = 'v20201028_280001_update_module_names';
$migrationList[] = 'v20201017_271101_switch_off_photo_att';
$migrationList[] = 'v20200828_270102_module_user_role_blacklist';
$migrationList[] = 'v20200828_270101_user_role_additional';
$migrationList[] = 'v20200620_270014_update_module_names';
$migrationList[] = 'v20200530_270009_update_module_names';
$migrationList[] = 'v20200518_270011_add_al_language';
$migrationList[] = 'v20200429_270010_setting_groups';

View File

@@ -86,6 +86,20 @@ SQL;
SQL;
$this->executeQuery($sql);
try {
$candidate = new Candidate();
$candidates = $candidate->Find('1 = 1');
foreach ($candidates as $candidate) {
$jobApplication = new Application();
$jobApplications = $jobApplication->Find('candidate = ? order by created desc limit 1', [$candidate->id]);
if (is_array($jobApplications) && count($jobApplications) === 1) {
$candidate->jobId = $jobApplications[0]->job;
$candidate->Save();
}
}
} catch (\Exception $e) {
}
return true;
}
}

View File

@@ -0,0 +1,16 @@
<?php
namespace Classes\Migration;
class v20200620_270014_update_module_names extends AbstractMigration {
public function up(){
$sql = <<<'SQL'
Update Settings set value = '1' where name = 'System: Reset Module Names';
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}

View File

@@ -0,0 +1,16 @@
<?php
namespace Classes\Migration;
class v20200828_270101_user_role_additional extends AbstractMigration {
public function up(){
$sql = <<<'SQL'
Alter table UserRoles add column `additional_permissions` TEXT NULL;
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}

View File

@@ -0,0 +1,16 @@
<?php
namespace Classes\Migration;
class v20200828_270102_module_user_role_blacklist extends AbstractMigration {
public function up(){
$sql = <<<'SQL'
Alter table Modules add column `user_roles_blacklist` TEXT NULL;
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}

View File

@@ -0,0 +1,33 @@
<?php
namespace Classes\Migration;
use Attendance\Common\Model\Attendance;
class v20201017_271101_switch_off_photo_att extends AbstractMigration
{
public function up()
{
$sql = <<<'SQL'
Update Settings set value = '0' where name = 'Attendance: Photo Attendance';
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
Update Attendance set image_in = NULL where image_in like 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAA%';
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
Update Attendance set image_out = NULL where image_out like 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAA%';
SQL;
return $this->executeQuery($sql);
}
public function down()
{
return true;
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Classes\Migration;
class v20201028_280001_update_module_names extends AbstractMigration {
public function up(){
$sql = <<<'SQL'
Update Settings set value = '1' where name = 'System: Reset Module Names';
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}

View File

@@ -0,0 +1,43 @@
<?php
namespace Classes\Migration;
class v20201028_280002_update_gender extends AbstractMigration {
public function up(){
$sql = <<<'SQL'
ALTER TABLE Candidates modify column `gender` varchar(15) NULL;
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
Update Candidates set gender = 'Other' WHERE gender = 'Divers';
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
ALTER TABLE Employees modify column `gender` varchar(15) NULL;
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
Update Employees set gender = 'Other' WHERE gender = 'Divers';
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
ALTER TABLE ArchivedEmployees modify column `gender` varchar(15) NULL;
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
Update ArchivedEmployees set gender = 'Other' WHERE gender = 'Divers';
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}