Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Test stopping an incident

クローズ 初心者向け
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend, testing

調査の方向性

apps/api/src/routes.ts の /api/incidents/:id/stop ルートと mutate() を読み、その後 packages/core/src/incident.ts の stopIncident() を確認してください。tests/api.test.mjs にある incident 宣言の例に従い、停止レスポンス、繰り返しの停止、viewer と不明な incident、および停止後の Markdown レポートのステータスをテストに追加してください。これらの期待値が npm test で満たされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
0
フォーク
1
平均マージ
1時間 11分
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SolidGeeks/muster のほかの issue

SolidGeeks/muster の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。