Purge: refuse to purge a live post without confirmation
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- markdown, sqlite, typescript
Línea de trabajo
Start with purgePost in src/lib/server/content.ts, which deletes a post's rows, and check how the publish step decides what leaves the site. Add a guard that refuses to purge a live post unless it is unpublished or a confirmation is passed. The check goes in src/lib/server/content.check.ts: a live post without confirmation is refused, and a draft purges normally. Done when that check passes and the confirmation text says the page disappears at the next publish.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
purgePost in src/lib/server/content.ts removes a post's rows. When the post is live, the next publish removes it from the site with no status check, so one stray click can unpublish a page.
Scope
- Purging a live post requires it to be unpublished first, or an explicit second confirmation that names the consequence.
- The Publish view lists posts that will be removed from the site.
Acceptance criteria
- A check in
src/lib/server/content.check.ts: purging a live post without confirmation is refused; purging a draft works. - The confirmation text states that the page disappears from the site at the next publish.
Estimate: about 2 hours.
- Lenguaje dominante
- HTML
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 1 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 mrgnw/cfcms
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de mrgnw/cfcms
Issues similares
-
changelog investigate
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
ramnes/notion-sdk-py#454 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
anthropics/claude-agent-sdk-python#1509 ·
Los mantenedores suelen responder en 2 días
-
from-review-extraction priority: medium python severity:suggested
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
LearningCircuit/local-deep-research#8665 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
external feature request openai
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
langchain-ai/langchain#41853 ·
Los mantenedores suelen responder en 1 día