1
0
Fork 0
fahrPool/supabase/tests
Jonny 9f410cbe80 fix: remove photo-count check from DB trigger, photos now optional at Fahrtbeginn
- Add migration 20260818120000_auftrag_fotos_optional_trigger.sql that replaces
  check_auftrag_status_transition() function, removing ONLY the photo-count check
  while preserving all other validation (start_km, end_km, uebergabe_bestaetigt_at,
  status transitions, column lockdown, role-based restrictions)
- Update pgTAP test: plan(13) -> plan(12), replace photo-mandatory test with
  test verifying transition succeeds without photos
- Completes DB-level optional photos feature (app-level optional already done in Task 1)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-18 16:32:34 +02:00
..
arbeitszeiten_rls_test.sql fix: unify Zeiterfassung timezone display and add DB guard against double clock-in 2026-07-14 10:27:50 +02:00
auftraege_rls_test.sql fix: remove photo-count check from DB trigger, photos now optional at Fahrtbeginn 2026-08-18 16:32:34 +02:00
auftrag_fotos_rls_test.sql fix: allow schaden photos during unterwegs and close final-review gaps 2026-07-06 06:57:22 +02:00
orte_fahrzeuge_rls_test.sql test: add pgTAP coverage for orte/fahrzeuge RLS policies 2026-07-06 19:43:39 +02:00
profiles_rls_test.sql feat: allow disponent to see fahrer profiles for Kanban assignment 2026-07-07 15:35:40 +02:00