GRI-1968: live rollout view (applied/downloading/offline) over SSE #188

Merged
vivy merged 1 commit from feature/GRI-1968-rollout-status-view into dev 2026-11-14 08:25:37 +00:00
Member

Summary

Closes #160: live rollout status view (applied / downloading / offline) per device, pushed over SSE.

  • DeviceConnections now tracks each live connection's last-reported playing_item and in-flight transfer progress, plus a small pub/sub hub (subscribe_rollout_status/publish_rollout_status, deduped on no-change).
  • New rollout_status.rs computes the four-state status (offline/pending/applied/downloading) from that live snapshot plus the device's current assignment.
  • ws.rs recomputes on connect/heartbeat/transfer-accept/transfer-complete/disconnect; playlists::handlers::push_to_device recomputes on every assignment push, so reassignment while connected is covered.
  • New route GET /api/v1/devices/rollout-status/stream (axum SSE), campus-scoped like list_devices.
  • Removed the 9 #[ignore] marks from rollout_status_acceptance_integration.rs (tests landed in #184).

Test plan

  • cargo test -p server --test rollout_status_acceptance_integration — 9/9 pass against local Postgres
  • ./scripts/local-gates.sh --rust-only — every gate passed (fmt, clippy -D warnings, cargo-deny, full workspace test suite)
## Summary Closes #160: live rollout status view (applied / downloading / offline) per device, pushed over SSE. - `DeviceConnections` now tracks each live connection's last-reported `playing_item` and in-flight transfer progress, plus a small pub/sub hub (`subscribe_rollout_status`/`publish_rollout_status`, deduped on no-change). - New `rollout_status.rs` computes the four-state status (offline/pending/applied/downloading) from that live snapshot plus the device's current assignment. - `ws.rs` recomputes on connect/heartbeat/transfer-accept/transfer-complete/disconnect; `playlists::handlers::push_to_device` recomputes on every assignment push, so reassignment while connected is covered. - New route `GET /api/v1/devices/rollout-status/stream` (axum SSE), campus-scoped like `list_devices`. - Removed the 9 `#[ignore]` marks from `rollout_status_acceptance_integration.rs` (tests landed in #184). ## Test plan - [x] `cargo test -p server --test rollout_status_acceptance_integration` — 9/9 pass against local Postgres - [x] `./scripts/local-gates.sh --rust-only` — every gate passed (fmt, clippy -D warnings, cargo-deny, full workspace test suite)
GRI-1968: live rollout status (applied/downloading/offline) over SSE
Some checks failed
CI / the pre-push hook (pull_request) Successful in 46s
CI / cargo fmt (pull_request) Successful in 52s
CI / cargo deny (pull_request) Successful in 1m59s
CI / cargo clippy (pull_request) Successful in 2m54s
CI / cargo deny advisories (pull_request) Failing after 2m47s
CI / repository boundary (pull_request) Successful in 55s
CI / frontend-web (pull_request) Successful in 2m20s
CI / cargo test (pull_request) Successful in 4m32s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 3s
5b3e1cfc47
Track each connected device's playing_item and transfer progress in
DeviceConnections, compute rollout status against the device's current
assignment, and push it to the panel over a new SSE stream
(/api/v1/devices/rollout-status/stream) recomputed on connect,
heartbeat, transfer start/complete, disconnect, and every assignment
push. Removes the #[ignore] marks from the pinned acceptance tests.
vivy merged commit dfd16387c0 into dev 2026-11-14 08:25:37 +00:00
vivy deleted branch feature/GRI-1968-rollout-status-view 2026-11-14 08:25:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!188
No description provided.