From 914dda3fe962fce48a41e239aef98c22e874d920 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Fri, 6 Mar 2026 13:41:18 +0700 Subject: [PATCH] docs: update ROADMAP.md with RLS and FnB tests completion Co-Authored-By: Claude Opus 4.6 --- ROADMAP.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 6c441470..1d4fe165 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -95,7 +95,7 @@ | 2 | Payment Gateway — Momo | `TODO` | Backend #2 | Phase 1 / W1-2 | wallet-service integration | | 3 | Real-time SignalR Hub | `DONE` | Backend #3 | Phase 1 / W1-2 | PosHub + Redis backplane + MessagePack | | 4 | Kitchen → Inventory Deduction | `DONE` | Backend #1 | Phase 1 / W2 | Domain events + HTTP + Polly + idempotency | -| 5 | Multi-tenant Row-Level Security | `TODO` | Backend #2 | Phase 1 / W2-3 | All services, DB level | +| 5 | Multi-tenant Row-Level Security | `DONE` | Backend #2 | Phase 1 / W2-3 | EF Core filters + PostgreSQL RLS, 5 services | | 6 | Payment UI Completion | `DONE` | Frontend Blazor | Phase 1 / W1-2 | Cash/Card/QR wired to real gateway | | 7 | Integration Test Suite | `TODO` | QA Engineer | Phase 1 / W3 | Order lifecycle e2e | | 8 | Staging Deployment | `TODO` | DevOps | Phase 1 / W3-4 | K8s + monitoring | @@ -107,7 +107,7 @@ | 9 | Retail POS Workflow | `TODO` | Backend + Frontend | Phase 2 / W5-6 | Scan, stock, return/exchange | | 10 | Spa Backend Domain Logic | `TODO` | Backend | Phase 2 / W5-6 | Appointments, therapist scheduling | | 11 | EOD Reports + Daily Close | `TODO` | Frontend Blazor | Phase 1 / W4 | order-service queries | -| 12 | FnB Engine Test Coverage | `TODO` | QA Engineer | Phase 1 / W3 | 0 tests currently | +| 12 | FnB Engine Test Coverage | `DONE` | QA Engineer | Phase 1 / W3 | 96 tests (57 domain + 39 handler) | | 13 | Cafe Workflow Completion | `TODO` | Backend + Frontend | Phase 2 / W5-6 | Loyalty stamps, barista queue | ### P2 — Enhancement @@ -145,10 +145,10 @@ | Task | Agent | Status | Depends On | |------|-------|:------:|:----------:| | Kitchen → Inventory auto-deduction | Senior Backend #1 | `DONE` | fnb-engine, inventory | -| Row-level security (all services) | Senior Backend #2 | `TODO` | — | +| Row-level security (all services) | Senior Backend #2 | `DONE` | — | | Rate limiting audit | DevOps | `TODO` | — | | Input sanitization audit | QA | `TODO` | — | -| FnB Engine unit tests | QA | `TODO` | — | +| FnB Engine unit tests | QA | `DONE` | — | | Order lifecycle integration tests | QA | `TODO` | Payment done | #### Week 3-4: Polish & Deploy @@ -223,6 +223,8 @@ | SignalR POS Hub | Backend #3 | PosHub (strongly-typed, 3 groups: shop/kds/pos), Redis backplane, MessagePack, 7 client methods, integrated into 4 order handlers | | Kitchen → Inventory Deduction | Backend #1 | KitchenTicketServedDomainEvent → HTTP call to inventory-service, Polly retry + circuit breaker, idempotency, graceful degradation | | Order Payment Flow | Backend #2 + Frontend | 3 payment flows (cash/card/online), PaymentPending status, WalletServiceClient, BFF proxy update, POS Cash/Card/QR components wired | +| Row-Level Security (5 services) | Backend #2 | ITenantProvider + EF global query filters + PostgreSQL RLS policies, defense-in-depth | +| FnB Engine Unit Tests (96 tests) | QA | 57 domain entity tests + 39 command handler tests, xUnit + Moq + FluentAssertions | | Account Management (Admin Settings) | Backend + Frontend | Full profile/merchant CRUD via BFF | | Subscription System | Backend + Frontend | Merchant entity + EF + API + dynamic UI | | User → Enterprise Plan | Backend + DB | hongochai10@icloud.com set to Enterprise (unlimited) |