docs: sync from backend 10de752 — defer legacy mongo imports
This commit is contained in:
@@ -11,6 +11,18 @@ entries on top. Maintained by agents per the rule in `../AGENTS.md`.
|
||||
|
||||
---
|
||||
|
||||
### 2026-06-02 — backend@10de752, frontend@3dfbac2 — defer legacy Mongo runtime imports
|
||||
|
||||
**Commits:** backend `10de752` (version `2.8.33`), frontend `3dfbac2` (version `2.8.33`)
|
||||
**Touched:**
|
||||
- Backend: `src/infrastructure/database/connection.ts`, `src/services/health/healthCheckService.ts`, `src/services/admin/dataCleanupService.ts`, `src/services/payment/migration/reportService.ts`, `package.json`, `package-lock.json`
|
||||
- Frontend: `package.json` version metadata only.
|
||||
**Why:** Continue removing MongoDB as a runtime dependency by deferring the remaining active startup/health/admin/report Mongoose/model loads. Legacy Mongo connection, health ping, admin cleanup, and SHKeeper migration report paths still work, but now load Mongoose/models only when those legacy actions actually run.
|
||||
**Verification:** Backend `npm run typecheck`; backend `npm test -- --runTestsByPath __tests__/health-check-service.test.ts --runInBand`; backend `npm test -- --runTestsByPath __tests__/payment-migration.service.test.ts --runInBand`; backend static scan for non-type top-level `mongoose`/`models/*` imports in active app/routes/services/infrastructure returned no matches; backend/frontend `git diff --check`; `BASE_URL=https://dev.amn.gg bash scripts/smoke/backend-health.sh` passed against dev before push.
|
||||
**Linked docs updated:** [[Postgres Runtime Cutover Status]]
|
||||
|
||||
---
|
||||
|
||||
### 2026-06-02 — backend@134d155, frontend@18af5dd — lazy-load PG-capable store Mongo fallbacks
|
||||
|
||||
**Commits:** backend `134d155` (version `2.8.32`), frontend `18af5dd` (version `2.8.32`)
|
||||
|
||||
Reference in New Issue
Block a user