Add risk-score sorting to the incidents API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 64/100
Direzione di ricerca
Start in dashboard_api/main.py and trace how the incidents API currently applies filtering, pagination, and default ordering. Check the existing automated tests for those behaviors before adding risk-score sort coverage. Done means ascending and descending sorting work, missing or invalid scores behave consistently, and the default ordering remains unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The incidents API does not currently provide configurable sorting.
Security analysts may benefit from viewing higher-risk incidents first.
Suggested Implementation
Add optional sorting by risk score with ascending and descending ordering.
Relevant File
dashboard_api/main.py
Acceptance Criteria
- Support sorting by risk score.
- Support ascending and descending order.
- Handle missing or invalid risk scores consistently.
- Preserve the existing default ordering.
- Add automated tests.
- Coordinate with pagination and filtering changes.
- 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 ·