Playlist shows the address of a website item instead of its name #320
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage#320
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?
Reported by the product owner on the live server (GRI-2051, 2026-11-18 09:16 UTC), with a screenshot: in Playlists → Am Playlist → Media, a website item shows its full address (
https://snor.kobam.be/public/digitalsignage/index.php?hash=…) instead of the name it has in the media library.Cause
urlplaylist item is stored withurlonly. It has nomedia_id, so it has no link back to the library item it came from (since the #302 fix the panel also sends it that way).itemFromWireinfrontend-web/src/api/httpPlaylistsApi.tsresolves the name aslibrary name by media_id || source_name || url. With nomedia_idand nosource_name, the address is all that is left.What is wanted
Proposed fix
urlplaylist item may keep themedia_idof its library item. The server checks that the media item iskind = urland that theurlmatches it (or takes theurlfrom it). Item withoutmedia_idstays valid for API clients.media_idon existingurlitems where exactly one library url item has the same address. Leave the rest as they are.media_idfor a url item added from the library; show name + small address line; name links to the library item. An item with no library link shows the address as now.media_idset to NULL (ON DELETE SET NULL).Acceptance