Task 3: remove config_file_service facade, update direct imports and tests
This commit is contained in:
@@ -20,14 +20,14 @@ BanGUI is a two-tier web application with a clear separation between frontend an
|
||||
┌─────────────────────────────┼────────────────────────────────────┐
|
||||
│ Server │
|
||||
│ ┌──────────────────────────┴─────────────────────────────────┐ │
|
||||
│ │ Backend (FastAPI) │ │
|
||||
│ │ Backend (FastAPI) │ │
|
||||
│ │ Python 3.12+ · Async · Pydantic v2 · structlog │ │
|
||||
│ └─────┬──────────────┬──────────────┬────────────────────────┘ │
|
||||
│ │ │ │ │
|
||||
│ ┌─────┴─────┐ ┌─────┴─────┐ ┌────┴─────┐ │
|
||||
│ │ SQLite │ │ fail2ban │ │ External │ │
|
||||
│ │ (App DB) │ │ (Socket) │ │ APIs │ │
|
||||
│ └───────────┘ └───────────┘ └──────────┘ │
|
||||
│ │ │ │ │
|
||||
│ ┌─────┴─────┐ ┌─────┴─────┐ ┌────┴─────┐ │
|
||||
│ │ SQLite │ │ fail2ban │ │ External │ │
|
||||
│ │ (App DB) │ │ (Socket) │ │ APIs │ │
|
||||
│ └───────────┘ └───────────┘ └──────────┘ │
|
||||
└──────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
|
||||
@@ -62,6 +62,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
|
||||
|
||||
**Docs changes needed:** Update `Docs/Refactoring.md` and `Docs/Architekture.md` if it mentions this service.
|
||||
|
||||
**Status:** Completed ✅
|
||||
|
||||
**Why this is needed:** Pure delegation façades add indirection with no abstraction benefit and obscure the true dependencies of the system. The hidden circular dependency via lazy imports is a structural risk — a refactor inside any of the three sub-services could easily break the cycle in unexpected ways.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user