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

已关闭
#316 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
68/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

从 kci-dev results issues 命令开始,检查其现有的 --days 选项如何传递到 dashboard API。为列出的有效和无效日期范围用例添加 pytest 覆盖,包括两种输出格式。完成标准是:成对且经过验证的日期选项能够与带时区的时间戳配合工作,冲突和错误信息清晰,--days 保持兼容,并更新帮助信息、文档和示例。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
10
派生
13
平均合并
11 小时 10 分钟
30 天内合并 PR
7

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kernelci/kci-dev 的其他 Issue

查看 kernelci/kci-dev 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。