Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Provide one paginated connection for workloads without usable vulnerability data

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #552 di @ybelMekk — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
go
Ambito
api

Direzione di ricerca

Start by reading the team-workloads connection and its existing sbomStatus filter, then trace how v13s listings are sorted and paginated. The issue does not name files or tests, so locate the relevant connection tests and run them before making changes. Done means one snapshot produces an accurate, duplicate-free count and deterministic pagination for both statuses, with the specified processing-summary cases covered; pull request #552 is already open.

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

Descrizione

nais/console-frontend#650 currently combines NO_SBOM and PROCESSING by issuing two team.workloads requests. TeamWorkloadsFilter.sbomStatus accepts only one status, and the two calls to v13s are independent snapshots. A NO_SBOM -> PROCESSING transition can appear twice, inflate totalCount, and break keyed rendering. Some PROCESSING workloads already have usable current/previous-tag vulnerability summaries and belong in the priority groups instead.

Expose an additive, server-filtered team-workloads connection for workloads not represented by a usable vulnerability summary, including relevant NO_SBOM and PROCESSING rows. Filter from a single v13s listing/snapshot before sorting and slicing, return accurate totalCount, and retain the existing NAME/ENVIRONMENT ordering and tie-breaks. Keep the existing sbomStatus filter for current consumers.

Acceptance: tests for a status transition, processing with/without a usable summary, no duplicate IDs/counts, and deterministic pagination across both statuses. Once available, console-frontend can replace the two status queries and merge paginator. Related: nais/v13s#478 and nais/api#550.

Lingua principale
Go
Stelle
3
Fork
2
Merge medio
19h 14m
PR unite (30g)
31

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 nais/api

Tutte le issue di nais/api

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.