Repository navigation
webadmin: let owners allocate video ports, with bounded storage - #55
Merged
Merged
Conversation
DEFAULT_VIDEO_QUOTA_MB and seed_video_defaults() give an entry turning video on a 1 GB budget and 7-day retention when neither is set. suggest_video_ports() takes an avoid= callback so the web UI can skip ports another service on the host holds.
Owners get the port count, ports and video disk budget on their own page. A new port an owner chooses must be 40001 or above and not held by another service on the host; ports they already hold are kept, and admins may still choose any free port. The owner budget is capped at 4 GB, keeping a larger one an admin granted. Turning video or recording on seeds a 1 GB budget and 7-day retention (recordings share the log retention) if none is set. Because owners choose the port, the HLS proxy only relays a playlist or whole TS packets from it. A save that fails validation now re-renders what was submitted, and auto-refresh leaves it alone while the errors are shown. Help tooltips now show only while the field's label is hovered. Showing them for the whole row, or on focus, put them over the next field while an input was being filled in. The slot option names are real labels and the slot controls carry aria-describedby.
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This draft PR is close: port allocation, the collision checks and old-form handling look right, but turning on live video changes telemetry retention, which should be fixed. Should fix
Minor (2)
Not an issue: an owner can't lower an admin-granted budget to another value above 4 GB, which matches the documented owner cap. |
tridge
marked this pull request as ready for review
December 1, 2026 19:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Video ports could only be allocated by an admin. This lets any entry owner allocate their own, with bounded storage and retention by default, and fixes the field help tooltips that covered the next row of a form while you were filling it in.
Owner port allocation
Storage and retention defaults
keydb.pyCLI does not apply these defaults.Tooltips
aria-describedby.Form fixes
Testing
Known limits