Skip to content

fix(sections): rank discovery rows by vote-weighted TMDB rating - #2169

Merged
Quick104 merged 11 commits into
mainfrom
fix/gallery-sections-empty
Oct 9, 2026
Merged

Quick104 merged 11 commits into
mainfrom
fix/gallery-sections-empty

Conversation

@Quick104

@Quick104 Quick104 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #1961
Validation tasks: none

The rating-led Home rows that admins add from the gallery (Critically Acclaimed, Hidden
Gems, Forgotten Favorites, Short & Sweet, Genre Roulette and the mood rows) either stay
empty or fill up with titles nobody has heard of.

  • They filtered on the IMDb rating, which only optional plugins (MDBList, metadb) supply.
    On a server that uses the TMDB plugin alone, they are empty, while TMDB Trending works.
  • Ranking by any raw rating fails on a large library. On a large test library,
    thousands of titles have a TMDB average of exactly 10.0; those with a recorded vote count have
    at most 3 votes. IMDb has the same problem. Whichever rating is used, these titles fill
    every row.
  • The gallery didn't say what a preset needs, so an empty row gave no hint why.

This change ranks the rows by TMDB rating weighted by TMDB vote count, requires a minimum
number of votes, shows a different set of top titles each day, and states each preset's
rule in the gallery. It relies on silo.tmdb 1.2.25, which sends TMDB vote counts
(Silo-Server/silo-plugin-metadata-tmdb#24).

Approach

  • Vote counts. A plugin reports TMDB's score and count as the tmdb rating source
    (feat(metadata): store per-source ratings from metadata plugins #1490). A trigger on media_item_rating_sources copies that row's count and average
    onto two new media_items columns, tmdb_vote_count and tmdb_vote_average, in the
    same statement as every write, so the rows can filter and index them without a join.
    Since the trigger updates the item after the source, the rating-source repository locks
    the item first, the order catalog import and content-ID renames already use, so these
    writers wait for one another instead of deadlocking.
    The pair always comes from one row. rating_tmdb isn't used for ranking because a
    scheduled refresh never overwrites it and it can predate the count. Catalog transfer
    carries each item's tmdb source, so the trigger derives the pair on import too; a
    bundle from an older exporter, which has no sources, leaves the target's in place.
  • Ranking. Rows require 500 votes (Critically Acclaimed) or 100 (the others) and order
    by (votes × average + 500 × 6.5) / (votes + 500), under a matching partial index built
    concurrently. A 10.0 from three votes ranks near 6.5; an 8.4 from 20,000 keeps about
    8.4. All of these rows now go through the catalog discovery query, which limits them to
    the viewer's libraries and the access filter's content allow-list and name prefix; an
    explicit empty library list matches nothing. Format showcase, anniversary and seasonal
    rows sort by the same value first, then by raw TMDB and IMDb rating for titles with no
    count.
  • Fresh counts. A scheduled refresh now overwrites the rating sources the refresh
    chain reports, as a manual refresh does; the chain's provider order picks one entry per
    source. Before, a title's first stored score and count never changed until a manual
    refresh, so a film first matched in its release week would stay below the vote minimum.
    The bulk enrichment pass still only fills missing sources, so MDBList can't replace the
    TMDB plugin's row. The rating_* columns keep their fill-empty rule.
  • Daily pick. Each row takes the best five times its item limit, up to 250 titles,
    and shows a deterministic pick from that pool, keyed by row kind and UTC day. Shared
    rows carry the day in their cache key, so every node switches at the same midnight.
    Genre Roulette already rotates its genre, so it shows the genre's best titles; it now
    picks only from genres that have titles the row can show, and an empty genre list isn't
    cached, so the row fills once a refresh brings vote counts.
  • Gallery copy. Preset descriptions name the genres, TMDB floor and vote minimum. The
    web Add row dialog shows that text under an empty preview and uses it as the hint on
    mood cards. The web row list and picker repeat it, and a test keeps them in step with
    the server. Critically Acclaimed's default config drops an unused "source": "imdb".

Existing titles get vote counts on their next refresh. A full library refresh fills them
all at once; until then the rows show only titles that already have a count (on servers
with MDBList, the titles it enriched).

The API is unchanged apart from description_short text in the recipe catalog, which
Apple and Android don't read. Jellycompat doesn't serve these rows; it uses the section
fetcher only for Latest and Resume.

The design doc is docs/architecture/discovery-row-ranking.md.

Validation

  • Go: build, gofmt, go vet and make lint-changed pass. make test-go passes except
    TestRunStatsWithRealFFmpeg, which fails the same way on main with the local ffmpeg.
  • Web: lint, format check, build, bundle budget and make test-web pass.
  • Contracts and hygiene: the verify-* targets in the contributing gate, migrate-validate
    and the router artifact test pass.
  • New tests cover the daily pick and its cache key, the vote floor, type, genre and
    runtime filters and weighted order in the queries, the Go expression matching the index
    migration, the refresh and enrichment write modes, preset descriptions, the
    empty-preview text, and the web text matching the server's.
  • The two Postgres tests for the vote-pair trigger and the rating-source upsert are added
    to the CI DB contracts list. They need Silo's full schema and did not run locally.
  • Both migrations ran on a throwaway PostgreSQL 16 with a synthetic 200,000-title schema:
    the batched backfill, every trigger path (insert, update, NULL votes, delete, both
    upsert conflict modes, content-ID rename and item delete cascades), the index build, a
    rerun and Down/Up. The backfill also ran while seven sessions held locks (a content-ID
    rename, a source cleared, a source set, a rolled-back clear, an item-only update and a
    new source for 2 s; another item update for 15 s). It finished in 6.2 s with no errors,
    every filled pair matched its source, and only the item held for 15 s stayed unfilled.
    An import-style transaction holding an item while a refresh upserted its tmdb source
    deadlocked with the old lock order; with the item locked first, the refresh waited and
    then applied its values. Both query shapes used
    the new index with bind parameters (about 0.3 ms for 100 rows). The catalog import's
    rating-source statements ran there too (create, overwrite with and without a source).
  • Read-only queries against a large dev catalog confirmed the problem and that
    the new ranking puts well-known, well-rated titles first.
  • Not done: running this branch on a deployment. The rows have not been captured after a
    full refresh with TMDB vote counts.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/discovery-ranking/

Risks

  • Until a server has TMDB vote counts (silo.tmdb 1.2.25 plus a refresh), these rows show
    fewer titles, or none on a server without MDBList. The Add row preview says what each
    row needs. Ship the plugin before this server change.
  • Scheduled refreshes now rewrite the rating sources they report when values change,
    which adds writes on libraries that refresh often.
  • The migration adds two nullable columns (no table rewrite), backfills them in committed
    batches, and builds the index concurrently. The backfill skips rows another transaction
    holds rather than wait on them and retries them in up to four more passes a second
    apart; an item held longer than that gets its pair from its next refresh.

Follow-ups

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: T3 Code running Claude Code
  • Tool(s): Claude Code; Codex (cross-provider review)
  • Model(s): claude-opus-5-5; Claude Sonnet via Claude Code's sonnet alias (two review subagents); gpt-6.1-sol (review)
  • Involvement: Fully AI-generated; human verification pending
  • Adversarial review: the full diff went through a Claude Code multi-agent review (three
    finders, a validation agent and a sweep; candidates were checked against the source by
    the lead agent rather than separate verifiers) and two rounds with Codex gpt-6.1-sol.
    Round one found a backfill holding media_items locked, the moved mood query skipping
    the library allowlist, MDBList-owned tmdb rows that a refresh could never update, a
    vote copy outside the source write, a blocking invalid-index cleanup, catalog transfer
    dropping counts, a cache key without the day, an oversized pool, a lost added_at, a
    widened query vocabulary and preset text shown for customized rows. Round two found
    import paths that still dropped counts, a backfill race with a concurrent clear,
    Genre Roulette choosing genres with no voted titles, no-op trigger updates on bulk
    deletes and web defaults for zero settings. On the open PR, Kody found Genre Roulette
    choosing genres the row's rating floor would empty and the backfill not retrying items
    it skipped, and Codex found the backfill's lock
    order could deadlock with a content-ID rename, a refresh's source write could deadlock
    with a catalog import, older catalog bundles clearing sources,
    explicit empty library scopes showing every library, and an empty genre list cached
    for a day. Codex also found that discovery rows ignored the access filter's content
    allow-list and name prefix. All are fixed. Left as they are: Genre
    Roulette has no daily pick (it rotates weekly); a refresh that reports a source
    without a count clears the count, as a manual refresh already does; the rows stay
    sparse until refreshes fill counts (see Risks); the rating_* columns keep their
    fill-empty rule.

🤖 Generated with Claude Code

Note

Rank discovery rows by vote-weighted TMDB rating with daily mixing

  • Replaces IMDb-based ranking with a TMDB vote-weighted rating expression in discovery_repo.go, backed by new tmdb_vote_count/tmdb_vote_average columns and a synchronization trigger on media_item_rating_sources (migrations 20261008200122 and 20261008200123)
  • Discovery sections (Hidden Gems, Critically Acclaimed, Forgotten Favorites, Mood, Short Watches, Genre Roulette) now fetch a candidate pool (5x limit, capped at 250) and pick a deterministic per-UTC-day subset via SHA-256 scoring in daily_mix.go; resolved-list cache keys for these sections include the day
  • Rating-source writes now lock the media item row with FOR NO KEY UPDATE in rating_source_repo.go; manual and scheduled refreshes overwrite reported sources, while enrichment only fills missing ones
  • Catalog bundles can export/import TMDB rating-source records, gated by a TMDBRatingSources manifest flag in types.go
  • UI preset descriptions now state TMDB rating floors and vote minimums, and empty previews show the row's rule
  • Risk: behavioral changes — rating-led rows return different items and cache keys after deploy; recipes.CriticallyAcclaimedParams drops the Source field and its default JSON no longer includes source; the backfill migration runs batched with row locks and up to five passes

Macroscope summarized 7d91815.

Quick104 and others added 3 commits October 8, 2026 18:42
Rating-led Home rows (Critically Acclaimed, Hidden Gems, Forgotten
Favorites, Short & Sweet, moods) filtered on the IMDb rating, which only
optional plugins supply, so they stayed empty on TMDB-only servers. On a
large library a raw rating also lets titles rated 10 by one to three
people lead every row.

- Filter on TMDB and require a minimum TMDB vote count (500 for Critically
  Acclaimed, 100 elsewhere). The count and average are copied from the
  item's tmdb rating source onto media_items.tmdb_vote_count and
  tmdb_vote_average whenever rating sources are written, and rows rank by
  (votes x average + 500 x 6.5) / (votes + 500) under a matching partial
  index.
- A scheduled refresh now updates rating sources the same provider stored
  earlier, so counts keep moving after release; it still never overwrites
  another provider's source.
- Each row shows a deterministic daily pick from its best five times its
  limit, so it changes day to day.
- Preset descriptions state the genres, rating floor and vote minimum; the
  Add row preview shows them when nothing matches, and mood cards use them
  as hints.
- Format showcase, anniversary and seasonal rows sort by the weighted
  rating too, then by raw TMDB rating for titles without a count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Keep the TMDB vote pair in step with a trigger on
  media_item_rating_sources instead of a second statement, so every writer
  updates it atomically. Backfill in committed batches and drop a leftover
  index concurrently, so the migrations never hold media_items locked.
- A full-chain scheduled refresh overwrites the rating sources it reports;
  the bulk enrichment pass stays fill-empty. The chain's provider order
  then decides the tmdb row, so MDBList-owned or orphaned rows update.
- Run moods, Short & Sweet and Genre Roulette through the catalog
  discovery query, which honors the viewer's library allowlist; Genre
  Roulette gains the vote minimum. Drop the rating_tmdb rule field.
- Carry the day in daily-mix cache keys, cap the pool at 250, fall back to
  created_at for added_at, and add rating_imdb to the unweighted order.
- Catalog transfer exports and imports the vote pair.
- Web: show a preset's rule only for a row that uses its params, and test
  that the row list and picker repeat the server's rule text.
- List the rating-source Postgres tests in the CI DB contracts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Catalog transfer carries each item's tmdb rating source instead of the
  derived pair and writes it after every import path, so the trigger
  derives the pair and an overwritten item without one is cleared.
- The vote-pair backfill locks source rows before reading them, so a
  concurrent clear can't leave a stale count; the trigger skips no-op
  updates so bulk deletes don't fire media_items statement triggers per
  row.
- Genre Roulette picks from genres among titles with the vote minimum.
- Web row text treats zero or negative max_minutes and lookback_days as
  the server does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 216955ce-bb2d-40f8-862f-528a1338ea8e

📥 Commits

Reviewing files that changed from the base of the PR and between 117587d and 7d91815.


📒 Files selected for processing (6)
  • docs/architecture/discovery-row-ranking.md
  • internal/catalog/discovery_repo.go
  • internal/catalog/discovery_repo_test.go
  • internal/sections/fetcher.go
  • internal/sections/genre_roulette_test.go
  • scripts/ci/db-contracts.txt

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.



📝 Walkthrough

Walkthrough

TMDB vote counts and averages now support discovery filtering and weighted ranking. Discovery sections use larger candidate pools and deterministic daily selection. Recipe descriptions and admin previews state the rating, vote, and other criteria used by these rows.

Changes

TMDB Discovery Rows

Layer / File(s) Summary
TMDB vote data and source synchronization
migrations/sql/20261008200122_add_media_item_tmdb_votes.sql, internal/catalog/rating_source_repo*, internal/catalogseed/*, internal/metadata/service.go, internal/metadata/rating_sources_test.go, docs/catalog-api.md, scripts/ci/db-contracts.txt
TMDB vote counts and averages are synchronized to media_items. Catalog seed export and import carry TMDB rating-source values. Manual and scheduled refreshes overwrite reported sources; enrichment-only writes remain fill-only.
TMDB discovery filters and ranking
internal/catalog/discovery_repo.go, internal/catalog/discovery_repo_test.go, internal/catalog/tmdb_weighted_rating*, migrations/sql/20261008200123_index_tmdb_weighted_rating.sql, docs/architecture/discovery-row-ranking.md
Discovery queries use TMDB rating and vote thresholds, optional type, genre, and runtime filters, and weighted TMDB ordering. A matching partial index and content-ID tie-break support the ordering.
Discovery fetching and daily selection
internal/sections/daily_mix*, internal/sections/fetcher.go, internal/sections/resolvedlistcache.go, internal/sections/genre_roulette_test.go, internal/sections/editorial_candidate_cache_test.go
Configured discovery sections load expanded candidate pools and select items deterministically by row key and UTC day. Genre Roulette applies rating, vote, and type constraints to its candidate genres and titles.
Row criteria and admin previews
internal/sections/recipes/*, web/src/lib/homeRows/*, web/src/lib/recipes.ts, web/src/components/homeRows/addRow/*, web/src/pages/AdminHomeRows.addRow.test.tsx
Preset and row descriptions state rating, vote, watch-history, genre, and runtime criteria. The add-row form uses matching preset descriptions for variant hints and ready empty previews.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant SectionFetcher
  participant DiscoveryRepository
  participant dailyBestOf
  SectionFetcher->>DiscoveryRepository: Query an expanded candidate pool
  DiscoveryRepository-->>SectionFetcher: Return matching discovery items
  SectionFetcher->>dailyBestOf: Select items for the row limit and UTC day
  dailyBestOf-->>SectionFetcher: Return selected items in pool order
Loading

Suggested reviewers: rhainland


Merge Risk: ⚪ Minimal · up to 7d918

No actionable issue remains in the supplied review evidence. Normal checks, including the pending database contract tests, should still run before deployment.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 44.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 70 functions across 31 files. (2 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely identifies the primary change: ranking discovery rows by vote-weighted TMDB rating.
Description check Passed The description is directly related to the changeset and explains the ranking, vote synchronization, daily mixing, filtering, UI guidance, validation, and deployment considerations.

Full details: Docstring Coverage

Explanation

Docstring coverage is 44.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 70 functions across 31 files. (2 skipped: 2 unsupported.)



  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-kody

silo-kody Bot commented Oct 8, 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 ❌

Quick104 added a commit to Silo-Server/siloserver.org that referenced this pull request Oct 8, 2026
Rows such as Critically Acclaimed now show only titles enough people rated
on TMDB (Silo-Server/silo-server#2169). Say where the counts come from, how
to fill them at once, and that the row preview says what an empty row looks
for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread internal/sections/fetcher.go Resolved
@Quick104
Quick104 marked this pull request as ready for review October 9, 2026 16:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T18:17:16.024518Z 7d91815 New commits
🔒 Security Review ✅ Completed 2026-10-09T18:18:25.045718Z 7d91815 New commits
ℹ️ 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.

The genre candidates counted every title with the vote minimum, while the
row itself also requires movies or series at its rating floor. A row with a
high floor could rotate onto a genre that leaves it empty for the whole
rotation. The candidates now apply the same filters, and the floor is part
of their cache key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 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 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 268e0f1ccd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/sections/fetcher.go Resolved
Comment thread internal/catalogseed/service.go Resolved
Comment thread internal/sections/fetcher.go Resolved
Comment thread internal/sections/fetcher.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 788acf6893

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- The vote backfill locks each batch's items and then their sources,
  skipping rows another transaction holds, so it never waits and cannot
  deadlock with a content-ID rename or catalog import (item first) or a
  rating-source write (source first).
- Catalog import clears an overwritten item's TMDB source only when the
  bundle marks that it carries sources, so a bundle from an older exporter
  no longer wipes them.
- Discovery rows treat an explicit empty library scope as no library, as
  the section fetcher's own scope does.
- An empty editorial candidate set is not cached, so Genre Roulette picks
  up genres once a refresh fills TMDB vote counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 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 ❌

The TMDB vote trigger updates the item after the source row, while a
catalog import holds its items and then writes their sources. A metadata
refresh writing the same item's sources could deadlock with the import
and abort it. RatingSourceRepository now locks the item first, so every
writer takes the item before its sources and they wait for one another.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 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 ❌

Quick104 and others added 2 commits October 9, 2026 13:17
The backfill skips items another transaction holds so it never waits.
An item held by a writer that does not touch rating sources, such as an
artwork update, kept a NULL vote pair until its next refresh. Up to four
more passes a second apart now retry such items once their lock is gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
SKIP LOCKED avoids waiting on the item and source row locks; the comment
no longer claims the backfill can never wait at all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 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 ❌
⚠️ 1 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers

…empty

# Conflicts:
#	scripts/ci/db-contracts.txt

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2af0891919

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +184 to +186
const preset =
matched && Object.keys(draft.config).every((key) => key in matched.default_params)
? matched

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow legacy acclaimed configs to match the preset

When an existing Critically Acclaimed row was created from the old preset, its saved config contains {"min_score":8,"source":"imdb"}, while this change removes source from the preset and intentionally ignores it in the resolver. This exact-key check therefore rejects every such legacy row, so an empty edit preview never receives description_short and omits the new TMDB vote-count explanation precisely while those rows may be empty awaiting refresh. Normalize the ignored legacy key or otherwise treat it as preset-compatible here.

Useful? React with 👍 / 👎.

The mood, Short & Sweet and Genre Roulette rows moved from the query
executor to the discovery repository, which applied library and maturity
limits but not the access filter's content allow-list or name prefix.
AppendContentScope adds both, matching the query executor, to every
discovery query and to Genre Roulette's genre candidates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 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 ❌

@Quick104
Quick104 merged commit ef2dcf5 into main Oct 9, 2026
20 of 22 checks passed
@Quick104
Quick104 deleted the fix/gallery-sections-empty branch October 9, 2026 19:11
zZebrahz added a commit to Silo-Server/siloserver.org that referenced this pull request Oct 10, 2026
* docs(collections): describe the new Collections page, editor, and profile sharing

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* docs(collections): cover the admin List, Arrange, and starter packs

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* docs(home): describe Admin > Home rows

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* docs(home): update changing your own home rows

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* docs(home): explain rating rows that need TMDB vote counts

Rows such as Critically Acclaimed now show only titles enough people rated
on TMDB (Silo-Server/silo-server#2169). Say where the counts come from, how
to fill them at once, and that the row preview says what an empty row looks
for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(home): call the admin page Sections, as the app does

* docs(collections): say a server collection needs a row to show on Home

* docs(collections): leave smart collections out of the poster collage

* docs(collections): name the starter pack add button plainly

* docs(collections): move the empty collection check to its own section

* docs(home): say what Restore defaults removes and name its profile switch

* docs(home): name the add button when a row goes to several pages

* docs(collections): say sharing needs more than one profile

* docs(collections): retitle the admin page Create server collections

* docs(collections): drop the iPhone and iPad steps for making a collection

The app has the create screen, but nothing on iPhone or iPad opens it, and
it can't add titles to a collection.

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: zZebrahz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant