Test stopping an incident
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 86/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Lee la ruta /api/incidents/:id/stop y mutate() en apps/api/src/routes.ts; después, examina stopIncident() en packages/core/src/incident.ts. Sigue el ejemplo de declaración de incident en tests/api.test.mjs y añade cobertura para la respuesta al detener, la detención repetida, el viewer y un incident desconocido, además del estado del informe Markdown después de detenerlo. El trabajo está terminado cuando esas expectativas se cumplen con npm test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The task
During an incident, Stop response ends it early (POST /api/incidents/:id/stop). It is not tested. Add a test that checks what stopping does, and what it refuses.
Where to look
apps/api/src/routes.ts: the/api/incidents/:id/stoproute, andmutate()just above it (roleanalyst,404for an unknown incident,409on a stalerev)packages/core/src/incident.ts:stopIncident(), which ends the current step, sets the status and logs the stoptests/api.test.mjs: the testincidents: declare, conflicting moves, tasks, SLA, close, report, PDFshows how to declare an incident
Done when
- An analyst stops an active incident: its
statusbecomesstopped,endedAtis set, and the log ends withResponse stopped manually - Stopping it again gets
422; aviewergets403; an unknown incident gets404 - A report created after the stop shows
Response stoppedas its status (Markdown export) -
npm testpasses
Mentor
@0b3l1X-SolidGeeks
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 1 h 11 min
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un 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 SolidGeeks/muster
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
SolidGeeks/muster#16 ·
Los mantenedores suelen responder en 1 día
Todos los issues de SolidGeeks/muster
Issues similares
-
Plugin: sheet music can't be scrolled by hand before playbackPosiblemente ocupada @snakajima la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
receptron/jinglescript#51 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 9 días
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openclaw/openclaw#186424 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
chore(worker): five module header comments describe the code from before later issues changed itAbiertoarea:dev U2-later
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bentleypark/aiwatch#1824 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Pal-AI-Lab/Coopanion#469 ·
Los mantenedores suelen responder en 1 día