diff --git a/docs/test-bugs.md b/docs/test-bugs.md index da77f15..5c4730f 100644 --- a/docs/test-bugs.md +++ b/docs/test-bugs.md @@ -115,7 +115,7 @@ Jeder Bug wird wie folgt dokumentiert: - **Response:** `{"id":"...","type":"company","displayname":"","status":"lead",...}` - **Schweregrad:** Medium - **Ursache:** ContactCreate Schema hat keine required fields (type, displayname etc. sind optional) -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — ContactCreate validator erfordert name (company) oder firstname (person) ### BUG-011: Playwright E2E Tests laufen gegen localhost statt Produktion - **Kategorie:** Frontend / E2E Tests @@ -157,7 +157,7 @@ Jeder Bug wird wie folgt dokumentiert: - **Response:** `{"code":"internal_error","detail":"Internal server error","trace_id":"df33898a"}` - **Schweregrad:** High - **Ursache:** `current_user["id"]` in `tags/routes.py:189` — Key heißt `user_id` nicht `id` (gleicher Bug wie BUG-001) -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — current_user["id"] → current_user["user_id"] ### BUG-015: Cross-Plugin Imports — 6 violations - **Kategorie:** Architektur @@ -184,7 +184,7 @@ Jeder Bug wird wie folgt dokumentiert: - **Tatsächlich:** 6344ms (test), 6369ms (contact), 3283ms (wiki) - **Schweregrad:** High - **Ursache:** Search Query ist zu langsam — mögliche Ursachen: fehlende Indexes, ineffiziente Query, zu viele Provider die sequentiell suchen -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — use_ai Parameter für optionale KI-Anreicherung ### BUG-017: 10 Core-to-Plugin Imports - **Kategorie:** Architektur @@ -306,7 +306,7 @@ Jeder Bug wird wie folgt dokumentiert: - **Response:** `{"code":"internal_error","detail":"Internal server error","trace_id":"2454d717"}` - **Schweregrad:** High - **Ursache:** Unbekannt — muss Backend-Log prüfen -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — GRANT DELETE auf alle Tabellen für crm_api/crm_auth/crm_worker ### BUG-031: Role/Group — PUT gibt 405, korrekt ist PATCH - **Kategorie:** API / Doku @@ -365,7 +365,7 @@ Jeder Bug wird wie folgt dokumentiert: - **Response:** `{"code":"internal_error","detail":"Internal server error","trace_id":"f6e8eb4d"}` - **Schweregrad:** High - **Ursache:** Unbekannt — muss Backend-Log prüfen -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — db.flush() vor _incident_to_dict() statt db.refresh() nach db.commit() ### BUG-038: Audit-Log fehlt für tag, task, wiki, mail, calendar - **Kategorie:** API / Audit @@ -374,7 +374,7 @@ Jeder Bug wird wie folgt dokumentiert: - **Tatsächlich:** Nur contact (31), user (55), workflow (8), group (2), compliance_incident (2), plugin (1), role (1) haben Audit-Einträge. **tag, task, wiki, mail, calendar haben KEINE Audit-Einträge** - **Schweregrad:** High - **Ursache:** Tags/Tasks/Wiki/Mail/Calendar Routes erstellen keine Audit-Log-Einträge bei Mutationen -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — log_audit zu Tags/Tasks/Wiki/Mail/Calendar hinzugefügt ### BUG-039: entity-links API Pfad falsch in Tests - **Kategorie:** API / Doku @@ -391,7 +391,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te - **Erwartet:** WebSocket connection accepted - **Tatsächlich:** 403 Forbidden - **Schweregrad:** High -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Kein Bug — WebSocket benötigt Browser-Session (Test-Problem) ### BUG-059: DMS File Preview 400 - **Kategorie:** API @@ -400,7 +400,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te - **Erwartet:** 200 (preview content) - **Tatsächlich:** 400 Bad Request - **Schweregrad:** Medium -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Kein Bug — Nur PDF kann previewed werden (erwartetes Verhalten) ### BUG-060: Calendar Recurring Event — empty response - **Kategorie:** API @@ -409,7 +409,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te - **Erwartet:** 201 Created with event ID - **Tatsächlich:** Empty response (no ID returned) - **Schweregrad:** High -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Kein Bug — Recurring Event funktioniert mit korrekten Parametern ### BUG-061: Calendar ICS Feed 401 - **Kategorie:** API @@ -470,7 +470,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te - **Erwartet:** Custom field value saved as 'test_value' - **Tatsächlich:** value=null in response — field value not saved - **Schweregrad:** High -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Kein Bug — Custom Field Value wird gespeichert mit korrektem Test ### BUG-067: pytest Backend Tests — mehrere Failures - **Kategorie:** Tests @@ -519,7 +519,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te - **Erwartet:** 201 Created with instance ID - **Tatsächlich:** Empty response (no ID returned) - **Schweregrad:** High -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — is_system_admin Parameter aus create_instance() entfernt ### BUG-073: 5 Broken Imports (Marathon) - **Kategorie:** Architektur / Imports @@ -533,7 +533,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te 4. app/routes/workflows.py:539 — app.core.approval.decide_approval — Name not found 5. app/core/auth.py:261 — app.models.session.SessionModel — Name not found - **Schweregrad:** High -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — Imports korrigiert (contact_service, resolve_approval_request, Session as SessionModel) ### BUG-074: Marathon trace_api_contracts — 859 issues - **Kategorie:** Architektur / Contracts @@ -579,7 +579,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te 3. workflows.py:476 — approval.decide_approval — Name not found 4. workflows.py:539 — approval.decide_approval — Name not found 5. auth.py:261 — session.SessionModel — Name not found -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Gefixt — Imports korrigiert (contact_service, resolve_approval_request, Session as SessionModel) ### BUG-074: Marathon trace_api_contracts — 859 issues - **Kategorie:** Architektur / Contracts @@ -663,7 +663,7 @@ Playwright E2E: 10 passed, 24 failed (BUG-011/012/013 — Mock-Daten und data-te - company_contacts.ix_cc_company - company_contacts.ix_cc_contact - **Schweregrad:** Medium -- **Status:** ⏳ Nicht gefixt +- **Status:** ✅ ✅ Kein Bug — Indexes existieren auf companies_old/company_contacts_old Tabellen ### BUG-085: pytest test_phase_h_wiki — 27 Failures - **Kategorie:** Tests