Skip to content

fix(metadata): stop offering a sort title on seasons - #4186

Merged
Quick104 merged 1 commit into
mainfrom
fix/drop-season-sort-title
Nov 14, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/drop-season-sort-title

Conversation

@Quick104

@Quick104 Quick104 commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Walked on a dev sandbox, main first, then this branch against the same database: the season dialog offered Sort Title before and doesn't after. An episode's sort title still saves and comes back after a reload, and the stored row matches.
  • The season assertions in the catalog database test and the dialog test fail on main and pass on this branch. internal/catalog, internal/catalogseed and internal/metadata pass against a freshly migrated Postgres 18, and the dialog suite passes.
  • The new migration goes down and back up cleanly, and make verify-migrations passes.
  • 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 at d813cc15. Phone width is unaffected: the change only removes a field from a grid that already stacks.

Risks

The migration drops seasons.sort_title and 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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code (via T3 Code)
  • Tool(s): Claude Code (Bash, file reads and edits), Playwright with headless Chromium, GitHub CLI, silo-evidence
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: the maintainer review of fix(metadata): store the season and episode fields Edit Metadata offers #3938 raised the season and episode Sort Title question, and the maintainers decided to drop it from seasons. A simplify pass on the diff changed nothing. A background adversarial review by gpt-6.1-sol at d813cc15b0 found nothing to post; it noted the multi-replica caveat under Risks. Codex's code and security reviews found nothing.

🤖 Generated with Claude Code

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]>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 14, 2026
@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 557ebb0c-67f9-4722-be32-27b2e4fc442e
Commits

Reviewing files that changed from the base of the PR and between e5b5e51 and d813cc1.

Files selected for processing: 15

  • docs/admin-catalog-api.md
  • internal/catalog/detail.go
  • internal/catalog/season_episode_locks.go
  • internal/catalog/season_episode_locks_db_test.go
  • internal/catalog/season_repo.go
  • internal/catalogseed/child_locks_db_test.go
  • internal/catalogseed/export_stream.go
  • internal/catalogseed/service.go
  • internal/catalogseed/types.go
  • internal/metadata/identify_child_locks_db_test.go
  • internal/metadata/reset_to_provider_db_test.go
  • internal/models/media.go
  • migrations/sql/20261114204618_drop_season_sort_title.sql
  • web/src/components/EditMetadataDialog.test.tsx
  • web/src/components/EditMetadataDialog.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-kody

silo-kody Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T21:13:26.838676Z d813cc1 PR opened
🔒 Security Review ✅ Completed 2026-11-14T21:15:18.327746Z d813cc1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 14, 2026
@silo-triage

silo-triage Bot commented Nov 14, 2026

Copy link
Copy Markdown

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.

@Quick104
Quick104 merged commit 1f8a5eb into main Nov 14, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/drop-season-sort-title branch November 14, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant