40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
TASK: Limit CTS Fetch to Next 10 Services
|
|
DATE: 2026-03-02
|
|
STATUS: PASSED
|
|
|
|
CHANGE IMPLEMENTED:
|
|
File: /Users/thorsten/AI/cts-work/app/Services/ChurchToolsService.php
|
|
Method: fetchEvents() (lines 154-165)
|
|
|
|
BEFORE:
|
|
return EventRequest::where('from', Carbon::now()->toDateString())->get();
|
|
|
|
AFTER:
|
|
return EventRequest::where('from', Carbon::now()->toDateString())
|
|
->where('to', Carbon::now()->addMonths(3)->toDateString())
|
|
->get();
|
|
|
|
TEST RESULTS:
|
|
✓ All 182 tests passed
|
|
✓ 999 assertions passed
|
|
✓ Duration: 3.89s
|
|
|
|
TEST SUMMARY:
|
|
- Unit Tests: 1 passed
|
|
- Feature Tests: 181 passed
|
|
- No failures or errors
|
|
|
|
KEY TESTS VERIFIED:
|
|
✓ ChurchToolsSyncTest - cts:sync synchronisiert services
|
|
✓ CtsApiSpikeTest - syncs mocked future events through CTS pipeline
|
|
✓ ServiceControllerTest - services index shows only today and future services
|
|
✓ All song matching, arrangement, and finalization tests pass
|
|
✓ All file upload and conversion tests pass
|
|
✓ All authentication and authorization tests pass
|
|
|
|
VERIFICATION:
|
|
- No changes to syncEvents(), upsertService(), or song matching logic
|
|
- No use of CTConfig::setPaginationPageSize()
|
|
- No existing services removed from DB
|
|
- API call now limited to 3-month window (next 10 services expected)
|