Skip to content

Fix/board type leases parsing - #165

Merged
ZR233 merged 2 commits into
mainfrom
fix/board-type-leases-parsing
Aug 3, 2026
Merged

Fix/board type leases parsing#165
ZR233 merged 2 commits into
mainfrom
fix/board-type-leases-parsing

Conversation

@ZCShou

@ZCShou ZCShou commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

YanLien added 2 commits August 3, 2026 10:01
Add optional `leases` field to `BoardTypeSummary` and introduce
`BoardLease` struct to capture per-board lease details (board_id,
date_begin, date_end). Extend `render_board_table` to show active
leases, with each lease on its own row and proper column alignment.
Handle responses without leases gracefully.
Add `format_local_time` utility to convert UTC timestamps to the local
time zone and apply it to lease expiry and auth token expiry displays
for better readability.
mai-team-app[bot]
mai-team-app Bot previously requested changes Aug 3, 2026

@mai-team-app mai-team-app Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该 PR 为 ostool board ls 增加每块板的租约列,并将租约和认证令牌的 UTC 到期时间格式化为本地时区。它改变了 CLI 与 ostool-server 的 board-types API 契约;虽然其他构建/运行路径看起来隔离,但租约展示依赖配套服务器提供新字段,当前并未实现。

CI:两个 check (stable, x86_64-unknown-linux-gnu) 均为成功,未发现由本 PR 导致的失败。本地已通过 helper 的 PR 版本核验、git diff --check;环境没有 cargorustcrustfmtclippy,因此无法运行 helper 建议的 cargo fmt --checkcargo clippy --manifest-path ostool/Cargo.toml --all-features -- -D warningscargo test --manifest-path ostool/Cargo.toml --all-features

此前没有 review 或 PR 评论需要处理。剩余阻塞问题见行内评论:服务端尚未生成 leases,因此该功能在仓库配套部署中不会显示实际租约。除该问题及相应端到端测试缺口外,未发现其他问题。

Powered by gpt-5.6-terra

Comment thread ostool/src/board/client.rs
@ZR233
ZR233 merged commit d02a5b2 into main Aug 3, 2026
2 checks passed
@ZR233
ZR233 deleted the fix/board-type-leases-parsing branch August 3, 2026 08:31
@github-actions github-actions Bot mentioned this pull request Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants