Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

🤖 drafts: empty-row edge cases in creation draft list cleanup (deferred from #5232)

Abierto
#5,239 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
backend

Línea de trabajo

Read src/node/services/draftService.ts, focusing first on deleteProjectDrafts, putListEntry, importLegacyList, and collectOrphanedCreationDrafts, along with the referenced review threads. Verify both re-added-project cleanup and orphan-directory failures leave no empty listed draft rows, while preserving the existing lock order and cleanup behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

backlog

Deferred from the #5232 round-4 review (creation draft list on the backend, src/node/services/draftService.ts). Both are narrow cases in project-removal cleanup that leave or drop an empty listed draft row; no typed input is involved. The coordinator stopped the review loop on #5232 after round 4 and deferred them here.

  1. Re-added project vs. removal cleanup (thread on deleteProjectDrafts). If the same project path is registered again while deleteProjectDrafts holds the project's drafts dir lock, putListEntry (which takes only the list lock) can list a new empty draft that the cleanup's delisting then removes. Fix shape: have putListEntry/importLegacyList take the project dir lock too (dir lock, then list lock, the existing order), or record a project generation and delist only rows older than the removal.
  2. List GC stops at the first failing orphan dir (thread on collectOrphanedCreationDrafts). If clearing one orphan project dir throws, the outer catch skips removeUnownedListEntries, so empty rows of unconfigured projects stay until the next start (and show again if that path is re-added). Fix shape: catch per directory, or run the list cleanup as its own guarded step.

Refs #5225


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $31.20

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
139
Merge medio
6 h 58 min
PR fusionados (30 d)
774

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de coder/xum

Todos los issues de coder/xum

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.