T10: Monitoring, Performance, Documentation & Environment Config — 38 tests, ruff clean, docs OK
- Extended health endpoint: DB+Redis+Storage+Worker checks with degraded status - Prometheus metrics endpoint: admin-only, text/plain format - Metrics: http_requests_total, db_pool_connections, arq_jobs_total - Structured JSON logging (structlog): timestamp, level, method, path, status, duration_ms, tenant_id - Performance: page_size max 100 enforced (422), streaming CSV export (StreamingResponse) - Scripts: seed_perf_data.py, check_indexes.py - Docs: admin-guide.md (Deploy, Backup, Restore, Env-Vars, Troubleshooting), api-overview.md - README updated: prod setup, API section, env profiles, admin-guide link - .env.example: added SECRET_KEY, STORAGE_PATH, SMTP_* vars - 38 new tests, full regression 564/564 pass (0 failures) - Ruff: all checks passed
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
## T03 — Plugin System Framework — COMPLETE ✅
|
||||
**Date**: 2026-06-29 01:20
|
||||
**Commit**: 7a5a48f (pushed to Forgejo)
|
||||
@@ -166,3 +167,28 @@
|
||||
- **Tests:** 33/33 new tests pass, full regression 276/276 pass
|
||||
- **tsc:** 0 errors, **vite build:** 252 modules, 3.31s
|
||||
- **Commit:** 0962f3a
|
||||
|
||||
## 2026-07-01 20:44 — T08c: Frontend Mail UI + Global Search UI Complete
|
||||
- **16 neue Dateien, 5 modified** — 4313 Zeilen
|
||||
- **Mail UI:** 3-pane layout (folder tree + mail list + reading pane), compose modal (bold/italic/link/template), reply/forward, shared mailbox selector, attachment download, create-event-from-mail
|
||||
- **Mail Settings:** 6 tabs (accounts, signatures, rules, labels, vacation, PGP)
|
||||
- **Global Search:** Tabs for companies/contacts/mails/files/events
|
||||
- **API client:** mail.ts (all endpoints)
|
||||
- **Routes:** /mail, /mail/settings
|
||||
- **i18n:** de.json + en.json translations
|
||||
- **Tests:** 44/44 new tests pass, full regression 318/318 pass
|
||||
- **tsc:** 0 errors, **vite build:** 267 modules, 5.19s
|
||||
- **Commit:** 0070fb3
|
||||
|
||||
## 2026-07-01 23:01 — T10: Monitoring, Performance, Documentation & Environment Config Complete
|
||||
- **Monitoring:** Prometheus metrics (http_requests_total, db_pool_connections, arq_jobs_total), structured JSON logging via structlog, extended health checks (DB, Redis, storage, worker)
|
||||
- **Metrics endpoint:** GET /api/v1/metrics (admin-only, text/plain Prometheus format, 403 for non-admin)
|
||||
- **Health endpoint:** Extended with database, redis, storage, worker checks — status healthy/degraded
|
||||
- **Performance:** Streaming CSV export for contacts and companies (StreamingResponse with own DB session), page_size max 100 enforced (422 for >100)
|
||||
- **Scripts:** seed_perf_data.py (--count N), check_indexes.py
|
||||
- **Documentation:** README.md updated (prod setup, API section, admin-guide link, env profiles), docs/admin-guide.md created, docs/api-overview.md created
|
||||
- **Config:** .env.example updated with SMTP, storage, secret_key vars; config.py extended with SMTP/storage/secret_key settings
|
||||
- **Dependencies:** prometheus-client, structlog added to requirements.txt
|
||||
- **Tests:** 38/38 pass (test_monitoring.py 17, test_performance.py 15, test_health.py 6) in 24.24s
|
||||
- **Ruff:** All checks passed
|
||||
- **Docs check:** README.md, docs/admin-guide.md, docs/api-overview.md all present
|
||||
|
||||
Reference in New Issue
Block a user