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

133 Commits

Author SHA1 Message Date
81ff85b924 Remove unneeded eslint disables and empty functions 2022-04-24 20:34:17 +00:00
62364baa1d Don't block main thread waiting for email to build and send 2022-04-24 19:02:43 +00:00
9ae60ef85b Parents should be notified about test results 2022-04-24 18:49:39 +00:00
a0cc8090e8 Made EmailBuilder.generateFromClass async, parents should be notified too 2022-04-23 22:15:03 +00:00
55f33bd467 Added Class.getParents 2022-04-23 22:14:27 +00:00
87d20a7926 Add Student.getParents 2022-04-23 21:56:32 +00:00
23c6b1024b Implemented Parent.getChildren 2022-04-22 04:45:18 +00:00
61e149df4c Added handlebars not equal helper 2022-04-22 04:44:59 +00:00
cf7e9b5246 Test.getAverageScore and Percentage should return whole numbers 2022-04-22 04:05:52 +00:00
063c12b1db Add tests for validator 'values' type 2022-04-22 03:17:53 +00:00
c0cde8a08a Implemented Test.getAverageScore and Percentage 2022-04-22 02:33:26 +00:00
ec6305086e Change implementation of Test.dateString 2022-04-22 02:32:49 +00:00
0d4a1d339c Implemented Student.getTestResults 2022-04-22 02:30:38 +00:00
55dcc4bf46 Added values validator type 2022-04-21 17:32:47 +00:00
483ed5d46f Notify when a test result is changed 2022-04-21 15:48:42 +00:00
72b8c5adef Notify when a new test result is added to a test 2022-04-21 15:48:24 +00:00
a00ff75038 Notify when a new test is added to a class 2022-04-21 15:48:03 +00:00
67c4b510c1 Added User.getEmail 2022-04-21 15:46:50 +00:00
4fcdaaa521 Added Test.getDateString 2022-04-21 15:45:42 +00:00
7093bd872e Added ability to generate an EmailBuilder object from a Class object 2022-04-21 15:44:53 +00:00
6d8e66eeb6 Added TestTemplate.delete 2022-04-21 13:19:07 +00:00
cd875d986f Added setters for TestTemplate 2022-04-21 13:19:07 +00:00
3b29698f35 Implemented TestTemplate.getTests 2022-04-21 13:19:07 +00:00
ef13568221 Implemented Test.delete 2022-04-21 13:19:07 +00:00
7ad77443ab Implemented Class.delete 2022-04-21 13:19:07 +00:00
ba81299d0a Added placeholder TestTemplate.hasAccess method 2022-04-19 21:28:16 +00:00
c3d3de7677 Remove dangling commas 2022-04-19 00:22:23 +00:00
35b4030d27 TestResult.grade now returns real grade 2022-04-18 21:39:38 +00:00
e9d38b25b0 Implemented grade boundaries for TestTemplate 2022-04-18 21:38:48 +00:00
1accae5851 Added GradeBoundaries class 2022-04-18 21:38:16 +00:00
d88a2b8fd7 Added Test.addResult 2022-04-18 20:18:36 +00:00
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