aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/BaseItemRepository.ByName.cs
AgeCommit message (Collapse)Author
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-26Use DistinctBy where possibleShadowghost
2026-07-25Fix favorite filter performanceShadowghost
2026-07-23Reduce correlated subqueries to improve performanceShadowghost
2026-07-21Merge pull request #16980 from ↵Cody Robibero
TheMelmacian/feature/library_specific_language_filter_values Improve language filters to only fetch language codes that match the requested items/libraries (follow up to #9787)
2026-07-21fix: remove obsolete codeTheMelmacian
2026-05-30only fetch language codes for the requested library when generating filter ↵TheMelmacian
values
2026-05-30Fix inaccessible artist when they exist in multiple librariestheguymadmax
2026-05-09Preserve ordering in item values queryShadowghost
2026-04-26Use AsNoTracking() when only readingShadowghost
2026-04-26Remove unnecessary materializationsShadowghost
2026-03-08Optimize Search and NextUp queriesShadowghost
2026-03-07Split BaseItemRepository and IItemRepositoryShadowghost