mitgliederverwaltung/lib/mv/membership_fees
Moritz 34aabaec47
All checks were successful
continuous-integration/drone/push Build is passing
refactor: reduce complexity of with_advisory_lock function
Split the complex with_advisory_lock function into smaller, focused
functions to improve readability and reduce cyclomatic complexity:

- with_advisory_lock_in_transaction: Handles case when already in transaction
- with_advisory_lock_new_transaction: Handles case when starting new transaction
- execute_within_transaction: Executes function within transaction
- normalize_fun_result: Normalizes function results to consistent format
- handle_transaction_result: Handles transaction results and sends notifications

This fixes Credo warnings:
- Function body nested too deep (was 3, now max 2)
- Function too complex (was 11, now max 9)
2025-12-15 12:41:25 +01:00
..
calendar_cycles.ex docs: fix CalendarCycles documentation to match actual implementation 2025-12-11 20:21:20 +01:00
cycle_generation_job.ex feat: implement automatic cycle generation for members 2025-12-11 21:26:58 +01:00
cycle_generator.ex refactor: reduce complexity of with_advisory_lock function 2025-12-15 12:41:25 +01:00