Repository navigation
fix(jellycompat): fill large browse pages - #49
Conversation
|
Need the big picture first? Review this PR in Change Stack to see what changed before going file by file. Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR refactors catalog browse query execution to eliminate window-count functions and use extra-row pagination. It introduces a ChangesBrowse Query and Compat Layer Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
890e867 to
91cb9e1
Compare
|
Tip For best results, initiate chat on the files or code changes.
|
…t-items-ingest-main fix(jellycompat): fill large browse pages
…est-main fix(jellycompat): fill large browse pages
…est-main fix(jellycompat): fill large browse pages
…est-main fix(jellycompat): fill large browse pages
Resolves 8 open Dependabot alerts in web/pnpm-lock.yaml (all dev-only transitive dependencies) by pinning patched versions through the existing pnpm.overrides mechanism: - undici 7.24.7 -> 7.28.0 (via jsdom; alerts #43-#49, incl. 2 high: TLS cert validation bypass & cross-origin routing via SOCKS5 ProxyAgent) - js-yaml 4.1.1 -> 4.2.0 (via @eslint/eslintrc; alert #39, quadratic DoS) - @babel/core 7.29.0 -> 7.29.6 (via @vitejs/plugin-react; alert #38, arbitrary file read via sourceMappingURL) No vulnerable versions remain in the lockfile. Web build and lint pass; the only failing tests (ServerStorageStep ResizeObserver) are pre-existing on main and unrelated to these bumps. Co-authored-by: Claude Opus 4.8 <[email protected]>
…lo-Server#225) Resolves 8 open Dependabot alerts in web/pnpm-lock.yaml (all dev-only transitive dependencies) by pinning patched versions through the existing pnpm.overrides mechanism: - undici 7.24.7 -> 7.28.0 (via jsdom; alerts Silo-Server#43-Silo-Server#49, incl. 2 high: TLS cert validation bypass & cross-origin routing via SOCKS5 ProxyAgent) - js-yaml 4.1.1 -> 4.2.0 (via @eslint/eslintrc; alert Silo-Server#39, quadratic DoS) - @babel/core 7.29.0 -> 7.29.6 (via @vitejs/plugin-react; alert Silo-Server#38, arbitrary file read via sourceMappingURL) No vulnerable versions remain in the lockfile. Web build and lint pass; the only failing tests (ServerStorageStep ResizeObserver) are pre-existing on main and unrelated to these bumps. Co-authored-by: Claude Opus 4.8 <[email protected]>
Summary
Fixes UHF-style Jellyfin compatibility
/Itemsbrowse requests that ask for large pages and deepStartIndexoffsets, such asLimit=1000&StartIndex=1925000&SortBy=PremiereDate.Root Cause
The Jellyfin compatibility layer passed the client limit into catalog browse, but catalog silently capped pages at 100. That under-filled large Jellyfin pages and forced clients to do much more pagination work. The movie
PremiereDatesort also used a textCOALESCE(...)expression, which prevented the large-offset movie browse path from using a release-date btree index effectively.Changes
EnableTotalRecordCountinto the direct Jellyfin browse adapter.PremiereDatebrowse order bymi.release_datedirectly.idx_media_items_movie_release_date_desc_contentfor movie release-date deep paging.include_total=false, caller-specific catalog caps, and the movie-only release-date SQL shape.Validation
go test ./internal/jellycompat ./internal/catalogAI Use
Implemented with AI assistance.
Summary by CodeRabbit
Release Notes
Performance Improvements
API Enhancements