Commit Graph

184 Commits

Author SHA1 Message Date
Alex Holliday
8946c98a68 update tests for hardware check module 2024-12-03 11:35:43 +08:00
Alex Holliday
d4312eef17 Add uptime percentage to Hardware Check 2024-11-30 17:01:38 +08:00
Alex Holliday
ec1563bba2 Add parameter for date ranges to return all checks 2024-11-22 09:49:32 +08:00
Alexander Holliday
d34f45fa24 Merge pull request #1147 from bluewave-labs/feat/be/tests-user-module
feat/be/tests user module
2024-11-13 23:05:29 -08:00
Alexander Holliday
f4c2777df1 Merge pull request #1144 from bluewave-labs/feat/be/tests-pagespeed-check-module
Remove unused DB method, add tests for pageSpeedCheckModule
2024-11-13 23:03:41 -08:00
Alex Holliday
9db3e0e6df Add docker type to getMonitorStatsById 2024-11-13 15:37:40 +08:00
Alex Holliday
20d84e0a18 Add docker to check map 2024-11-13 15:34:31 +08:00
Alex Holliday
4c7c4d3578 Add return type for deleteAllOtherUsers 2024-11-12 16:44:01 +08:00
Alex Holliday
d9812a446b update function dependency injection 2024-11-12 16:42:49 +08:00
Alex Holliday
57cad8d31a Inject generateAvatarImage into insertUser 2024-11-12 16:16:20 +08:00
Alex Holliday
a22132621f Remove unused DB method, add tests for pageSpeedCheckModule 2024-11-12 08:09:18 +08:00
Alexander Holliday
617aba0a4d Merge pull request #1126 from bluewave-labs/feat/be/invite-module-tests
Feat/be/invite module tests
2024-11-11 15:18:23 -08:00
Alexander Holliday
64c5c62c78 Merge pull request #1127 from bluewave-labs/feat/be/maintenance-window-module-tests
Feat/be/maintenance window module tests
2024-11-11 15:18:04 -08:00
Alex Holliday
a4a01b0b83 Remove urlIsUnqiue method, update tests 2024-11-11 14:39:30 +08:00
Alex Holliday
54fca685c0 Add try/catch to 2024-11-11 14:25:34 +08:00
Alex Holliday
285fbf2a42 Add DB methods to MongoDB 2024-11-11 12:16:44 +08:00
Alex Holliday
505de31fe0 Add db methods for statusPage 2024-11-11 12:16:34 +08:00
Alex Holliday
349646639c add missing await to 2024-11-08 12:08:08 +08:00
Alex Holliday
dc73e00127 Correct getInviteTokenAndDelete error method name 2024-11-08 11:28:01 +08:00
Alexander Holliday
ddb40bb56b Merge pull request #1117 from bluewave-labs/feat/be/uptime-percentage-stats
Feat/be/uptime percentage stats, references #1115
2024-11-07 18:30:18 -08:00
Alexander Holliday
605ec393f0 Merge pull request #1114 from bluewave-labs/feat/be/monitor-module-refactor
Feat/be/monitor module refactor
2024-11-07 18:29:41 -08:00
Alex Holliday
5129aca6c2 Fix typo in monitor type lookup 2024-11-08 09:46:30 +08:00
Alex Holliday
f9036f3614 fix undefined check, remove console.log 2024-11-07 12:36:56 +08:00
Alex Holliday
8e7619dd78 Add missing try/catch block to 2024-11-07 12:04:25 +08:00
Alex Holliday
91bacf976e isNaN -> Number.isNaN 2024-11-07 11:05:48 +08:00
Alex Holliday
b7923b882c Add new DB method to MongoDB 2024-11-06 11:18:34 +08:00
Alex Holliday
33e88642b3 Add db method for getAllMonitorsWithUptimeStats 2024-11-06 11:17:08 +08:00
Alex Holliday
abdd51802a remove redundant checks and console.log 2024-11-06 10:38:04 +08:00
Alex Holliday
53fb79bbfb Add tests for monitor module 2024-11-05 16:03:37 +08:00
Alex Holliday
f3ec84d36f Refactor for robustness 2024-11-05 14:09:32 +08:00
Alex Holliday
0fd84d5ad8 Fix spelling error, export functions, refactor to inject for ease of testing 2024-11-05 13:50:46 +08:00
Alex Holliday
8605b068ce Refactor for robustness 2024-11-05 13:36:31 +08:00
Alex Holliday
4ca3e3211f Export helper methods, add safe return to 2024-11-05 13:31:10 +08:00
Alex Holliday
2873f68868 reactor getMonitorsByTeamId for clarity 2024-11-05 12:39:35 +08:00
Alex Holliday
4601f95686 refactor getMonitorById for clarity 2024-11-05 12:27:13 +08:00
Alex Holliday
b5e8bdbdcd fix conditional inloop for uptime duration 2024-11-05 12:22:48 +08:00
Alex Holliday
401c3b83fe Refactor getMonitorStatsById for clarity 2024-11-05 12:08:19 +08:00
Alex Holliday
e36abfb9df Minor refactoring in DB modules for readability 2024-11-03 11:48:27 +08:00
Alex Holliday
8730ee9de2 Fix concurrency error with updating monitor, uncomment out code in pageSpeedMonitorSlice 2024-10-28 15:37:21 +08:00
Alexander Holliday
699bea5806 Merge branch 'develop' into fix/be/refactor-auth-controller 2024-10-26 09:39:13 +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
Alex Holliday
268ad695bf replace console.log statements with logger 2024-10-24 15:35:30 +08:00
Alex Holliday
a0248c81c2 standardize log statements 2024-10-24 15:28:13 +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
bbcdc2f2a2 Add status 404 to getMonitorById error at DB level 2024-10-24 11:42:53 +08:00
Alex Holliday
18081ceb77 fix typo in userModule 2024-10-24 11:01:17 +08:00
Alex Holliday
ce20edc2ff Add hardware check module to MongoDB 2024-10-21 11:55:18 +08:00
Alex Holliday
18fe7abaca Add db module for Hardware Checks 2024-10-21 11:54:58 +08:00
Alex Holliday
0dad5c282c Added missing var declaration 2024-10-21 10:07:02 +08:00