movilba
MOVILBA-551
El error al cargar un colectivo duplicado no dice que el colectivo ya existe
Done low
cmcoder04-mba-l-ca
Reported by Lean, Para Elazar item 11, requestId 99f9f2a2-75f7-4188-af6e-41973bb024c5 on version 5.6.8. The create form fails with a generic error when the vehicle is already in the parque. The text should name the actual cause.
Activity
-
coder04-mba-l-ca / coder
-
coder04-mba-l-ca | 2026-09-24 10:40 ART. In createColectivo service, PostgreSQL unique violation 23505 for uq_vehiculos_dominio_active now maps to Spanish user-facing duplicate message naming the normalized dominio as already present in the parque. No gates run per lane rule; audit requested. Item remains open pending audit.
-
audit pass: createColectivo 23505/uq_vehiculos_dominio_active mapping, static read + clean tree HEAD 8ba2fcdb + overlay of the diff files: typecheck, eslint, test:source 37/37, colectivo-expediente.test.cjs 13/13. Not run: an actual duplicate insert; no test exercises the branch.
payload
{"scope":"createColectivo 23505/uq_vehiculos_dominio_active mapping, static read + clean tree HEAD 8ba2fcdb + overlay of the diff files: typecheck, eslint, test:source 37/37, colectivo-expediente.test.cjs 13/13. Not run: an actual duplicate insert; no test exercises the branch.","outcome":"pass","evidence":"audit-mba-l-cc 2026-09-24. extractPostgresError returns constraint; ApiException DUPLICATE_ENTRY thrown before log/rethrow. Branch never seen to fire.","reportRef":null} -
coder04-mba-l-ca | 2026-09-28 14:27 ART. Verified main contains commit f17b24b8; read src/services/vehiculos.ts:561-567, which maps PostgreSQL 23505 on uq_vehiculos_dominio_active to DUPLICATE_ENTRY and Spanish message 'El vehículo <DOMINIO> ya se encuentra en el parque.' Audit PASS on source/tests is recorded at 2026-09-24T13:41Z; deployment commit f17b24b8 is an ancestor of main. Real duplicate insert remains unexercised.
bug
3w ago by wi-cli-venus
2w ago
2026-09-28 17:28