Mapper: a project's saved log was reduced to one entry, possibly by a log write before the log had loaded
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 34/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, react
Línea de trabajo
Start in oclmap MapProject.jsx, reading fetchAndSetProject, projectLog and postProjectLogs and checking where projectLogsLoadedRef is set and read. Reproduce by delaying the logs/ response and taking a logged action before it returns. The fix also touches oclapi2 MapProjectLogsView.create. Done when a logged action taken before the load never removes saved project or row log entries, and its own entry survives the load.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
On staging on 2026-11-02 (Mapper 1.0.44), after AutoMatch and decisions, a project that was reopened and downloaded as CSV about a second later had only the downloaded entry in its saved log. Seen once; a rerun kept its entries. Found by the weekly staging run (OpenConceptLab/ocl_online#445).
Suspected cause, from reading the code; not reproduced. Opening a project loads logs/ in the background, but projectLog() doesn't wait for it: it POSTs the whole log as it has it so far, and the API replaces what's stored. The same POST carries the row logs, so they would be lost too.
Acceptance criteria
- Reproduce it by delaying the
logs/response and taking a logged action, or show the cause is something else. - A logged action taken before
logs/has loaded never removes saved project or row log entries. - That action's own entry is kept once the log has loaded.
Components: oclmap MapProject.jsx (fetchAndSetProject, projectLog, postProjectLogs; projectLogsLoadedRef already tracks the load) and oclapi2 MapProjectLogsView.create. Two ways to fix it: hold log writes until the load finishes, or have the API append.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 4
- Forks
- 2
- Merge medio
- 2 h 12 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenConceptLab/ocl_issues
-
component/fhir type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
OpenConceptLab/ocl_issues#3026 ·
-
component/api decision/human-review signal/needs-access signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenConceptLab/ocl_issues#3012 · 2 comentarios ·
-
component/design-system decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/docs
Dificultad 2/5 Medio día Aptitud para principiantes 70/100
OpenConceptLab/ocl_issues#2983 · 1 comentario ·
-
component/mapper decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenConceptLab/ocl_issues#2966 · 2 comentarios ·
-
component/mapper component/web decision/human-review signal/low-risk signal/needs-human signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
OpenConceptLab/ocl_issues#2920 · 1 comentario ·
Todos los issues de OpenConceptLab/ocl_issues
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
coder/claudecode.nvim#587 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
digitalbazaar/http-client#60 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fivetran/dbt_recurly#55 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
topmonks/hlidac-shopu#3687 ·
Los mantenedores suelen responder en 1 día
-
bug lane: fast
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
unicef/adt-studio#1109 ·
Los mantenedores suelen responder en 2 días