Route parity: parser frontend couvre aussi Promise.all/requestJson imbriqués #14

Closed
opened 2026-02-20 23:21:57 +00:00 by electron-rare · 2 comments
electron-rare commented 2026-02-20 23:21:57 +00:00 (Migrated from github.com)

Bug

Le parser scripts/check_web_route_parity.py ne capte pas certaines invocations requestJson(...) quand l'appel est dans un tableau Promise.all([...]) (forme requestJson(...),).

Impact

  • Sous-détection des routes frontend.
  • Warnings faux positifs sur des routes backend supposées non utilisées.
  • Gate moins fiable pour détecter des divergences réelles.

Correctif attendu

  • Parser robuste basé sur matching parenthèses (pas uniquement regex );).
  • Ajouter tests unitaires parser (cas direct + Promise.all + options method POST).
## Bug Le parser `scripts/check_web_route_parity.py` ne capte pas certaines invocations `requestJson(...)` quand l'appel est dans un tableau `Promise.all([...])` (forme `requestJson(...),`). ## Impact - Sous-détection des routes frontend. - Warnings faux positifs sur des routes backend supposées non utilisées. - Gate moins fiable pour détecter des divergences réelles. ## Correctif attendu - Parser robuste basé sur matching parenthèses (pas uniquement regex `);`). - Ajouter tests unitaires parser (cas direct + Promise.all + options method POST).
electron-rare commented 2026-02-20 23:23:43 +00:00 (Migrated from github.com)

PR de correction ouverte: https://github.com/electron-rare/RTC_BL_PHONE/pull/15 (parser parenthèses + tests unitaires parser + CI).

PR de correction ouverte: https://github.com/electron-rare/RTC_BL_PHONE/pull/15 (parser parenthèses + tests unitaires parser + CI).
electron-rare commented 2026-02-20 23:26:33 +00:00 (Migrated from github.com)

Corrigé via PR #15 (merge commit 9b2ae31) sur la branche d’intégration audit/telephony-webserver. Fermeture manuelle car base non default.

Corrigé via PR #15 (merge commit 9b2ae31) sur la branche d’intégration audit/telephony-webserver. Fermeture manuelle car base non default.
Sign in to join this conversation.