fix(02-bug-fixes): fix 3 known bugs from CONCERNS.md

Phase 02 plans 02-01, 02-02, 02-03:

- fix(02-01): dead condition in AllegroShipmentService ZPL page size
  Both ternary branches returned 'A6'; ZPL now correctly returns 'ZPL'

- fix(02-02): add last_status_checked_at cursor to AllegroStatusSyncService
  New migration adds orders.last_status_checked_at DATETIME NULL with
  composite index (source, source_updated_at). findOrdersNeedingStatusSync()
  filters by cursor; markOrderStatusChecked() records timestamp on success.

- fix(02-03): replace AllegroOrderSyncStateRepository in ShopproOrdersSyncService
  New ShopproOrderSyncStateRepository (same table, correct class name).
  Application.php wires correct repository to correct service.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 00:26:07 +01:00
parent f8db8c0162
commit 87203c4321
16 changed files with 1290 additions and 126 deletions

View File

@@ -13,7 +13,7 @@ final class ShopproOrdersSyncService
{
public function __construct(
private readonly ShopproIntegrationsRepository $integrations,
private readonly AllegroOrderSyncStateRepository $syncState,
private readonly ShopproOrderSyncStateRepository $syncState,
private readonly ShopproApiClient $apiClient,
private readonly OrderImportRepository $orderImportRepository,
private readonly ShopproStatusMappingRepository $statusMappings,