aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Server.Implementations.Tests/Item
AgeCommit message (Collapse)Author
4 daysBackport pull request #18645 from jellyfin/release-12.zShadowghost
Fix "too many SQL variables" when saving large scan batches and playlists Original-merge: e66161258b926a78be16e0583a3af873fe48305a Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Cody Robibero <cody@robibe.ro>
4 daysBackport pull request #18258 from jellyfin/release-12.zShadowghost
Look up descendants by parent instead of a correlated EXISTS Original-merge: e60484a1cef1ceca4aea7135396178139dc93132 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
4 daysBackport pull request #18072 from jellyfin/release-12.zShadowghost
Keep language variants distinguishable Original-merge: 060233101dc336560b2f97d251fe7a9f8241b763 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-10-05Backport pull request #18265 from jellyfin/release-12.zmartimarkov
Compare person names without regard to case in the letter range filters Original-merge: 03544979c8892d25b06d62534f17cc8a67bfe1e7 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-10-05Backport pull request #18093 from jellyfin/release-12.zShadowghost
Stop rebuilding the inherited-tag set per row, and count only the people /Persons can return Original-merge: 63b5a050a9dc943854bae01856f30f1a5a089245 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-10-05Backport pull request #18001 from jellyfin/release-12.zShadowghost
Keep an item's user data rows in agreement Original-merge: fc98019b12e311fea244dccef72d521278326024 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-10-05Backport pull request #17892 from jellyfin/release-12.znintwentydo
Fix orphan ItemValues cleanup after deletion Original-merge: b4648c15b185aafab7bea109e79f7bdcccacb641 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-27Backport pull request #18148 from jellyfin/release-12.zShadowghost
Scope the music library cover image to that library's artists Original-merge: c60c5e0516da24b768122ebbee20b0ded887e517 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-27Backport pull request #18138 from jellyfin/release-12.zShadowghost
Don't apply the allowed tags filter to by-name items Original-merge: 76194d76993e048c555d10dd74f6c61b2ea3cff8 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-27Backport pull request #18005 from jellyfin/release-12.zorut34iop
Match artist creation lookups using CleanName Original-merge: d341176eef63e38839f648b00a358240279ec363 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #18004 from jellyfin/release-12.zorut34iop
Avoid full people scans and writes for unchanged credits Original-merge: 63c81a9975c339a0757142cb69a318b50b85d216 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #18003 from jellyfin/release-12.zShadowghost
Check Live TV access for a single user instead of enumerating all users Original-merge: 2bcd3b1efb121ad661495570b43aace247ee0a27 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #17898 from jellyfin/release-12.zShadowghost
Populate missing tags array in Filters2 Original-merge: 3d52fbe84e78d6447465bb831039dabb6142ca67 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #17897 from jellyfin/release-12.znintwentydo
Clean up orphaned people when deleting items Original-merge: f6cbafc36e66ca676a87f22b0faeaaf571d9af3f Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #17884 from jellyfin/release-12.zShadowghost
Release a folder's children once its subtree has been scanned Original-merge: 2f2adae7d99537e53417f6d92aa3d40345a17b99 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #17881 from jellyfin/release-12.zShadowghost
Fix /UserViews exhausting memory and reporting random child counts Original-merge: a838a06aa51eac388a76e9e6421f1a80873c417b Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #17873 from jellyfin/release-12.zShadowghost
Delete the full ownership closure when deleting items Original-merge: 705b69e93d7ea86346348b5ad2a97e0f54494f04 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-15Backport pull request #17842 from jellyfin/release-12.zShadowghost
Fix versions of a video still listing separately from their group and preserve manual merges Original-merge: cabec7ec28df671e3bb1c360c32db60b085f4084 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
2026-09-07Merge pull request #17821 from Shadowghost/more-countsCody Robibero
Expose optimized ItemCounts for byName items
2026-09-07Count distinct items for byName ItemCounts and batch every kindShadowghost
2026-09-07Expose optimized ItemCounts for byName itemsShadowghost
2026-09-06Share played state across alternate versionsShadowghost
2026-09-06Merge pull request #17762 from Shadowghost/fix-scan-memory-leakCody Robibero
Bound change batches during a scan; keep ffprobe and image saves from failing
2026-09-02avoid correlated item value name queriesFelix Förtsch
2026-09-02test legacy item value filter semanticsFelix Förtsch
2026-09-02Potential fix for pull request findingFelix Förtsch
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-01Treat an item deleted mid-save as a no-op when saving its imagesShadowghost
2026-09-01avoid correlated legacy item value filter queriesFelix Förtsch
The legacy filter queries projected ItemValue before grouping tags and genres. EF Core translated that shape into duplicated correlated aggregates, causing multi-minute requests for libraries with many distinct values and blocking unrelated SQLite-backed API calls. Join ItemValuesMap directly to ItemValues before grouping. This preserves type and item filtering, clean-value grouping, minimum-value selection and ordering while producing one aggregate query. Add an in-memory SQLite regression test for result semantics and both SQL shapes.
2026-08-31Fix recursive handling for LinkedChildrenShadowghost
2026-08-29Count a season's episodes by the season they belong toShadowghost
2026-08-25Merge pull request #17715 from Shadowghost/fix-people-cleanupCody Robibero
Delete credits nothing maps to and bound item-by-name folder names
2026-08-25Delete a credit once no item maps to it any moreShadowghost
2026-08-25Order IsPlayed and IsUnplayed by the played state the filter reportsPiotr Niełacny
Ordering mapped both keys to the item's own stored UserData row. Folders do not have one: a series, season or box set counts as played when no descendant is left unplayed, which is what the isPlayed filter and the DTO both report. A mixed library therefore sorted every series and box set into the unplayed group, and a query could filter and sort by two different notions of "played". Extract the filter's predicate into BuildIsPlayedFilter and route both sort keys through it so the two cannot drift apart again.
2026-08-22Merge remote-tracking branch 'upstream/master' into fix-series-mergingShadowghost
2026-08-22Multiple fixes and improvementsShadowghost
Co-Authored-By: Cody Robibero <cody@robibe.ro>
2026-08-22Merge remote-tracking branch 'upstream/master' into optimize-db-helper-memoryShadowghost
# Conflicts: # src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs
2026-08-21Fix series merging leaking across libraries and under-counting merged childrenShadowghost
2026-08-17Fix SQLite variable limit in child count batchesmartin-77
2026-08-14Count alternate versions in the media filters and align filter conditionsShadowghost
2026-08-14Skip alternate version links when resolving link parentsShadowghost
2026-08-12Fix formattingShadowghost
2026-08-12Share the SQLite fixture across the item testsShadowghost
2026-08-11Optimize query helper memoryShadowghost
2026-08-07Merge pull request #17541 from vdatanet/fix/byname-total-record-countCody Robibero
Fix by-name endpoints reporting TotalRecordCount=0 next to a populated Items array
2026-08-06Move the deletion of old related info to just before the saveMarc Brooks
This makes the deletion of BaseItemProviders, BaseItemImageInfos, and BaseItemMetadataFields happen in batch as a contiguous block so the lock isn't held across items, just before the bulk SaveChanges.
2026-08-05Project the lowered person credit values once when updating peopleShadowghost
2026-08-05Fix by-name endpoints reporting TotalRecordCount=0 next to a populated Items ↵vdatanet
array `GetItemValues` -- the shared path behind `/Artists`, `/AlbumArtists`, `/Genres`, `/MusicGenres` and `/Studios` -- disabled the total record count whenever the query carried no `Limit`: if (!filter.Limit.HasValue) { filter.EnableTotalRecordCount = false; } A request without an explicit limit therefore came back with N entries in `Items` and `TotalRecordCount = 0`. Clients that page on the reported total -- the documented contract every other list endpoint honours -- read that as an empty library. `/Items` and `/Persons` do not share this path and report the count correctly, which is what makes the inconsistency visible from the outside. Measured against master with a 62-track music library: GET /Artists?UserId=... -> TotalRecordCount=0 Items=5 GET /Artists?UserId=...&limit=100 -> TotalRecordCount=5 Items=5 Dropping the block costs nothing: `representativeIds` is materialised into a `List<Guid>` a few lines below regardless, so `.Count` was already available and the count is now reported from it. Callers that genuinely want to skip the count still can -- `EnableTotalRecordCount = false` is honoured as before. The block also mutated the caller's own query object, so a query instance reused across calls silently lost its total after the first limitless one. That is covered by a test as well.
2026-07-16Fix tie-breaker performanceShadowghost
2026-07-02Fix review commentsShadowghost
2026-06-19Surface the played version for resumeShadowghost