SetPower duration_s is accepted but dropped — "on for N hours" never auto-turns-off

オープン
#31 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
api, backend

調査の方向性

Read crates/api/src/control.rs:211-218 and crates/podd-core/src/frozen/manager.rs:288-289 to trace how duration_s reaches handle_command, then inspect the Frozen frame and bus.rs:48-50 snapshot field. Decide whether sessions should auto-expire or be documented as schedule-bound; done means the chosen behavior is implemented consistently and seconds_remaining reflects it if timed expiry is supported.

索引モデルが issue の本文から書いたものです。

説明

bug

PoddControl::set_power sends duration_s = 43200 for on / 0 for off (crates/api/src/control.rs:211-218), but handle_command explicitly ignores it: the comment at crates/podd-core/src/frozen/manager.rs:288-289 says "duration_s is not yet honored" and the Frozen frame only carries enabled+temp. So a side turned on stays on until the config schedule flips it (or forever if outside any window), rather than expiring after the session length. seconds_remaining in the snapshot is likewise always 0 (bus.rs:48-50). Either honor the duration with a timed auto-off or document that sessions are schedule-bound only.


Filed from a repo-wide code audit (working tree at bcad746).

主要言語
Rust
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GoogleBot42/podd のほかの issue

GoogleBot42/podd の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。