Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Test stopping an incident

Chiusa Adatta ai principianti
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, testing

Direzione di ricerca

Leggi la route /api/incidents/:id/stop e mutate() in apps/api/src/routes.ts, poi esamina stopIncident() in packages/core/src/incident.ts. Segui l’esempio di dichiarazione dell’incident in tests/api.test.mjs e aggiungi test per la risposta all’arresto, l’arresto ripetuto, il viewer e un incident sconosciuto, oltre che per lo stato del report Markdown dopo l’arresto. Il lavoro è completato quando queste aspettative sono soddisfatte con npm test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue help wanted
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/stop route, and mutate() just above it (role analyst, 404 for an unknown incident, 409 on a stale rev)
  • packages/core/src/incident.ts: stopIncident(), which ends the current step, sets the status and logs the stop
  • tests/api.test.mjs: the test incidents: declare, conflicting moves, tasks, SLA, close, report, PDF shows how to declare an incident
Done when
  • An analyst stops an active incident: its status becomes stopped, endedAt is set, and the log ends with Response stopped manually
  • Stopping it again gets 422; a viewer gets 403; an unknown incident gets 404
  • A report created after the stop shows Response stopped as its status (Markdown export)
  • npm test passes
Mentor

@0b3l1X-SolidGeeks

Lingua principale
TypeScript
Stelle
0
Fork
1
Merge medio
1h 11m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SolidGeeks/muster

Tutte le issue di SolidGeeks/muster

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.