GRI-1874: signage playlists (#16) #99

Merged
vivy merged 3 commits from feature/GRI-1874-signage-playlists into dev 2026-11-10 02:26:40 +00:00
Member

Signage #16: playlists.

  • GET/POST /playlists, GET/PATCH/DELETE /playlists/{id} — CRUD.
  • PUT /playlists/{id}/items — replace the item list wholesale.
  • POST /devices/{device_id}/playlist — assign a playlist to a device and push it.
  • crates/server/src/connections.rs (DeviceConnections) is the call site for Nyssa's #12 websocket session (not yet merged): registers device connections for push. With no live connection today, assignment is a no-op push and the device still picks up its assignment from device_playlist_assignments on its next connect.
  • All admin routes behind the existing session extractor from #10/#93.

Verified: cargo test unit suite green (91 tests incl. new playlist/connections tests), cargo clippy -D warnings clean, ./scripts/local-gates.sh --rust-only exit 0.

Follow-up, not in this PR: media upload buffers the whole file in memory (field.bytes(), 8 GiB limit) — fine for PDF/images, video should stream to a temp file. Noted separately, after this.

Signage #16: playlists. - `GET/POST /playlists`, `GET/PATCH/DELETE /playlists/{id}` — CRUD. - `PUT /playlists/{id}/items` — replace the item list wholesale. - `POST /devices/{device_id}/playlist` — assign a playlist to a device and push it. - `crates/server/src/connections.rs` (`DeviceConnections`) is the call site for Nyssa's #12 websocket session (not yet merged): registers device connections for push. With no live connection today, assignment is a no-op push and the device still picks up its assignment from `device_playlist_assignments` on its next connect. - All admin routes behind the existing session extractor from #10/#93. Verified: `cargo test` unit suite green (91 tests incl. new playlist/connections tests), `cargo clippy -D warnings` clean, `./scripts/local-gates.sh --rust-only` exit 0. Follow-up, not in this PR: media upload buffers the whole file in memory (`field.bytes()`, 8 GiB limit) — fine for PDF/images, video should stream to a temp file. Noted separately, after this.
GRI-1874: playlists CRUD, item assignment, device push stub (#16)
Some checks failed
CI / the pre-push hook (pull_request) Successful in 8s
CI / cargo fmt (pull_request) Successful in 13s
CI / cargo deny (pull_request) Successful in 1m21s
CI / cargo deny advisories (pull_request) Failing after 1m38s
CI / repository boundary (pull_request) Successful in 6s
CI / cargo test (pull_request) Failing after 5m46s
CI / cargo clippy (pull_request) Successful in 10m18s
CI / CI (pull_request) Has been cancelled
CI / Notify gate failed (pull_request) Has been cancelled
CI / frontend-web (pull_request) Has been cancelled
d9bd8ced32
GRI-1874: fix ambiguous created_at in playlists list query
Some checks failed
CI / the pre-push hook (pull_request) Successful in 4s
CI / cargo fmt (pull_request) Successful in 4s
CI / cargo deny (pull_request) Successful in 45s
CI / cargo deny advisories (pull_request) Failing after 56s
CI / repository boundary (pull_request) Successful in 9s
CI / cargo clippy (pull_request) Successful in 9m58s
CI / cargo test (pull_request) Successful in 10m37s
CI / frontend-web (pull_request) Successful in 9m47s
CI / CI (pull_request) Successful in 5s
CI / Notify gate failed (pull_request) Has been skipped
6608c71d2a
GET /playlists joined playlist_items for the item count, and the
LEFT JOIN made the unqualified created_at/updated_at columns from
PLAYLIST_COLUMNS ambiguous (playlist_items also has created_at).
Qualify every selected column with the playlists alias.
Merge remote-tracking branch 'origin/dev' into feature/GRI-1874-signage-playlists
Some checks failed
CI / the pre-push hook (pull_request) Successful in 5s
CI / cargo fmt (pull_request) Successful in 5s
CI / cargo deny (pull_request) Successful in 54s
CI / cargo deny advisories (pull_request) Failing after 54s
CI / repository boundary (pull_request) Successful in 19s
CI / cargo clippy (pull_request) Successful in 10m7s
CI / cargo test (pull_request) Successful in 10m39s
CI / frontend-web (pull_request) Successful in 9m46s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 3s
a96ae90aab
# Conflicts:
#	crates/server/Cargo.toml
#	crates/server/src/lib.rs
vivy merged commit 270975b29c into dev 2026-11-10 02:26:40 +00:00
vivy deleted branch feature/GRI-1874-signage-playlists 2026-11-10 02:26:41 +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!99
No description provided.