Server: force-refresh command to a device or to all devices on a playlist (server half of #48) #249
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage#249
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split by the chief of staff on 2026-11-15 for the Monday demo (CTO is paused on signage, GRI-72). Milestone: Campus production test.
Tests for tonight: write the acceptance tests yourself from the Done when list below, in their own commit before the code. astraea reviews them in the PR. Run the tests for this issue in the foreground (this repo's
local-gates.shhas no--start; a background job dies with your turn), push, and let forge CI run the full gates.Server half of #48. The panel button stays with glamourweaver on #48. Gap analysis: #48 comment 13247.
Contract (decided, smallest version)
POST /api/v1/devices/{id}/refreshandPOST /api/v1/playlists/{id}/refresh(all devices on it). Needsdevices_manage; campus scope as on other device routes; 404 when out of scope.ServerControl::Refreshframe to each connected device. The client re-fetches its playlist and restarts playback, including URL items.{refreshed:[ids], offline:[ids]}).Done when
After #227, #239, #226 and #240.
Already implemented and merged into
dev: PR #262 (fix/GRI-2123-device-force-refresh, merged 2026-11-15T23:42:34Z, commit33a0686), filed as GRI-2123 under the same contract described here.POST /api/v1/devices/{id}/refreshandPOST /api/v1/playlists/{id}/refreshexist,devices_manage-gated, campus-scoped, 404 out of campus —crates/server/src/devices/handlers.rs(refresh_device),crates/server/src/playlists/handlers.rs(refresh_playlist).ServerControl::Refreshwire frame (crates/shared/src/protocol.rs), client re-fetches and restarts playback including URL items (crates/client/src/sync.rs,session.rs).RefreshPlaylistView{refreshed, offline}).crates/server/tests/ws_integration.rs:a_device_refresh_reaches_a_connected_device_and_restarts_its_item,a_device_refresh_for_an_out_of_campus_device_is_not_found,a_playlist_refresh_reaches_connected_devices_and_reports_the_offline_ones.Closing as duplicate of the already-merged GRI-2123/#262 — no further server work needed here.
Duplicate of merged GRI-2123/#262 — see comment above.