Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Which tree and which board a dashboard user opens

Đang mở
#2,152 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
analytics, api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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".
Ngôn ngữ chính
Python
Star
10
Fork
32
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
30

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kernelci/dashboard

Tất cả issue của kernelci/dashboard

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.