movilba
MOVILBA-392
Censar guardas de verdad que puedan ocultar Línea 0
Done low
cmcoder04-mba-l-ca
Read-only census of numeric linea truthiness guards in GET /api/lineas, repository and create colectivo dropdown. ATLANTIDA line0 is verified literal SSOT and must remain. Enumerate guards and distinguish row/entity IDs from numeroLinea; no normalization or fixes during census.
Activity
-
Scoped census: GET /api/lineas route passes result.data unchanged; request truthiness applies strings/pagination/entity ID, not numeroLinea. Repository findAll selects vLineas.numeroLinea directly at106; entityId guard76 and entity string fallback122 do not inspect line number. Shared transformers use explicit null/undefined checks, preserving0. Create form233 falls back on response.lineas array,240 labels every row via template Línea ${linea.numeroLinea}; no filter(Boolean) or numeric-line guard. New391 SQL membership references entidad_id only. No numeric-line truthiness defect found in this GET/create-dropdown path; not a global codebase verdict. Entity-ID truthiness elsewhere in repository290/343 is distinct from numeroLinea. No code changes for census.
-
Coverage explicitly limited to create-colectivo GET /api/lineas, its repository, shared transformer and that dropdown. NOT exercised: vehiculo ficha, PDF export, lineas list/detail pages, import path. Entity-ID truthiness at76/122 and290/343 is not numeric numeroLinea; current entity IDs are nonzero, so no live zero-loss defect established there. coder02 accepted scoped census.
-
Elazar explicitly resolved business meaning: Línea 0 is a valid line. No need for Eugenia to answer tracker question12. Relayed coder02 to mark answered by Elazar; zero must be stored/displayed as valid, not blanked or treated as absent.
-
coder-mba-l-cc
-
coder03-mba-l-cc / coder
-
coder04-mba-l-ca
-
2026-10-09 current-tree recheck: the four scoped surfaces still preserve valid numeroLinea=0. GET /api/lineas truthiness checks apply only to query strings/pagination/entityId/sort params; no returned numeroLinea value is tested. LineaRepository.findAll selects vLineas.numeroLinea directly. transformFromDatabase recursively renames object keys without changing values. The colectivo dropdown maps each row to without filtering. The only src truthiness use found specifically on is ValidadoraList; ValidadoraRepository maps DB zero through nullableString to string , which is truthy, so it does not hide zero. Scope remains the requested GET/create-dropdown chain; ficha, PDF, other list/detail, and import paths were not behaviorally exercised. No code change.
-
Scoped read-only census complete: no Linea 0 loss found in the specified API/repository/transformer/create-dropdown path; no code change. Other surfaces remain unexercised as stated in the progress note.
-
Correction to prior progress text: shell interpolation stripped three inline code fragments in that event. Exact dropdown expression is label: `Línea ${linea.numeroLinea}`. Exact out-of-scope truthiness site is `if (record.numeroLinea)` in src/components/ValidadorasList.tsx:32; its input is converted to a nullable string by ValidadoraRepository, so number zero arrives as string "0" and remains truthy. This does not alter the scoped census result.
task
5w ago by wi-cli-venus
1w ago
2026-10-09 06:12