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

Add --start-date and --end-date support

Đã đóng
#316 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
68/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
api, cli, documentation, testing

Hướng nghiên cứu

Bắt đầu từ lệnh kci-dev results issues và kiểm tra cách tùy chọn --days hiện có của lệnh này đến được dashboard API. Bổ sung kiểm thử pytest cho các trường hợp phạm vi ngày hợp lệ và không hợp lệ được liệt kê, bao gồm cả hai định dạng đầu ra. Công việc được xem là hoàn tất khi các tùy chọn ngày đi theo cặp và đã được xác thực hoạt động với dấu thời gian có múi giờ, các xung đột và lỗi được nêu rõ, --days vẫn tương thích, đồng thời phần trợ giúp, tài liệu và ví dụ được cập nhật.

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

Mô tả

enhancement

The KernelCI dashboard allows users to select exact custom date ranges for issue listings. However, kci-dev results issues currently supports only --days.

As a result, dashboard-generated kci-dev commands must round custom ranges up to a whole-day duration. These commands cannot reproduce the exact start and end boundaries selected in the dashboard.

Add the following options to kci-dev results issues:

--start-date
--end-date

Requirements:

Accept YYYY-MM-DD dates and timezone-aware ISO 8601 timestamps.
Pass the corresponding exact boundaries to the dashboard API.
Require --start-date and --end-date to be used together.
Reject a range where the start is later than the end.
Make an explicit date range mutually exclusive with --days.
Preserve the existing --days behavior for backward compatibility.
Return clear usage errors for invalid or incomplete ranges.
Support the new options with both human-readable and JSON output.
Update command help, documentation, and examples.
Add pytest coverage for valid ranges, timestamps with timezones, invalid values, reversed ranges, incomplete pairs, and conflicts with --days.

Example:

kci-dev results issues
--origin maestro
--start-date 2026-08-01T00:00:00Z
--end-date 2026-08-08T00:00:00Z

Once implemented, the KernelCI dashboard can generate commands that reproduce custom issue-listing date ranges without rounding or reporting omitted timestamp boundaries.

Ngôn ngữ chính
Python
Star
10
Fork
12
Merge trung bình
14 giờ 42 phút
Pull request đã merge (30 ngày)
5

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/kci-dev

Tất cả issue của kernelci/kci-dev

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.