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

Which tree and which board a dashboard user opens

Aperta
#2,152 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start with #2144 and the request handlers for /api/tree/<tree_name>// and /api/hardware/<hardware_id>/. Check how existing endpoint counts are recorded, then trace the client value for dashboard and kci-dev requests. Done means the three listed request cases increment the specified counters with the expected labels and tests verify their IDs and clients.

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

Descrizione

Problem

Endpoint counts show treeDetailsView and hardwareDetails, not which tree or which board. Don asked which trees and which boards the community actually opens. kci-dev hits a fixed list of boards on a schedule, so that traffic has to stay separable from a person opening a page.

Proposal

Depends on #2144 for client. Record two counters. Take the ids from the request.

  • dashboard_tree_requests_by_client_total, labels tree_id and client. tree_id is {origin}:{tree_name}/{branch}, from the path /api/tree/<tree_name>/<branch>/… and the origin query parameter.
  • dashboard_hardware_requests_by_client_total, labels hardware_id and client. The hardware id on /api/hardware/<hardware_id>/….

The board can show every client, or only client="dashboard".

Tests

  • Chrome on /api/tree/mainline/master?origin=maestro increments dashboard_tree_requests_by_client_total for tree_id="maestro:mainline/master" and client="dashboard".
  • Chrome on /api/hardware/<hardware_id>/ increments dashboard_hardware_requests_by_client_total for that id and client="dashboard".
  • kci-dev/<version> on those URLs increments the same counters with client="kci-dev".
Lingua principale
Python
Stelle
9
Fork
31
Merge medio
5g 22h
PR unite (30g)
19

Preparare l'ambiente

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 kernelci/dashboard

Tutte le issue di kernelci/dashboard

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.