Repository navigation
feat(admin): show local or remote stream location - #1330
Conversation
…dmin-stream-location
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (33)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
@greptile review |
|
@greptileai please re-review the latest commit so this PR has a current-head review after the shared audio-only bitrate regression test was added. |
Declare the nonnegative limit in response schemas and reject fractional group-editor input without changing the saved value. Update the OpenAPI artifact and add focused UI coverage.
Choose a direct-playable version within the server cap for unqualified static requests, including session reuse. Keep explicit source selection and its over-limit rejection unchanged.
Quick104
left a comment
There was a problem hiding this comment.
Reviewed the activity layer of the stack (086d21e2..755136ae) at 755136ae, tracing native start, Jellyfin PlaybackInfo, session sync, and recipe-card reconstruction. One P2 finding is inline. I'm pushing the fix to this branch and will follow up with a summary.
AI-assisted review: Claude Opus 5.5 (claude-opus-5-5) in Claude Code, run for @Quick104.
The v1 bridge shares AdminPlaybackSessionFeatures with v2, so /api/v1/admin/sessions/capabilities advertised stream_location even though v1 rows never serialize it. Advertise the field only from the v2 capabilities endpoint, which already sets it directly. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Review summary: activity layer ( Fixed
Checked; no change needed
Validation
Remaining condition
Mergeability: 8/10 (conditional) at AI-assisted review: Claude Opus 5.5 ( |
Resolve the contract_digest conflict in get_system_info_ok.json by regenerating the v2 fixtures after Silo-Server#1322 and Silo-Server#1327 merged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Important
Part 3 of 3 — review and merge in order. #1322 Remote per-stream bitrate → #1327 Local per-stream bitrate → #1330 Activity Local/Remote label.
This PR depends on #1327 and #1322 and should merge after both. Its upstream Files changed view includes the two predecessor PRs because GitHub compares fork-head PRs with main. Review the activity-only diff for the smaller change in this layer.
Problem
Related issue: #1328
Admin Activity currently shows the access-network route but not whether the server classified each playback stream as local or remote. Administrators need that classification to verify which bitrate policy applies.
Approach
Depends on #1327 and #1322. This branch includes both preceding PRs in its diff against upstream
mainuntil they land; the activity-specific change adds a shared local/remote classifier, persists the bitrate-policy classification chosen at native playback start or Jellyfin PlaybackInfo, exposesstream_locationand its capability flag in the v2 admin contract, and displays a Local or Remote badge for each stream. Provider ingress and unknown addresses classify as remote, matching bitrate enforcement. Later media requests and policy edits do not change the stored classification or interrupt playback.Validation
git diff --check.dda71aaf: the v1 bridge's/api/v1/admin/sessions/capabilitiesno longer advertisesstream_location, which v1 rows never return. The flag stays on the v2 capabilities endpoint. The handler capability test, focused Go and web tests, and changed-line lint pass.Risks
A migration adds the stored policy location to live session observations. No playback route changes. Legacy sessions without captured policy location fall back to the existing network metadata, treating unknown addresses as remote. The API adds a required response field and a capability flag; clients that ignore unknown fields remain compatible.
Checklist
AI Disclosure
claude-opus-5-5) in Claude Code wrote commitdda71aafduring maintainer review.Summary by CodeRabbit
New Features
Documentation