Commit Graph
4 Commits
Author SHA1 Message Date
patrickandClaude Sonnet 5 55d54e0ff0 fix(tests): expire_all() before DATEV bypass query to avoid stale identity map
Security Audit / Python Dependency Audit (push) Canceled after 0s
Security Audit / Node.js Dependency Audit (push) Canceled after 0s
Security Audit / Frontend Build (tsc + vite) (push) Canceled after 0s
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
2026-09-02 23:32:02 +02:00
patrickandClaude Sonnet 5 21b65087d3 fix(tests): re-set RLS bypass per transaction in coverage gap tests
Security Audit / Python Dependency Audit (push) Canceled after 0s
Security Audit / Node.js Dependency Audit (push) Canceled after 0s
Security Audit / Frontend Build (tsc + vite) (push) Canceled after 0s
SET LOCAL app.bypass_rls only holds for the current transaction; a prior
commit() silently re-enabled RLS, causing db.get(User/Company, ...) to
return None on the raw db_session (no app.company_id context).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
2026-09-02 23:31:20 +02:00
patrickandClaude Sonnet 5 dc4982bb37 fix(tests): year-boundary + response-shape issues in coverage gap tests
Security Audit / Python Dependency Audit (push) Canceled after 0s
Security Audit / Node.js Dependency Audit (push) Canceled after 0s
Security Audit / Frontend Build (tsc + vite) (push) Canceled after 0s
create_absence's warnings are discarded by the router (only approve_absence
passes them through AbsenceOut.warnings) — test now calls the service
directly and documents this as a separate finding. DATEV test kept within
a single year since absence_service._get_holiday_dates only looks up
holidays for start_date.year (cross-year ranges miss the boundary holiday).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
2026-09-02 23:30:35 +02:00
patrickandClaude Sonnet 5 cbb5f467fe test: gezielte Coverage-Tests für kritische Pfade in absence_service/report_service
Security Audit / Python Dependency Audit (push) Canceled after 0s
Security Audit / Node.js Dependency Audit (push) Canceled after 0s
Security Audit / Frontend Build (tsc + vite) (push) Canceled after 0s
Deckt Carryover-Expiry (Integrationspfad), kombinierte Teilzeit+Pro-rata-
Berechnung, FZA-Rückbuchung via Cancellation-Request-Flow, Zwei-Stufen-
Genehmigung inkl. Doppelgutschrift-/Schwellwert-Grenzfall, DATEV-Export
(Feiertag vs. Urlaub) und §3b-Zuschlagskategorisierung (Nachtschicht über
Mitternacht, Sonntag+Feiertag).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
2026-09-02 23:28:34 +02:00