docs: sync from backend dedc5fe - close remaining audit items

This commit is contained in:
Siavash Sameni
2026-06-07 17:09:56 +04:00
parent 74a7e71969
commit 5cb9354f9f
2 changed files with 31 additions and 14 deletions

View File

@@ -12,6 +12,16 @@ entries on top. Maintained by agents per the rule in `../AGENTS.md`.
---
### 2026-06-07 — backend@dedc5fe, frontend@9a5fa13 — DB audit remaining M/L closeout
**Commits:** `dedc5fe` `9a5fa13`
**Touched:** backend `src/services/points/PointsService.ts`, `src/services/marketplace/shopSettingsStore.ts`, `src/services/payment/paymentCoordinator.ts`, `src/db/repositories/drizzle/DrizzlePaymentRepo.ts`, `src/db/repositories/drizzle/DrizzleMarketplaceRepo.ts`, `src/db/repositories/interfaces/IPaymentRepo.ts`, `__tests__/db-audit-remaining-items.test.ts`, `scripts/smoke/db-audit-service-regressions.sh`, `package.json`, `package-lock.json`; frontend `package.json`, `Dockerfile`; docs `09 - Audits/DB Query & Schema Audit - 2026-06-06.md`, `09 - Audits/Activity Log.md`
**Why:** Close the remaining DB Query & Schema Audit items: M15 moves level-up previous-level reads into the serializable points transaction result; M18 resolves shop seller UUIDs through the active transaction client; M19 dispute timeline/evidence SQL append behavior is locked with regression coverage; M21 template-checkout duplicate cleanup is a single repo SQL delete; M25 seller-visible purchase-request pagination/counting uses SQL predicates; M32 and L4 index coverage is verified in schema and migration guard tests.
**Verification:** backend `npm run typecheck`; backend `npx jest __tests__/db-audit-remaining-items.test.ts __tests__/db-audit-dispute-integrity.test.ts __tests__/db-audit-high-indexes.test.ts __tests__/payment-coordinator.test.ts --runInBand --forceExit` (4 suites / 13 tests); backend `BASE_URL=http://127.0.0.1:5001 scripts/smoke/db-audit-service-regressions.sh` (20 suites / 91 tests); backend/frontend `git diff --check`; frontend/backend version metadata confirmed at v2.10.4. Pushed to Forgejo.
**Linked docs updated:** [[09 - Audits/DB Query & Schema Audit - 2026-06-06]]
---
### 2026-06-07 — backend@04de406, frontend@c2a5e4a — DB audit H34-H36 normalized chat/dispute messages
**Commits:** `04de406` `c2a5e4a`