[Labs] Add a lab details API and lab filters on existing read endpoints
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 24/100
Direzione di ricerca
Start with the existing lab listing query, which defines the expected build, boot and test counts for one lab. The new details read joins labs on builds.lab_id and tests.lab_id and must not read the JSON lab fields in misc. The existing test.lab filter currently runs in Python after rows load; move it into SQL and keep its behaviour. Done when the counts match the listing row and query plans are checked.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Lab details
Add a read endpoint for one lab, keyed by labs.name, with the same origin and interval as the listing.
The response must match that lab's listing row (build, boot, and test status counts) and include the breakdown behind it: trees and hardware that contributed, with their status counts. An unknown lab, or a lab with no rows in the window, returns an empty result rather than an error.
Read labs through builds.lab_id and tests.lab_id. Do not add a misc->>'lab' or misc->>'runtime' fallback on this endpoint.
Lab filter on other views
Accept a lab on the tree, hardware, and issue read endpoints and apply it in the query, on both builds and tests. Rows with lab_id NULL do not match.
The existing test.lab filter runs in Python after the rows are loaded. Move that exclusion into SQL. Callers that already send test.lab should keep working.
Acceptance criteria
-
GETone lab by name, with origin and interval, returns build, boot, and test counts consistent with that lab's listing row, plus the trees and hardware behind those counts. - The details query joins
labsonlab_idand does not read the JSON lab fields. - Tree, hardware, and issue reads accept a lab and filter builds and tests in SQL.
- An existing
test.labrequest still filters, without loading the unfiltered window first. - Query plans for the details endpoint and the filtered reads are checked. A new index is added only if the current
lab_idindexes are not enough. - No dashboard UI.
- Lingua principale
- Python
- Stelle
- 10
- Fork
- 32
- Merge medio
- 4g 12h
- PR unite (30g)
- 23
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun 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 kernelci/dashboard
-
Frontend q4-plan
Difficoltà 2/5 Mezza giornata Idoneità per principianti 65/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
I maintainer di solito rispondono entro 4 giorni
-
Show the last hardware registry syncForse già presa @alanpeixinho l’ha presa 1 giorno fa. ApertaBackend Frontend q4-plan
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
kernelci/dashboard#2170 · 1 assegnatario ·
I maintainer di solito rispondono entro 4 giorni
-
[Labs] Design the lab details pageForse già presa @alanpeixinho l’ha presa 2 giorni fa. ApertaFrontend q4-plan
Difficoltà 5/5 3-5 giorni Idoneità per principianti 30/100
kernelci/dashboard#2168 · 1 assegnatario ·
I maintainer di solito rispondono entro 4 giorni
-
Backend Frontend q4-plan
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di kernelci/dashboard
Issue simili
-
docs: the dev-setup table and AGENTS.md name the reviewed_by guard that CI's Changelog job runsApertaarea: tools documentation good first issue ready for a contributor
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eyalgolan/statecraft-israel#873 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add cover art to song rowsApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno