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

Aperta
#32 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GoogleBot42/podd

Tutte le issue di GoogleBot42/podd

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.