1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 18:19:25 +00:00
Commit Graph

102 Commits

Author SHA1 Message Date
0e7f0534b7 Added TestResult.delete 2022-04-18 20:17:54 +00:00
326dd35b44 Added TestResult.create 2022-04-18 20:17:29 +00:00
5def59357c Implement TestResult.setMark 2022-04-18 19:13:58 +00:00
facb9ba124 Fix locale in handlebars formatTime helper 2022-04-18 19:12:52 +00:00
0b4be056c6 Generalise MySQLDate to lib 2022-04-18 19:12:08 +00:00
ce00fd1835 Added handlebars format time helper 2022-04-18 12:58:55 +00:00
ac1420a26e Added Test.getTestResults 2022-04-18 12:57:27 +00:00
318bdd3b30 Implemented base TestResult functionality 2022-04-18 12:57:05 +00:00
ad1a50d4f2 Reorder User constructor params 2022-04-11 23:45:17 +00:00
95b1636288 Reduce overhead on calls to getStudents and getTeacher to not fetch objects when they're not required 2022-04-01 12:46:07 +00:00
0b09a9a61e Should not allow teachers to remove the last teacher from class 2022-03-31 13:49:03 +00:00
6a36fae78c Refactor Class.getTeachers and Class.getStudents into their own functions 2022-03-31 13:46:52 +00:00
dc95b64480 Fully implemented Class.removeUser 2022-03-31 08:50:09 +00:00
3cb5929ea3 Add Class.addUser and scaffolding for Class.removeUser 2022-03-29 10:10:46 +00:00
3568762778 User.createUser can now return Student/Parent types 2022-03-29 10:07:36 +00:00
e2ebaee9be DatabaseConnectionPool should bubble errors up 2022-03-29 10:06:57 +00:00
4c2a078530 Refactored database connection system to use a shared pool per-request 2022-03-28 08:01:05 +00:00
8420bd9fd8 Added security validation for User class 2022-03-21 09:15:36 +00:00
e34016667f Catch database errors and prevent them from crashing the app 2022-03-21 09:12:48 +00:00
609f50545c Fixed context in handlebars helpers 2022-03-14 09:40:10 +00:00
17193df826 Add TestTemplate.assignClass 2022-03-08 13:39:43 +00:00
871cb36395 Add Account.createTestTemplate 2022-03-08 13:05:55 +00:00
ca5f7cc6e2 Add TestTemplate.createTestTemplate 2022-03-08 14:21:57 +00:00
7b34e35fbc Add Account.createClass 2022-03-08 11:43:19 +00:00
db98c1d5ba Add Class.createClass 2022-03-08 14:21:49 +00:00
34c6478699 Added new validation type 'date' to validator module 2022-03-08 00:00:52 +00:00
be08c58afa Fixed failing DatabaseConnectionPool tests 2022-03-07 23:46:30 +00:00
518e482ee7 Added Account.getTestTemplates method 2022-03-07 14:46:00 +00:00
9dd5c1dd32 Added Subject.getAllSubjects method 2022-03-07 14:45:33 +00:00
e19afeff73 Add Test.hasAccess for user validation 2022-03-06 20:42:58 +00:00
ec87a77dd2 Added Class.hasAccess to validate user input and add security 2022-03-04 22:39:56 +00:00
c9e826d016 Lint cleanup with new rules 2022-03-03 09:21:43 +00:00
9c66a50973 Add User.shortName 2022-03-03 01:58:47 +00:00
dd5778e872 Class should fetch class members too 2022-03-03 01:58:26 +00:00
63e6fde021 Generalise getTeacher to getUser 2022-03-03 01:57:49 +00:00
b214c7858a Added Class.getTests() 2022-02-28 11:49:02 +00:00
6ed7f09ce8 Lint cleanup 2022-02-28 09:16:06 +00:00
f299ecd727 Close database connection when finished with it 2022-02-25 19:52:46 +00:00
0ac1b1bb73 Fixed bug where handlebars can't access getters 2022-02-25 19:52:46 +00:00
28f8b8dae8 Add ability to extract TestTemplate from Test 2022-02-25 19:52:46 +00:00
85d25439fd Add ability to extract Class from Test 2022-02-25 19:52:46 +00:00
7f6b1cfb97 Add ability to extract creator Account from TestTemplate 2022-02-25 19:52:45 +00:00
67e34e2c93 Add ability to extract teachers Accounts from Class 2022-02-25 19:52:45 +00:00
d5bc5a9619 Add ability to extract Subject from Class 2022-02-25 19:52:45 +00:00
6ee3e90f9b Added Subject constructor 2022-02-25 19:52:45 +00:00
c6433f4594 Fix bug where tests on the current day weren't selected in recent or upcoming filters 2022-02-25 16:48:11 +00:00
8063cad2f4 Don't fetch unneccasary records from db 2022-02-25 15:52:56 +00:00
73bf0f699c Added User.getClasses 2022-02-25 15:52:33 +00:00
f6efa74a89 Added Class constructor 2022-02-25 15:52:07 +00:00
57af81cc98 Consistent SQL query formatting 2022-02-25 14:44:35 +00:00