whisper-money/app/Http
Víctor Falcón 606093d311
fix: batch automation rule application (#435)
## Sentry
- Issue: PHP-LARAVEL-2C
- URL: https://whisper-money.sentry.io/issues/122336983/

## Root cause
Applying an automation rule to multiple transactions used
per-transaction `saveQuietly()` and `syncWithoutDetaching()`. Sentry
detected repeated transaction updates and pivot lookups/inserts on
`/settings/automation-rules/{automationRule}/apply`.

## Fix
- Added batched automation rule application for transaction collections.
- Bulk updates category changes in one query.
- Bulk inserts missing label pivots with `insertOrIgnore`.
- Reused batching from sync controller path and queued job chunks.

## Verification
- `vendor/bin/pint --dirty --format agent`
- `php artisan test --compact
tests/Feature/AutomationRuleApplicationTest.php`
2026-05-26 10:45:37 +02:00
..
Controllers fix: batch automation rule application (#435) 2026-05-26 10:45:37 +02:00
Middleware feat: keep past due subscriptions active (#416) 2026-05-22 10:19:11 +01:00
Requests Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
Responses fix: route new PWA guests to signup (#313) 2026-04-21 10:53:05 +01:00