Commit Graph

303 Commits

Author SHA1 Message Date
M M
96a99e3d6d Fixed error not sending the email. 2024-08-06 20:53:42 -07:00
M M
f7161f0302 Fix monitor notification check. 2024-08-06 20:45:27 -07:00
M M
e42b65054d Fixed module export. 2024-08-06 20:29:07 -07:00
M M
7b2311d468 Add docs. 2024-08-06 19:36:43 -07:00
M M
67711ffe2c Get rid of test route function. 2024-08-06 19:35:49 -07:00
M M
66d101877a look up notifications by monitor and not by user. 2024-08-06 19:35:03 -07:00
M M
e6fac616db Fixed bug that sends an email even if a user does not have notifications turned on. 2024-08-06 18:58:13 -07:00
M M
3bcf564ee4 Merge remote-tracking branch 'upstream/develop' into feat/notify-via-email 2024-08-06 18:33:12 -07:00
Alex Holliday
c11d5f4d5a Added more logging, improved cleanup 2024-08-06 13:52:48 -07:00
Alexander Holliday
10fa4444b8 Merge pull request #534 from bluewave-labs/feat/pagespeed-stats
Add required stats to PagespeedCheck model
2024-08-02 12:50:13 -07:00
Alexander Holliday
efc0a9f3c3 Merge pull request #533 from bluewave-labs/fix/rest-verb
Fix rest verbs
2024-08-02 12:49:29 -07:00
Alex Holliday
907dcf4072 Add required stats to PagespeedCheck model 2024-08-02 12:32:08 -07:00
Alex Holliday
aed4881eac Fix rest verbs 2024-08-02 11:54:46 -07:00
Alex Holliday
8fc069795c Merge remote-tracking branch 'upstream/fix/delete-user' into fix/delete-user 2024-08-02 11:39:11 -07:00
Alex Holliday
6c92dbe358 Delete pagespeed checks when user deleted 2024-08-02 11:38:38 -07:00
Alexander Holliday
a04ecad11f Update authController.js 2024-08-02 11:25:35 -07:00
Alex Holliday
a432aee3de Added empty query to request object 2024-08-02 11:24:15 -07:00
Alex Holliday
4be58cef17 Add instant check at create monitor time 2024-08-02 10:14:32 -07:00
M M
cc7e1bb111 Testing email notifications for when monitor goes down. 2024-08-01 20:42:14 -07:00
Daniel Cojocea
110e31fb7d Added notifications to server validation and small styling changes 2024-08-01 13:22:39 -04:00
Alex Holliday
75a897716f Add notifcations to getMonitorById as well 2024-07-31 20:22:11 -07:00
Alex Holliday
b126830110 Add notifications to monitors before returning 2024-07-31 20:20:04 -07:00
Alex Holliday
76f4143097 Notifications removed and readded on monitor edit 2024-07-31 13:59:14 -07:00
Alex Holliday
0c1af23f66 Fixed var name 2024-07-31 13:29:04 -07:00
Alex Holliday
9e51cffb67 JobQueue was not deleting jobs correctly due to incorrect lookup in monitor object 2024-07-31 13:24:38 -07:00
Alex Holliday
2a79264a9a Added safety check for accessing notifications before inserting 2024-07-31 13:11:20 -07:00
Alex Holliday
7d3bc7ee8a Delete notifcations when a user is deleted 2024-07-31 12:55:19 -07:00
Alex Holliday
905d6ed658 remove delete, use undefined instead 2024-07-31 12:27:40 -07:00
Alex Holliday
09edaebd98 Implement inserting notifications when a monitor is created, update validation 2024-07-31 12:12:05 -07:00
Alexander Holliday
ec706d3d21 Merge pull request #494 from bluewave-labs/fix/be/controller-error-handling
Fix/be/controller error handling
2024-07-30 18:01:55 -07:00
Alex Holliday
aaa63a81cd MaintenanceWindowController error handling 2024-07-30 14:00:19 -07:00
Alex Holliday
c478298631 MaintenanceWindowController error handling 2024-07-30 13:56:38 -07:00
Alex Holliday
abf0b5856b CheckController error handling 2024-07-30 13:55:22 -07:00
Alex Holliday
5a1aaf5132 AuthController error handling, cleanup 2024-07-30 13:54:30 -07:00
Alex Holliday
8220fdce94 Add better error handling 2024-07-30 13:36:53 -07:00
Alex Holliday
1664bc09ea Add delete method 2024-07-30 13:25:56 -07:00
Alex Holliday
03ee67cfca Add methods to MongoDB 2024-07-30 13:23:14 -07:00
Alex Holliday
a7c93aee39 Add DB operations for notifications 2024-07-30 13:19:37 -07:00
Alexander Holliday
4053a6a785 Add notification model (#488) 2024-07-30 12:54:35 -07:00
Alexander Holliday
27b9a6055f Added pre save function to PageSpeedCheck to update Monitor status (#485) 2024-07-30 11:24:25 -07:00
Alexander Holliday
bdf8d6aaea Feat/maintenance window check, resolves #467 (#476)
* Added createMaintenanceWindow route

* Added getMaintenanceWindowsByUserId

* Added getMaintenaceWindowsByMonitorId method, updated routes

* Exported delete methods

* Add check for maintenance window before executing job
2024-07-30 10:02:04 -07:00
Alexander Holliday
95dfc8d82c Feat/maintenance window controller (#475)
* Added createMaintenanceWindow route

* Added getMaintenanceWindowsByUserId

* Added getMaintenaceWindowsByMonitorId method, updated routes

* Exported delete methods
2024-07-30 10:01:52 -07:00
Alexander Holliday
0611051c5f added monitorValdation to export after accidental removal (#479) 2024-07-29 22:59:27 -07:00
Alexander Holliday
f236d3ce4c Feat/db/maintenance window db operations (#473)
* Added comment to show where maintenance window should be applied

* Add maintenance window schema

* Added userID to model

* Add maintenace window db operation methods

* add jsdocs

* Add remaining JSdocs
2024-07-29 07:17:22 -07:00
Alexander Holliday
9cba53f22c Feat/db/maintenance window (#472)
* Added comment to show where maintenance window should be applied

* Add maintenance window schema

* Added userID to model
2024-07-28 13:52:15 -07:00
Alexander Holliday
477cad7cc9 Feat/monitor endpoint refactor (#463)
* Moved all methods to modules

* removed old mongoDB file

* Refactored endpoints to take query params, removed duplicate methods, updated routes, updated Client queries

* Added comment

* Add model differentiation

* Add sort order, fix minor bug, add validation for query params
2024-07-26 18:56:39 -07:00
Alexander Holliday
e47d3685ce Moved all methods to modules (#460)
* Moved all methods to modules

* removed old mongoDB file
2024-07-26 18:25:20 -07:00
Alexander Holliday
4a5c201cbf Forgot to call longAndStoreCheck (#454) 2024-07-25 23:10:30 -07:00
Skorpios
a33750849a Connecting psc to db (#453)
* hooking up the PSC to the DB.

* Updated docs.
2024-07-25 19:11:24 -07:00
Alexander Holliday
4071d6c97c Feat/handle pagespeed (#448)
* Initial commit

* Prepare for pagespeed Check

* removed unused code, updated JSdoc

* reverted controller
2024-07-25 14:59:31 -07:00