Add severity filtering to the incidents API

Aperta
#9 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

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.

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

Descrizione

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.
Lingua principale
Python
Stelle
1
Fork
3
Merge medio
47m
PR unite (30g)
4

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 hrittijab/SecureOps

Tutte le issue di hrittijab/SecureOps

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.