Wiki/bridge
Corentin JOGUET 7a3fbe455d
Some checks are pending
CI / Lint bridge (Biome) (push) Waiting to run
CI / Type-check bridge (push) Blocked by required conditions
CI / Tests unit bridge (push) Blocked by required conditions
CI / Tests integration bridge (push) Blocked by required conditions
CI / Security scan (push) Waiting to run
CI / Docker build + healthcheck (push) Blocked by required conditions
fix(bridge): smoke test fixes — skip rows malformees + BASEROW_TABLE_IDS override
Decouverts via smoke test local contre Baserow + Docmost reels.

1. **BaseRepo.list robuste** : try/catch toDomain par row, skip + log warn
   si throw (ex Personne avec splits null != 100). Avant : 500 sur la liste
   entiere. Apres : 200 avec items valides + meta.skipped count pour visibilite.
   `get()` continue de propager (un get sur row corrompue = legitimement 500
   pour investigation manuelle).

2. **BASEROW_TABLE_IDS env override** : BaserowClient.resolveTableIds appelle
   /api/database/tables/database/:id/ qui requiert un JWT user (Baserow API
   distingue DB tokens reservees aux endpoints rows, et JWT pour les endpoints
   admin). En dev/prod simple on passe le mapping directement par env var :
   BASEROW_TABLE_IDS={"personne":609,"formation":610,...}. Le code resolveTableIds
   reste en place pour Phase 3+ (bridge avec JWT user).

Smoke test post-fix :
- GET /api/health, /api/ready : 200
- Auth : 401 absent / 401 invalide / 200 valide
- GET /personnes (rows test invalides) : 200 data:[] meta.skipped:2
- GET /formations, /projets : 200 avec rows
- GET /personnes/9999 : 404

Tests Vitest : 163/163 verts. tsc + biome ci verts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 20:09:27 +02:00
..
src fix(bridge): smoke test fixes — skip rows malformees + BASEROW_TABLE_IDS override 2026-05-07 20:09:27 +02:00
tests feat(bridge): bloc 3 — routes REST Tier 1 + auth + repos Baserow (10 endpoints) 2026-05-07 20:01:36 +02:00
.env.example chore: initial commit — formation-hub conception phase 2026-05-07 12:16:19 +02:00
.gitignore chore: initial commit — formation-hub conception phase 2026-05-07 12:16:19 +02:00
biome.json chore: initial commit — formation-hub conception phase 2026-05-07 12:16:19 +02:00
Dockerfile chore: initial commit — formation-hub conception phase 2026-05-07 12:16:19 +02:00
package-lock.json feat(bridge/adapters): bloc 1 propre — BaserowClient + DocmostClient + RedisCache 2026-05-07 19:39:58 +02:00
package.json feat(bridge/adapters): bloc 1 propre — BaserowClient + DocmostClient + RedisCache 2026-05-07 19:39:58 +02:00
tsconfig.json chore: initial commit — formation-hub conception phase 2026-05-07 12:16:19 +02:00
vitest.config.ts feat(bridge/domain): bloc 2 — domain models + tests Vitest (coverage 97.86%) 2026-05-07 19:48:22 +02:00