Repository navigation
feat!: drop Trakt support - #2586
Conversation
Silo no longer supports Trakt. Two migrations convert what Trakt built and remove what it stored: - Trakt-backed admin and personal collections become manual collections that keep their titles and stop syncing. - Trakt trending home rows switch to TMDB weekly trending and are turned off; a profile's own Trakt trending row is switched and hidden, in the Postgres store and the SQLite user store (schema v33). - Trakt watch-sync connections, the legacy watchsync.trakt.* settings and migration markers are deleted, and an installed Trakt plugin is disabled. The server never registers silo.watchprovider.trakt again. Imported watch history stays. The Trakt client, collection and trending sync, legacy-Trakt guards, templates and settings are removed from the server and the web client. The v2 importAdminTrakt and importTraktCollection operations are removed before the v2 lock; the frozen v1 routes keep their 410. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
|
The Evidence section describes outcomes but includes no captures, response excerpts, or evidence.siloserver.org link, so reviewers cannot see these changes without building the branch.
Name the surface and build or commit for each capture. Suggested fix: No diff — add the requested evidence under the PR's Evidence heading. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Visible changes lack the required evidence:
The Evidence section describes outcomes but does not include captures, response excerpts, or an evidence link. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 141
✨ Finishing Touches
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 |
…registers Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Major validation impact — #193 S5 (Server/API, build 927 · Replace the current -Validation tasks: none
+Validation tasks: changes #193 S5Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Silo no longer supports Trakt (Silo-Server/silo-server#2586), and the plugin repository is archived. Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Major change: #193 S5 recorded 403 responses for 20 admin collection routes, including imports. This PR removes Suggested fix: replace Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
| IF COALESCE(element->>'SectionID', '') = '' | ||
| AND (pg_temp.is_trakt_trending_config(config) OR pg_temp.is_trakt_trending_config(user_config)) THEN | ||
| element := element || '{"Hidden": true}'::jsonb; | ||
| END IF; |
There was a problem hiding this comment.
Incorrect hiding during upgrade in migrations/sql/20261016131356_retire_trakt.sql occurs because the hide predicate treats Config and UserConfig as equally authoritative, hiding rows with an ignored legacy Trakt Config and an active TMDB UserConfig despite the explicit UserConfig precedence for user-added rows exercised by TestResolveEmptySectionIDPrefersExplicitUserFields. Select the effective config before testing for Trakt, and apply the same fix to internal/userdb/retire_trakt.go:25.
IF COALESCE(element->>'SectionID', '') = ''
AND pg_temp.is_trakt_trending_config(
CASE
WHEN user_config IS NULL OR btrim(user_config, E' \t\r\n') IN ('', 'null') THEN config
ELSE user_config
END
) THEN
element := element || '{"Hidden": true}'::jsonb;
END IF;Prompt for LLM
File migrations/sql/20261016131356_retire_trakt.sql:
Line 139 to 142:
Incorrect hiding during upgrade in `migrations/sql/20261016131356_retire_trakt.sql` occurs because the hide predicate treats `Config` and `UserConfig` as equally authoritative, hiding rows with an ignored legacy Trakt `Config` and an active TMDB `UserConfig` despite the explicit `UserConfig` precedence for user-added rows exercised by `TestResolveEmptySectionIDPrefersExplicitUserFields`. Select the effective config before testing for Trakt, and apply the same fix to `internal/userdb/retire_trakt.go:25`.
Suggested Code:
IF COALESCE(element->>'SectionID', '') = ''
AND pg_temp.is_trakt_trending_config(
CASE
WHEN user_config IS NULL OR btrim(user_config, E' \t\r\n') IN ('', 'null') THEN config
ELSE user_config
END
) THEN
element := element || '{"Hidden": true}'::jsonb;
END IF;
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
Problem
Related issue: N/A
Validation tasks: none
Silo is dropping Trakt support. Trakt watch sync already ran through a first-party plugin, and new Trakt collections and home rows were already refused, but the server still carried a Trakt client, sync for the legacy Trakt collections and trending rows, the guards that kept those rows locked, and the auto-install that put the Trakt plugin back on any server with Trakt connections. This removes all of it and converts what households built with Trakt into things that keep working without it.
Approach
Two migrations run on update:
retire_trakt: Trakt-backed admin and personal collections become manual collections that keep their current titles and stop syncing. Trakt trending home rows switch to TMDB weekly trending and are turned off; a profile's own Trakt trending row is switched the same way and hidden. Collection rows drop their Trakt marker and keep showing their collection. The SQLite user store rewrites its section overrides the same way at schema v33.retire_trakt_watch_sync: deletes Trakt connections (their per-connection rows cascade, as on a disconnect), the legacywatchsync.trakt.*settings and plugin migration markers, and disables an installedsilo.watchprovider.trakt. Imported watch history stays. They are separate becausemigrationcheckrefuses a migration that both defines SQL functions and touchesserver_settings.With no Trakt data left, the server drops the Trakt client, collection and trending sync, the legacy-Trakt guards on sections and collections, the Trakt template source, and the Trakt settings.
silo.watchprovider.traktis listed as retired: the host never registers it, so a copy left installed cannot sync, scrobble or claim a provider key, and Trakt connections no longer trigger an auto-install. Only that plugin ID is retired: the plugin SDK is provider-agnostic, and a community Trakt plugin under its own ID registers like any other third-party plugin.API:
/api/v2removesimportAdminTraktandimportTraktCollection(andAdminTraktImport,TraktCollectionImport,TraktSpec) before the lock, with breaking-change approvals; both already answered 410 and no first-party client calls them. The frozen v1 import routes keep their410 unsupported_source. The v1 removals table and the ledger record the change. Jellycompat has no Trakt surface.The web client loses the legacy-Trakt collection and home-row handling, including the home-layout import retry that existed only because the server refused Trakt rows. silo-apple and silo-android need no change. The plugin is removed from the catalog in Silo-Server/silo-plugins (separate PR) and its repository is archived. A siloserver.org issue covers the manual pages that name Trakt.
Validation
make verify-migrationspasses.make lint-changed(0 issues) andmake test-gopass, exceptTestRunStatsWithRealFFmpeg, which also fails onmainon the test host (FFmpeg version).TestAdminSubtitleListPageDBandTestCatalogTransferPersistsJobsAndSignedLink, which also fail onmainon the test host;make test-db-pinspasses (258/258).make test-webpass.verify-apiv2-openapi,verify-apiv2-contract,verify-apiv2-fixtures,verify-apiv2-web-types,verify-route-inventory,verify-migration-ledger,verify-offline-routes,verify-v1-route-freezeand the other repository checks pass.verify-actionlintandverify-shellcheckwere not run locally (tools not installed); no workflow or shell file changed.Evidence
After the update, Trakt collections show as manual collections with their titles and no sync status, Trakt trending home rows appear turned off as TMDB weekly trending, and the collection editor and home-row editor no longer show the locked "Trakt (legacy)" states. Watch-provider copy in admin settings and the dashboard names Simkl and MDBList instead of Trakt. Nothing changes for servers without Trakt data.
Risks
collection_type: "trakt"returns 500, as any unknown type does today.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Remove Trakt support across API, collections, trending, and watch sync
AdminTraktImport,TraktCollectionImport, andTraktSpecschemas from the v2 OpenAPI contractTrendingRefresher, and the Trakt fetcher/token-resolver wiring in router.go and main.golegacyTraktflag and all legacy-Trakt lock/immutability rules from the web UI (home rows, collection editors, layout import) and docs; thetraktprovider key is no longer claimed by the first-party registrycatalog.IsSyncableTypeandtrendingDiscoverRecipe.Validatefor the new rejected-source behaviorMacroscope summarized aafc44d.