Test stopping an incident
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 86/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
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 の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 1
- 平均マージ
- 1時間 11分
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SolidGeeks/muster のほかの issue
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
SolidGeeks/muster#16 ·
メンテナーはふだん 1 日以内に返信
SolidGeeks/muster の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
keptinventory/kept#336 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
hemi-earn
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vetro-protocol/vetro-monorepo#1013 ·
メンテナーはふだん 1 日以内に返信