Commit Graph

109 Commits

Author SHA1 Message Date
Alex Holliday
792b51b488 fix typos 2025-01-20 11:02:55 -08:00
Alex Holliday
378a190cd3 use response middleware in MonitorController 2025-01-19 12:01:27 -08:00
Alex Holliday
e8aecb4041 fix method name 2025-01-09 10:42:01 -08:00
Alex Holliday
8f572ba01d Remove summary controller method, rewrite getMonitosByTeamId 2025-01-08 13:42:08 -08:00
Alex Holliday
e2d5388a30 remove monitors from summary, unused 2025-01-07 10:12:41 -08:00
Alexander Holliday
25fd0f7055 Merge branch 'develop' into feat/be/hardware-details 2025-01-02 09:58:19 -08:00
Alex Holliday
6563cedf88 add jsdoc and validation 2025-01-01 09:08:07 -08:00
Alex Holliday
cf3305611f Add route and controller method for hardware details 2024-12-31 15:05:03 -08:00
Alex Holliday
0551eb010d Add controller method for uptime details 2024-12-30 14:56:50 -08:00
Alex Holliday
cc40bd6006 refactor controllers to be class based 2024-12-24 11:58:42 -08:00
Alex Holliday
f42bdddb7a add deleteHardwareChecksByMonitorId 2024-12-09 14:01:10 +08:00
Alex Holliday
58be0c018b rewrite monitor resolution check, update tests 2024-11-20 10:37:01 +08:00
Alex Holliday
f613c5f19a Add controller method for getAllMonitorsWithUptimeStats 2024-11-06 11:16:45 +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
Alex Holliday
a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday
a709aa9674 Replace if/else block with ternary 2024-10-24 12:02:14 +08:00
Alex Holliday
17b8011ce1 Remove redundant check from 2024-10-24 12:00:13 +08:00
Alex Holliday
78170856f0 Refactor createMonitor to remove redundany check 2024-10-24 11:56:27 +08:00
Alex Holliday
b69fc223bf remove redundant check 2024-10-24 11:42:18 +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
om-3004
34a13530b3 Merge branch 'develop' into enhancement/check-if-url-resolves 2024-10-18 11:39:07 +05:30
om-3004
ff6051b6b0 Update test case for url resolution to make it more specific 2024-10-17 16:59:49 +05:30
om-3004
aee7e02587 Add validation for monitor URL and update test case and api documentation accordingly 2024-10-17 12:37:03 +05:30
om-3004
0f763e7913 promisify the resolve method to pass the error to the middleware and updat test cases accordingly 2024-10-17 11:06:46 +05:30
om-3004
7ec5e64f6f Remove unused imports 2024-10-17 10:50:19 +05:30
om-3004
afe7c9047c Handle imports exports format check resolution tests code 2024-10-17 10:47:34 +05:30
om-3004
c598278c6f Merge branch 'develop' into enhancement/check-if-url-resolves 2024-10-17 10:35:41 +05:30
om-3004
6715a8b500 Refactor code for check endpoint and update test cases accordingly 2024-10-17 10:02:01 +05:30
Alex Holliday
79cf169ede Add ssl-checker, refactor fetchMonitorCertificate 2024-10-17 11:57:37 +08:00
om-3004
d1e65f53ba Add test cases for checking monitor endpoint resolution 2024-10-16 21:12:51 +05:30
Alex Holliday
4a05157eb3 Fix coverage for auth 2024-10-16 14:17:35 +08:00
Alex Holliday
c356843799 Add tests for fetchCertificates 2024-10-16 13:22:39 +08:00
om-3004
2c85828144 Merge branch 'develop' into enhancement/check-if-url-resolves 2024-10-16 10:04:41 +05:30
Alex Holliday
81d3b8dcb5 Use new fetchMonitorCertificate method, prettier formatting 2024-10-16 11:47:12 +08:00
om-3004
ebf6a0ceb7 Check the monitor URL resolution before adding it 2024-10-15 17:20:54 +05:30
Alex Holliday
896b3437e5 Migrate tests to ESM 2024-10-15 14:00:24 +08:00
Alex Holliday
f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday
607b16d1cd Add tests for addDemoMonitors 2024-10-14 11:36:49 +08:00
Alex Holliday
bdde060f7f Add tests for deleteAllMonitors 2024-10-14 11:06:45 +08:00
Alex Holliday
a0b651fd24 Added getMoniotrsByTeamId tests 2024-10-14 09:43:47 +08:00
Alex Holliday
586b18d295 Add tests for getMonitorById 2024-10-11 15:07:37 +08:00
Alex Holliday
3e23d97930 Add tests for getMonitorCertificate 2024-10-11 14:59:55 +08:00
Alex Holliday
644363e3bb Add tests for getAllMonitors and getMonitorStatsById 2024-10-11 14:23:35 +08:00
Alex Holliday
8578304ca4 refactor validation error and general error handling to reduce code duplicatoin 2024-10-10 08:59:44 +08:00
Alex Holliday
c1d1e0ad1d Refactor for clarity and correctness, add JS docs 2024-10-01 10:55:51 +08:00
Alex Holliday
e0e80dc9c7 Refactor method names, add improve JSdocs for monitorController 2024-10-01 10:29:32 +08:00
Alex Holliday
11b97ab3b4 add update settings method, remove all env var references possible 2024-09-26 14:37:11 +08:00
Alex Holliday
38ee162f61 improve error handling in network service, fix username form errors 2024-09-26 11:01:38 +08:00
Alex Holliday
09fb5595ab Fix proptype errors, remove old alert reference 2024-09-26 10:42:03 +08:00