Commit Graph

856 Commits

Author SHA1 Message Date
Alex Holliday 21de95b89a Add route for getAllMonitorsWithUptimeStats 2024-11-06 11:17:26 +08:00
Alex Holliday 33e88642b3 Add db method for getAllMonitorsWithUptimeStats 2024-11-06 11:17:08 +08:00
Alex Holliday f613c5f19a Add controller method for getAllMonitorsWithUptimeStats 2024-11-06 11:16:45 +08:00
Alex Holliday ba37fb3871 implement remaining tests 2024-11-06 10:38:16 +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
Alexander Holliday de8e9a9f9d Merge pull request #1111 from bluewave-labs/fix/be/db-module-refactor
Minor refactoring in DB modules for readability
2024-11-04 18:16:54 -08:00
Alexander Holliday 2fe44e2ed2 Merge pull request #1104 from bluewave-labs/fix/PasswordRequirements
Fix/password requirements
2024-11-03 18:15:34 -08:00
Alex Holliday e36abfb9df Minor refactoring in DB modules for readability 2024-11-03 11:48:27 +08:00
Mend Renovate f61a5ca2e4 fix(deps): update dependency bullmq to v5.23.0 2024-11-02 21:49:39 +00:00
Mend Renovate c344e5c70a fix(deps): update dependency winston to v3.16.0 2024-11-01 23:04:01 +00:00
Alexander Holliday 568372f54d Merge pull request #1102 from renovate-bot/renovate/mongoose-8.x-lockfile
fix(deps): update dependency mongoose to v8.8.0
2024-11-01 09:46:10 +08:00
Caio Cabral c1de8e0e62 Merge branch 'develop' of https://github.com/bluewave-labs/bluewave-uptime into fix/PasswordRequirements 2024-10-31 14:43:36 -04:00
Mend Renovate 5f1817fdbb fix(deps): update dependency bullmq to v5.22.0 2024-10-31 17:51:45 +00:00
Caio Cabral 40ef5c9be4 fix: login validation 2024-10-31 11:46:52 -04:00
Mend Renovate 97be172dfe fix(deps): update dependency mongoose to v8.8.0 2024-10-31 14:35:22 +00:00
Caio Cabral fd38a9d7eb fix: backend validation password 2024-10-31 09:30:43 -04:00
Alexander Holliday 70099987d8 Merge pull request #1094 from bluewave-labs/feat/be/refactor-base-check
feat/be/refactor-base-check
2024-10-31 10:46:29 +08:00
Mend Renovate 2eadb98350 chore(deps): update dependency mocha to v10.8.2 2024-10-30 18:29:31 +00:00
Alex Holliday 400150486d implement base check 2024-10-30 10:20:42 +08:00
Alexander Holliday 100cea64af Revert "Fix/devops/docker compose" 2024-10-30 10:13:03 +08:00
Alex Holliday a7c00e9383 Refactor models to extend a base check model 2024-10-30 09:49:10 +08:00
Alexander Holliday 2351ac0a4c Merge pull request #1084 from bluewave-labs/feat/be/hardware-monitor-type
feat/be/hardware monitor type
2024-10-30 09:08:05 +08:00
Alex Holliday b1d7947719 fix typo jas -> has 2024-10-30 09:07:47 +08:00
Mend Renovate 92fc6ac463 chore(deps): update dependency mocha to v10.8.1 2024-10-29 22:24:07 +00:00
Alex Holliday 29c83f5206 Safely access payload values 2024-10-29 14:48:19 +08:00
Alex Holliday b417b72450 Refactor requestPagespeed to simply call requestHttp with an updated job object 2024-10-29 14:47:54 +08:00
Alex Holliday e940a0d151 update tests 2024-10-29 13:51:57 +08:00
Alex Holliday a8060a72ab Add validation for secret to Create and Edit Monitor validation 2024-10-29 13:51:50 +08:00
Alex Holliday 10a438a677 Implement handling of hardwareChecks 2024-10-29 13:51:31 +08:00
Alex Holliday 0c321cf484 Add optional authorization config to HTTP request. Delegate handleHardware to handleHttp as they are identical 2024-10-29 13:51:00 +08:00
Alex Holliday 7fd63f8004 Add option secret to Monitor for monitors that require authentication 2024-10-29 13:47:30 +08:00
Alex Holliday b1abe87633 Update HardwareCheck model to include all standard fields 2024-10-29 13:46:51 +08:00
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