Repository navigation
Playlist generator: remove the Inserts step - #42
epell-development wants to merge 3 commits into
Conversation
Generator inserts (jingles, adverts, talk and time announcements on their own schedule) doubled up with the advertisement scheduler's rules, which already fire while a generated playlist plays. The Inserts section is gone from the generator window and the web portal, generate() returns plain tracks, and "Preview and generate" is now step 4. Templates saved with inserts still load: the old "markers" field is ignored (new test), and is dropped the next time settings are saved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016m2QHVXdQJrUq7pCLfKSXk
There was a problem hiding this comment.
MergeGuard review
Risk: 🟠 35/100 — moderate
Findings: 🟠 1 medium
Open Files changed for 1 inline review thread on the diff.
💡 Use the Fix All MergeGuard Findings checkbox comment on this PR to apply auto-fixes in batch, or reply
@mergeguards fixon any inline finding.
Reviewed by MergeGuard AI
MergeGuard agent actionsFix all findingsAll issues (1)
Apply auto-fixes for the findings above on this branch:
Or reply with |
…e.json) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016m2QHVXdQJrUq7pCLfKSXk
There was a problem hiding this comment.
MergeGuard review
Risk: 🔴 60/100 — risky
Findings: 🔴 1 high
Open Files changed for 1 inline review thread on the diff.
💡 Use the Fix All MergeGuard Findings checkbox comment on this PR to apply auto-fixes in batch, or reply
@mergeguards fixon any inline finding.
⚠️ This PR may benefit from a deep scan — consider triggering@mergeguards deep-scan.
Reviewed by MergeGuard AI
…e.json) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016m2QHVXdQJrUq7pCLfKSXk
There was a problem hiding this comment.
MergeGuard review
Risk: 🟠 35/100 — moderate
Findings: 🟠 1 medium
Open Files changed for 1 inline review thread on the diff.
💡 Use the Fix All MergeGuard Findings checkbox comment on this PR to apply auto-fixes in batch, or reply
@mergeguards fixon any inline finding.
Reviewed by MergeGuard AI
Requested by epell · project thread
Why
Step "4. Inserts" in the playlist generator put jingles, adverts, talk and time announcements into the generated playlist on their own schedule. The advertisement scheduler's rules also fire while that playlist plays, so the same breaks went in twice.
What changed
generate()now returns plain tracks;Gen,TIME_SOURCE,next_dueand the insert loop are removed.source_combono longer offers a time announcement.MarkerandTemplate::markersare removed. Settings saved with inserts still load (serde ignores the old field; new testtemplates_saved_with_inserts_still_load), and the field drops off at the next save.lang/template.jsonregenerated.Checks
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(all pass, run three times)tools/smoke_server.sh target/debug/RadioMaster-Serverpassedtools/build_site.py+tools/check_site.py: all links resolveNo CHANGELOG entry yet; it can go in with the next release prep.
Generated by Claude Code