Reboot / Execute / SetSettings commands report success to the client but are silently dropped

Đang mở
#32 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
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
api, backend

Hướng nghiên cứu

Start in crates/podd-core/src/lib.rs:105-113 and trace how the dispatcher handles SetSettingsCbor, Reboot, Update, and Execute. Compare those paths with the API handlers in crates/api/src/handlers.rs:190-212 and control.rs:256-263 to understand how callers receive success. Decide what status callers should receive until these commands are implemented, then verify the affected API behavior.

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

Mô tả

bug

The API happily accepts these and returns success — post_jobs returns 204 for Job::Reboot (crates/api/src/handlers.rs:210-212), post_execute returns {success:true, message:"queued …"} (handlers.rs:190-195 via control.rs:256-263), and post_device_status forwards settings to apply_device_settings. But the dispatcher only logs them: Command::SetSettingsCbor, Reboot, Update, Execute all hit the not yet implemented // TODO(live-cutover) warn arms in crates/podd-core/src/lib.rs:105-113 and go nowhere. So the web UI's reboot button and the generic execute escape hatch are no-ops that look like they worked. (Update overlaps #1; Reboot/Execute/SetSettings do not.) Consider returning a not-implemented status until these are wired, so callers aren't misled.


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

Ngôn ngữ chính
Rust
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 GoogleBot42/podd

Tất cả issue của GoogleBot42/podd

Issue tương tự

Thêm issue về Rust

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.