Add severity filtering to the incidents API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
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
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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hrittijab/SecureOps
-
enhancement good first issue help wanted python streaming
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
enhancement good first issue help wanted java
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
good first issue help wanted java testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
help wanted java testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
dashboard enhancement good first issue help wanted python
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Tutte le issue di hrittijab/SecureOps
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bad-antics/lateralus-lang#1623 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
fossguild/thelifesnake#82 ·
I maintainer di solito rispondono entro 1 giorno
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorApertagood first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pietbarber/Manage2Soar#1189 ·
I maintainer di solito rispondono entro 1 giorno
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinatesForse già presa @dtgaebe l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sandialabs/WecOptTool#467 ·