Add readiness endpoint to the dashboard API
まだ誰も着手していません。
評価
調査の方向性
dashboard_api/main.pyから始めて、既存のhealthエンドポイントがどのように定義され、セキュリティレポートにどのようにアクセスするかを確認してください。受け入れ基準に記載されたGET /api/readyの動作を追加し、その後、有効なレポート、欠落したレポート、無効なレポート、およびhealthの動作が維持されることを確認する自動テストを追加してください。準備状態が指定どおり200または503を返し、ファイルシステムの詳細を公開しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
The existing health endpoint returns a successful response even when the security report is unavailable.
This makes it difficult to distinguish a running API from one that is ready to serve incident data.
Suggested Implementation
Introduce a separate readiness endpoint that checks whether the security report is available and readable.
Relevant File
dashboard_api/main.py
Acceptance Criteria
- Add a GET /api/ready endpoint.
- Return HTTP 200 when the report is available and valid.
- Return HTTP 503 when the report is missing or invalid.
- Preserve the existing health endpoint behavior.
- Avoid exposing sensitive filesystem details.
- Add automated tests.
- 主要言語
- Python
- スター
- 1
- フォーク
- 3
- 平均マージ
- 47分
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hrittijab/SecureOps のほかの issue
-
enhancement good first issue help wanted python streaming
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
enhancement good first issue help wanted java
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
good first issue help wanted java testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
help wanted java testing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
dashboard enhancement good first issue help wanted python
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
hrittijab/SecureOps の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bad-antics/lateralus-lang#1623 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
fossguild/thelifesnake#82 ·
メンテナーはふだん 1 日以内に返信
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pietbarber/Manage2Soar#1189 ·
メンテナーはふだん 1 日以内に返信
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinates対応中かも @dtgaebe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sandialabs/WecOptTool#467 ·