Commit Graph

815 Commits

Author SHA1 Message Date
Alexander Holliday
a6214f400d Merge pull request #1079 from bluewave-labs/fix/fe-be/notifications
fix/fe-be/notifications
2024-10-29 10:52:57 +08:00
Alexander Holliday
77b5462087 Merge pull request #1078 from bluewave-labs/fix/be/network-service-refactor
fix/be/network service refactor
2024-10-29 10:52:39 +08:00
Alex Holliday
9559e8178f Fix typo == -> === 2024-10-29 10:51:57 +08:00
Mend Renovate
3b1a90ab52 fix(deps): update dependency nodemailer to v6.9.16 2024-10-28 11:02:05 +00:00
Alex Holliday
eed6f8dc83 remove accidental async from test descriptions 2024-10-28 18:12:46 +08:00
Alex Holliday
9863aa48e2 remove accidental async from test descriptions 2024-10-28 18:11:08 +08:00
Alex Holliday
2fda99dbef Update jobQueue JSdocs 2024-10-28 18:09:00 +08:00
Alex Holliday
8730ee9de2 Fix concurrency error with updating monitor, uncomment out code in pageSpeedMonitorSlice 2024-10-28 15:37:21 +08:00
Alex Holliday
acdd737a5e await saving monitor 2024-10-28 15:34:19 +08:00
Alex Holliday
8b126d4d8a Fix StatusService SERVICE_NAME 2024-10-28 14:33:08 +08:00
Alex Holliday
013d9fb607 update index.js to use new services 2024-10-28 14:21:11 +08:00
Alex Holliday
3a2bdbbffa Update tests for jobQueue 2024-10-28 14:20:51 +08:00
Alex Holliday
5d6cfb16bc Refactor jobQueue to use new services 2024-10-28 14:20:40 +08:00
Alex Holliday
378dba0b57 Add tests for notificationService 2024-10-28 14:20:22 +08:00
Alex Holliday
903ce58b39 Add notificationService 2024-10-28 14:20:05 +08:00
Alex Holliday
432accaa0b Add tests for statusService 2024-10-28 14:19:37 +08:00
Alex Holliday
d85dc50220 Add statusService 2024-10-28 14:19:14 +08:00
Alex Holliday
b49ce1bd6d Add tests for refactored networkService 2024-10-28 14:18:45 +08:00
Alex Holliday
cb5c7b2c73 Refactor network service 2024-10-28 14:18:27 +08:00
Alex Holliday
25b555f261 Fix email templates 2024-10-28 14:18:03 +08:00
Alex Holliday
b171b540b9 remove empty notification tests 2024-10-28 14:17:38 +08:00
Alex Holliday
3980236580 Remove empty notification validation 2024-10-28 14:17:10 +08:00
Alex Holliday
fa5eef14c3 Revert moving notification check to validation, FE always sends an empty notification array 2024-10-26 18:45:51 +08:00
Alexander Holliday
699bea5806 Merge branch 'develop' into fix/be/refactor-auth-controller 2024-10-26 09:39:13 +08:00
Alexander Holliday
e2bcbe1621 Merge pull request #1037 from bluewave-labs/feat/be/hardware-monitor-notifications
feat/be/hardware monitor notifications
2024-10-26 09:32:41 +08:00
Mend Renovate
f3e33d1ebd fix(deps): update dependency mongoose to v8.7.3 2024-10-25 18:43:47 +00:00
Alex Holliday
50c6e32d6e Fix variable assignment in 2024-10-25 10:49:08 +08:00
Alex Holliday
70872c368d Add status to hardware check model 2024-10-25 10:48:37 +08:00
Alex Holliday
cf032859a1 Merge branch 'develop' into feat/be/hardware-monitor-notifications 2024-10-25 10:44:30 +08:00
Alexander Holliday
3275bc49d0 Merge pull request #1058 from bluewave-labs/feat/be/logger-improvement
feat/be/logger improvement
2024-10-25 09:33:47 +08:00
Alexander Holliday
c1963171b3 Merge pull request #1057 from bluewave-labs/fix/be/server-index-cleanup
fix/be/server-index-cleanup
2024-10-25 09:28:33 +08:00
Alexander Holliday
886d9615f7 Merge pull request #1054 from ajhollid/fix/be/refactor-auth-controller
Fix/be/refactor auth controller
2024-10-25 09:28:08 +08:00
Alex Holliday
268ad695bf replace console.log statements with logger 2024-10-24 15:35:30 +08:00
Alex Holliday
4601d46371 update tests 2024-10-24 15:28:21 +08:00
Alex Holliday
a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday
6984eb8a70 Rewrite logger 2024-10-24 15:27:34 +08:00
Alex Holliday
0649002d27 removed unused endpoints from index.js, moved db connection to index.js 2024-10-24 12:31:22 +08:00
Alex Holliday
a709aa9674 Replace if/else block with ternary 2024-10-24 12:02:14 +08:00
Alex Holliday
6ce55a5ea6 Update editMonitorBodyValidation to disallow empty notifications 2024-10-24 12:00:55 +08:00
Alex Holliday
8eef831794 update tests 2024-10-24 12:00:25 +08:00
Alex Holliday
17b8011ce1 Remove redundant check from 2024-10-24 12:00:13 +08:00
Alex Holliday
2c408063ad update tests 2024-10-24 11:56:40 +08:00
Alex Holliday
78170856f0 Refactor createMonitor to remove redundany check 2024-10-24 11:56:27 +08:00
Alex Holliday
f58bac9ccf Update joi validation to reject empty Notification array on createMonitor 2024-10-24 11:56:06 +08:00
Alex Holliday
bbcdc2f2a2 Add status 404 to getMonitorById error at DB level 2024-10-24 11:42:53 +08:00
Alex Holliday
b69fc223bf remove redundant check 2024-10-24 11:42:18 +08:00
Alex Holliday
084315c377 Update tests 2024-10-24 11:37:24 +08:00
Alex Holliday
3f4678f5e6 Refactor getMonitorCertificate to remove redundant check, move invalid cert handling to FE 2024-10-24 11:36:56 +08:00
Alex Holliday
fb0ead89b7 Refactor fetchMonitorCertificate to throw an error if invald cert 2024-10-24 11:35:58 +08:00
Alex Holliday
86eaae1754 Fix test to expect 401 instead of 403 2024-10-24 11:06:40 +08:00