Alexander Holliday
0fb210e9e1
Merge pull request #3713 from Rabson/fix/diagnostics-totalsize-undefined
...
fix: (diagnostics) derive Mongo totalSize when dbStats omits it (Atlas shared tier)
2026-06-09 09:09:47 -07:00
Alexander Holliday
ce4cb63035
Merge pull request #3690 from harsh-aghara/feat/accept-status-codes-backend
...
Add customUpCodes support for HTTP monitors (Backend)
2026-06-08 12:04:42 -07:00
Alex Holliday
9a85389b8c
update tests
2026-06-07 10:16:31 -07:00
Rabson
6a566c3693
fix(diagnostics): derive Mongo totalSize when dbStats omits it
...
MongoDB Atlas shared/free tiers return a legacy dbStats shape that omits
`totalSize` (while still returning storageSize/indexSize). diagnosticService
passed that undefined straight through, so the Diagnostics UI crashed with
"Expected a finite number, got undefined".
Derive totalSize (storageSize + indexSize) at the DB and per-collection level
so it always satisfies the non-optional `totalSize: number` type. Confirmed it
is not a version removal (stock mongo:8 returns totalSize) nor a permissions
issue (missing even with atlasAdmin). Adds unit tests for the derivation.
2026-06-07 08:58:09 +08:00
Alexander Holliday
8dbe42288b
Merge pull request #3684 from jhcpeixoto/feat/ntfy-notifications
...
feat: add ntfy notification support
2026-06-05 09:35:04 -07:00
harsh-aghara
d2c13fac5a
Merge remote-tracking branch 'upstream/develop' into feat/accept-status-codes-backend
...
# Conflicts:
# server/src/service/infrastructure/network/HttpProvider.ts
2026-06-05 00:58:35 +05:30
harsh-aghara
dd16ac060a
fix: run advanced matcher on HTTP errors with custom up codes
...
When customUpCodes mark an HTTPError as up, parse the response body, apply advancedMatcher.validate, and set status to statusUp && matchResult.ok. Return parsed payload and extracted values to match the success path.
2026-06-05 00:35:30 +05:30
harsh-aghara
5628c202f7
refactor: extract isStatusUp utility to decouple from got's response.ok and modified utils test accordingly
2026-06-04 22:43:43 +05:30
Alex Holliday
4729863826
add tests
2026-06-03 13:29:03 -07:00
Alex Holliday
5e225f9173
update tests
2026-06-03 11:51:42 -07:00
harsh-aghara
372fc9869b
refactor(monitor): address PR feedback for customUpCodes
...
Add HttpStatusCode types and simplify provider logic
2026-06-03 23:39:26 +05:30
Alex Holliday
b8a44f09fc
update tests
2026-06-03 11:04:13 -07:00
Alex Holliday
b4970d321d
update tests
2026-06-02 11:31:22 -07:00
Alex Holliday
2b6734bb78
update tests
2026-06-02 11:25:21 -07:00
Alex Holliday
599c599588
add tests
2026-06-02 09:47:13 -07:00
Alex Holliday
89c4f4005e
add lessSimpleQueue tests
2026-06-01 11:21:49 -07:00
harsh-aghara
87a6640c1d
fix(backend): validate customUpCodes against standard HTTP status codes
...
Addresses reviewer feedback by enforcing strict validation on the array. Previously, the Zod schema accepted any arbitrary number, which could allow invalid or self-defined HTTP codes (e.g., 5000) to be saved to the database.
Refs #3657
2026-06-01 13:21:30 +05:30
harsh-aghara
4e31499f78
feat(backend): add customUpCodes support for HTTP monitors
...
Adds a customUpCodes field to the monitor schema to allow users to specify which HTTP status codes should be treated as UP instead of DOWN. Includes core logic in HttpProvider and unit tests.
Refs #3657
2026-06-01 00:10:55 +05:30
Alex Holliday
da92b9d067
update tests
2026-05-29 11:33:31 -07:00
joaquimpeixoto
8a83bc99e9
feat: add ntfy notification support
2026-05-27 16:57:11 +01:00
Alex Holliday
e834402672
tighten server types
2026-05-26 14:53:33 -07:00
Alex Holliday
a415c75eb4
add tests for mw and monitor services
2026-05-25 09:57:34 -07:00
Alex Holliday
3abacb046b
handle paused status
2026-05-21 11:02:59 -07:00
Alex Holliday
fbfb861447
flip status on create
2026-05-21 10:50:53 -07:00
Alex Holliday
0470eab782
extract flipping monitor status, flip status on delete
2026-05-21 10:27:46 -07:00
Alex Holliday
abf66eed95
add logic for entering/leaving maintenance windows, add tests
2026-05-21 10:23:27 -07:00
Alex Holliday
9b84b98391
add tests
2026-05-19 11:16:25 -07:00
Alex Holliday
704f25b987
extract password validation, add regression test
2026-05-15 11:14:39 -07:00
Alex Holliday
b925434078
tighten validation, add tests
2026-05-12 11:18:51 -07:00
Alex Holliday
f86ceae0c6
update tests
2026-05-12 10:41:30 -07:00
Alex
6b63091d89
tighten validation, add tests
2026-05-11 11:28:39 -07:00
Alex
766d847561
tighten validation, replace negative type checks with allowed list
2026-05-11 10:27:41 -07:00
Alex
08043a5ea0
tighten validation, add tests
2026-05-11 10:12:27 -07:00
Alexander Holliday
182ff390e9
Merge pull request #3642 from bluewave-labs/feat/dns-provider
...
feat: dns provider
2026-05-08 13:17:52 -07:00
Alex
fc711e8e24
per call resolver
2026-05-08 13:15:45 -07:00
Alex
0f662e1a65
update tests
2026-05-08 13:04:18 -07:00
Alex
0c36c8e625
tests
2026-05-08 12:44:58 -07:00
Alex Holliday
fda9d9edfe
add tests
2026-05-08 08:59:31 -07:00
Alex
60cded78a6
validation tests
2026-05-07 11:43:00 -07:00
Alexander Holliday
bf369aa546
Merge pull request #3626 from harsh-aghara/feat/bulk-pause-resume
...
feat/bulk pause resume
2026-05-06 09:15:30 -07:00
harsh-aghara
e725128b10
feat(monitors): track and report bulk action queue failures
...
Addresses PR feedback:
- Upgrades bulk pausing from Promise.all to Promise.allSettled
- Logs individual job queue sync failures with monitor ID context
- Surfaces failedCount to the frontend via controller response
- Adds unit tests to verify partial failure handling
Fixes #3602
2026-05-05 17:08:25 +05:30
Alex Holliday
1fd56610ea
update tests
2026-05-04 11:55:39 -07:00
Alex Holliday
6f0cc307dc
log error on geo check pause/resume fail, update tests
2026-05-04 10:51:53 -07:00
Retr01-sudo
094def117a
feat(monitors): add bulk pause/resume api endpoints and service logic
...
- Validates bulk monitor IDs using zod
- Implements optimized Mongo $in/$ne queries for performance
- Orchestrates background job pausing/resuming via BullMQ
- Added comprehensive unit tests for monitor service logic
Fixes #3602
2026-05-01 19:42:51 +05:30
Alex Holliday
bacbf8404e
refactor tests
2026-04-30 10:36:46 -07:00
Alex Holliday
4de2ba4b25
add missing tests
2026-04-29 12:59:48 -07:00
Alex Holliday
0322a96090
update settings service tests
2026-04-29 11:41:22 -07:00
Alex Holliday
3dbad1743a
resolve conflicts
2026-04-29 11:39:08 -07:00
Alex Holliday
f4c3ee16db
Merge branch 'develop' into feat/status-page-themes-backend
2026-04-29 11:35:55 -07:00
Alexander Holliday
a7d5a84206
Merge pull request #3569 from bluewave-labs/feat/status-page-themes-frontend
...
feat(status-page): four selectable themes for the public status page
2026-04-29 11:35:23 -07:00