docs: record H34-H36 audit closure

This commit is contained in:
Siavash Sameni
2026-06-07 16:40:44 +04:00
parent af9bce3967
commit ffc0d83c60
2 changed files with 19 additions and 6 deletions

View File

@@ -12,6 +12,16 @@ entries on top. Maintained by agents per the rule in `../AGENTS.md`.
---
### 2026-06-07 — backend@04de406, frontend@c2a5e4a — DB audit H34-H36 normalized chat/dispute messages
**Commits:** `04de406` `c2a5e4a`
**Touched:** backend `src/db/schema/chat.ts`, `src/db/schema/dispute.ts`, `src/db/migrations/0028_chat_dispute_message_tables.sql`, `src/db/repositories/drizzle/DrizzleChatRepo.ts`, `src/db/repositories/drizzle/DrizzleDisputeRepo.ts`, `src/db/repositories/interfaces/IChatRepo.ts`, `src/services/chat/ChatService.ts`, targeted regression tests, `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 High H34-H36 from the DB Query & Schema Audit. Chat messages, participants, and unread counts now have normalized relational tables with migration backfills while the old JSONB columns remain compatibility mirrors. Chat message send/page/read/edit/delete paths use row-level repository methods and relational list/count predicates. Dispute messages now hydrate from `dispute_messages` rows with JSON fallback only during transition.
**Verification:** backend `npm run typecheck`; backend `npx jest __tests__/drizzle-chat-repo.test.ts __tests__/db-audit-dispute-integrity.test.ts __tests__/db-audit-chat-dispute-normalized-messages.test.ts --runInBand` (3 suites / 12 tests); backend/frontend scoped `git diff --check`; frontend/backend version metadata confirmed at v2.10.3.
**Linked docs updated:** [[09 - Audits/DB Query & Schema Audit - 2026-06-06]]
---
### 2026-06-07 — backend@05b402c, frontend@169fe69 — DB audit bounded high cleanup and blog status enum
**Commits:** `e8cb64c` `05b402c` `169fe69`