From fe91b504dec074f0d48b8a064006a992ef282c56 Mon Sep 17 00:00:00 2001 From: semih Date: Sun, 20 Sep 2026 00:35:03 +0300 Subject: [PATCH] =?UTF-8?q?fix(pl24):=20VR7=20WMI'sini=20haritadan=20?= =?UTF-8?q?=C3=A7=C4=B1kar=20=E2=80=94=20PL24'te=20b=C3=B6yle=20bir=20mark?= =?UTF-8?q?a=20yok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Faz 2 / açık soru kapatıldı (analiz: /home/s/ss/plv2.md, bulgu types_wmi-04). Rapor "VR7 muhtemelen Citroën, peugeot_parts yanlış" diyordu ve doğrulama istiyordu. Canlı portal WMI servisi (2026-09-19, /pl24-wmi/ext/api/2.0/decode, pl24-wmidata kapsamlı token) kesin yanıtı verdi: HTTP 410 — "error resolving VIN: no brands found for WMI = VR7" Yani VR7 ne Peugeot ne Citroën: PL24'ün WMI veritabanında HİÇ YOK, tıpkı Tofaş NM4 gibi. Raporun önerisi (VR7 → citroen_parts) uygulansaydı hata aynen devam edecekti. Prod'daki 17 VR7 aracının tamamı model çözülmeden ("Peugeot Peugeot") ve 0 kategoriyle kaydedilmişti. Haritada tutmak yalnız her sorguda boşuna bir PL24 isteği üretiyor ve gerçek kaynağa (pcat/emex/vinpin) geçişi geciktiriyor — canlı gözlem: P4→P5 onarma denemesi de bu VIN'lerde "kayıt bulunamadı" ile düşüyor. Test: pl24.types.spec'e kapsam-dışı WMI kilidi (VR7 ve NM4 haritada olmamalı) + canlı doğrulanmış yönlendirmeler (JF1→subaru, ZAR→alfa, VXK→psa_opel). Co-Authored-By: Claude Opus 5 (1M context) --- .../src/integrations/pl24/pl24.types.spec.ts | 18 ++++++++++++++++++ apps/api/src/integrations/pl24/pl24.types.ts | 7 ++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/apps/api/src/integrations/pl24/pl24.types.spec.ts b/apps/api/src/integrations/pl24/pl24.types.spec.ts index dfd3144..260ad11 100644 --- a/apps/api/src/integrations/pl24/pl24.types.spec.ts +++ b/apps/api/src/integrations/pl24/pl24.types.spec.ts @@ -27,3 +27,21 @@ describe("PL24_WMI_SERVICE_MAP — Q6 routing additions", () => { } }); }); + +// PL24'te bulunmayan WMI'ler: haritada yer almamalı, yoksa her sorguda boşuna +// upstream isteği üretir ve gerçek kaynağa (pcat/emex/vinpin) geçişi geciktirir. +describe("PL24_WMI_SERVICE_MAP — kapsam dışı WMI'ler", () => { + it("VR7 haritada değil (canlı: HTTP 410 'no brands found for WMI = VR7')", () => { + expect(PL24_WMI_SERVICE_MAP.VR7).toBeUndefined(); + }); + + it("NM4 (Tofaş) haritada değil (canlı: HTTP 410)", () => { + expect(PL24_WMI_SERVICE_MAP.NM4).toBeUndefined(); + }); + + it("canlı doğrulanmış WMI'ler doğru katalogda", () => { + expect(PL24_WMI_SERVICE_MAP.JF1).toBe("subaru_parts"); + expect(PL24_WMI_SERVICE_MAP.ZAR).toBe("alfa_parts"); + expect(PL24_WMI_SERVICE_MAP.VXK).toBe("psa_opel_parts"); + }); +}); diff --git a/apps/api/src/integrations/pl24/pl24.types.ts b/apps/api/src/integrations/pl24/pl24.types.ts index a1034b7..eebea4a 100644 --- a/apps/api/src/integrations/pl24/pl24.types.ts +++ b/apps/api/src/integrations/pl24/pl24.types.ts @@ -675,7 +675,12 @@ export const PL24_WMI_SERVICE_MAP: Record = { // Peugeot (PSA) VF3: "peugeot_parts", // Peugeot SA (France) VR3: "peugeot_parts", // Peugeot (newer WMI) - VR7: "peugeot_parts", // Peugeot (newer WMI) + // VR7: PL24'ün WMI veritabanında HİÇ YOK — canlı doğrulama (2026-09-19, + // /pl24-wmi/ext/api/2.0/decode): HTTP 410 "no brands found for WMI = VR7", + // tıpkı Tofaş NM4 gibi. Önceden peugeot_parts'a yönlendiriliyordu; prod'daki + // 17 VR7 aracının hepsi model çözülmeden ("Peugeot Peugeot") ve 0 kategoriyle + // kaydedilmişti. Haritada tutmak yalnız boşuna PL24 isteği üretir ve + // pcat/emex/vinpin fallback'ini geciktirir. // Volvo YV1: "volvo_parts", // Volvo Cars (Sweden)