Repository navigation
fix(metadata): stop offering a sort title on seasons - #4186
Conversation
Seasons order by season number everywhere, so a stored season sort title does nothing. Edit Metadata no longer offers Sort Title on a season, a new migration drops seasons.sort_title, and season reads, writes, resets and seed records drop it. Episodes keep their sort title; making it order episode lists is tracked in #4163. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 31 minutes. View limit details
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Please add before-and-after captures of the season Edit Metadata dialog at phone width, using the same data and naming both builds. Removing Sort Title changes what mobile-web users see too, even though the grid already stacks; the desktop captures don't cover that separate surface. |
Problem
Related issue: #4163
Validation tasks: none (#1210 and #1211 C1–C2 edit seasons, but they passed on a build from before #3938, when a season didn't store a sort title, so no passed case relies on it)
Other clients: N/A (no client has a metadata editor; Apple, Android and Roku read item detail, which no longer returns a season sort title they didn't show)
Since #3938, Edit Metadata on a season offers Sort Title and stores it, but seasons are ordered by season number everywhere, in Silo and in Jellyfin. A sort title on a season does nothing, so an admin who sets one gets no result. This change stops offering Sort Title on seasons. Episodes keep theirs.
Approach
A new migration drops
seasons.sort_title; the #3938 migration that added it is on main, so it stays as it is. Season reads, edits, Reset to Provider, an Identify that replaces the show, item detail and catalog seed records no longer carry a season sort title. An older seed bundle that has one still imports, and the value is ignored. The dialog hides Sort Title only on seasons.Making an episode's sort title order episode lists is #4163, which also lists two Sort Title checks for movies and series.
Validation
internal/catalog,internal/catalogseedandinternal/metadatapass against a freshly migrated Postgres 18, and the dialog suite passes.make verify-migrationspasses.make lint-changed, ESLint and Prettier report nothing.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/season-sort-title/
Surface and build: web app, Edit Metadata on a season and an episode of a TV series, desktop. Before is main at
a89c0ca3; after is this branch atd813cc15. Phone width is unaffected: the change only removes a field from a grid that already stacks.Risks
The migration drops
seasons.sort_titleand any value saved there since #3938 merged. Those values never changed any ordering. The down migration adds the column back empty. Servers on the previous build read the column, so in a multi-replica deployment they must stop before the migration runs, as with any column drop.Checklist
AI Disclosure
silo-evidencegpt-6.1-solatd813cc15b0found nothing to post; it noted the multi-replica caveat under Risks. Codex's code and security reviews found nothing.🤖 Generated with Claude Code