Commit Graph

87 Commits

Author SHA1 Message Date
Alex Holliday
09edaebd98 Implement inserting notifications when a monitor is created, update validation 2024-07-31 12:12:05 -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
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
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
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
Skorpios
a33750849a Connecting psc to db (#453)
* hooking up the PSC to the DB.

* Updated docs.
2024-07-25 19:11:24 -07:00
Skorpios
7751a67372 Feat/db operations psc (#449)
* Add screenshot, fix wording

* Update README.md

* setting up PSC in DB.

* Add docs.

---------

Co-authored-by: Gorkem Cetin (BWL) <167266851+gorkem-bwl@users.noreply.github.com>
2024-07-25 14:54:50 -07:00
Alex Holliday
aa6260af85 use findOneAndDelete to make sure tokens are deleted when used 2024-07-23 14:37:15 -07:00
Alex Holliday
608153b461 Commented out admin check, unsure as to whether or not more than one admin can exist 2024-07-23 14:30:27 -07:00
Alex Holliday
c77414f2d7 Added check to verify and fetch token from server 2024-07-23 12:27:23 -07:00
Alex Holliday
a822ae3254 Add role to invite token 2024-07-23 11:24:20 -07:00
Alex Holliday
0a8cb5f6bf Merge remote-tracking branch 'upstream/develop' into feat/incidents 2024-07-22 15:18:52 -07:00
Alex Holliday
e63d577fa5 Added endponts and routes for fetching monitors with incidents 2024-07-22 14:28:03 -07:00
Alex Holliday
a85ae41557 initial commit 2024-07-22 12:47:50 -07:00
Alex Holliday
8e6cd0de71 Added verifyAdmin middleware. Implemented getAllUsers route 2024-07-22 11:49:22 -07:00
Alex Holliday
610d9228da Issue invite token and send invitation email on invite request 2024-07-21 20:35:23 -07:00
Alex Holliday
6b29a56da1 Changed sort order of checks to always be newest->oldest. Updated check search accordingly 2024-07-19 20:27:38 -07:00
Alex Holliday
f169809692 Fixed token issue 2024-07-16 14:40:37 -07:00
Alex Holliday
61d65f700e Add user to response 2024-07-16 14:23:42 -07:00
Alex Holliday
ce200eeb20 Reset password returns a token 2024-07-16 14:06:51 -07:00
Alex Holliday
6bf5776e1b Fix read error in getMonitorsByUserId 2024-07-15 17:03:43 -07:00
Alex Holliday
12e85aed03 Fixed non functioning code 2024-07-12 10:24:46 -07:00
Alexander Holliday
6100fb9dac Merge pull request #289 from MuhammadKhalilzadeh/limit-checks
Limit checks
2024-07-11 22:58:07 -07:00
MuhammadKhalilzadeh
6b8af0f669 Transfering limit to get monitors by Id. Plus, readme file changes 2024-07-11 10:20:39 +03:30
Alexander Holliday
9277a37559 Merge pull request #304 from bluewave-labs/feat/monitor-details-data
Feat/monitor details data
2024-07-10 12:34:02 -07:00
Alex Holliday
5a6cbcd325 Implemented update password functionality 2024-07-10 11:51:27 -07:00
Alex Holliday
5c1bb7ca6a Fetch data from endpoint instead of redux store 2024-07-10 10:33:32 -07:00
Alex Holliday
48ca591006 Added delete image profile functionality to update user 2024-07-09 10:23:22 -07:00
MuhammadKhalilzadeh
7db5433361 Renaming the variable 2024-07-08 22:55:23 +03:30
MuhammadKhalilzadeh
3e6b9049ec Add customization to limiting 2024-07-08 21:32:07 +03:30
Alex Holliday
43bac259d7 Generate avatar image on register or update if an image is included 2024-07-08 10:26:56 -07:00
MuhammadKhalilzadeh
6589d0ef06 limiting getChecks to the last 25 checks 2024-07-08 10:50:57 +03:30
Mohammad Khalilzadeh
9a9200c68e Merge branch 'bluewave-labs:master' into backend-completion 2024-07-06 08:50:43 +03:30
Alex Holliday
f5e4aa0b0c Fixed select error in getUserByEmail 2024-07-05 13:30:39 -07:00
Mohammad Khalilzadeh
a7adb8c04b Merge branch 'bluewave-labs:master' into backend-completion 2024-07-05 09:20:24 +03:30
Alex Holliday
f97382c88d Removed profile image from user before returning it 2024-07-04 12:00:37 -07:00
Mohammad Khalilzadeh
a2e378f1dd Merge branch 'bluewave-labs:master' into backend-completion 2024-07-04 11:18:30 +03:30
Alex Holliday
da1e8ee5d9 Added image bytes to update user profile 2024-07-03 10:23:16 -07:00
MuhammadKhalilzadeh
b239aae4ed Merge branch 'backend-completion' of https://github.com/MuhammadKhalilzadeh/bluewave-uptime into backend-completion 2024-07-03 11:10:10 +03:30
MuhammadKhalilzadeh
41094171f4 error handling and protection 2024-07-03 08:51:53 +03:30
Alexander Holliday
75d16b749d Merge pull request #243 from bluewave-labs/feat/check-admin
Feat/check admin, resolves #241
2024-07-02 14:22:05 -07:00
Alex Holliday
ec63281202 Return admin account status on check 2024-07-02 10:45:38 -07:00
Alex Holliday
d7d6effdda Add route and controller 2024-07-02 10:38:02 -07:00
Alex Holliday
e8d4a5d868 Add profileImage to schema, controllers, and routes 2024-07-01 11:48:56 -07:00
MuhammadKhalilzadeh
81cd302acc modifications 2024-06-29 11:58:27 +03:30
MuhammadKhalilzadeh
704980045d fixes 2024-06-28 21:02:49 +03:30
MuhammadKhalilzadeh
e11ae4d460 complementary deletions on user delete 2024-06-28 20:13:07 +03:30