Files
Checkmate/server/test/unit/services
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
..
2026-06-03 11:04:13 -07:00
2026-04-29 12:59:48 -07:00
2026-05-29 11:33:31 -07:00
2026-04-10 11:30:31 -07:00
2026-06-03 13:29:03 -07:00
2026-04-30 10:36:46 -07:00
2026-06-03 13:29:03 -07:00
2026-05-29 11:33:31 -07:00
2026-05-19 11:16:25 -07:00
2026-04-10 10:59:48 -07:00