Add severity filtering to the incidents API

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api, backend

調査の方向性

Start with dashboard_api/main.py and trace how GET /api/incidents reads query parameters and returns incidents. Check the existing tests for this endpoint and how supported severity values are represented; add automated coverage for valid and invalid filters, no matches, and requests without a filter. Done when all acceptance criteria pass, including coordination with the pagination issue if needed.

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

説明

dashboard enhancement good first issue help wanted python

Problem

The GET /api/incidents endpoint currently returns all security incidents without filtering options.

Analysts may want to focus on incidents with a particular severity level.

Suggested Implementation

Add an optional severity query parameter to the incidents endpoint.

Relevant File

dashboard_api/main.py

Acceptance Criteria

  • Support filtering incidents by severity.
  • Validate supported severity values.
  • Return an empty list when no incidents match.
  • Preserve existing behavior when no filter is supplied.
  • Add automated tests.
  • Coordinate with the incident pagination issue if necessary.
主要言語
Python
スター
1
フォーク
3
平均マージ
47分
マージ済み PR(30日)
4

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

hrittijab/SecureOps のほかの issue

hrittijab/SecureOps の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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