Build ErsatzTV Image / CI image pin matches docker/ci (pull_request) Successful in 5s
Build ErsatzTV Image / Docs update reminder (pull_request) Successful in 9s
Build ErsatzTV Image / decisions.md append-only (pull_request) Successful in 7s
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 7m10s
Build ErsatzTV Image / Functional E2E (curl contracts) (pull_request) Successful in 5m12s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 14m53s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (pull_request) Successful in 12m39s
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (pull_request) Successful in 14m31s
The all-items endpoint fired ten index searches with limit:0 (every hit), so a broad authenticated query materialized the whole index into one response. Add optional pageNum/pageSize (clamped 1..1000; pageNum 0..2_000_000 so skip can't overflow int) and an additive per-kind Totals on the response; the SPA add-all flow now pages to completeness instead of a single unbounded fetch. - SearchController.SearchAllItems: clamp params (Logs §1 precedent), map Totals - QuerySearchIndexAllItemsHandler: skip=pageNum*pageSize, limit=pageSize, read SearchResult.TotalCount per kind - SearchResultAllItemsResponseModel: additive Totals (frozen-v1-safe) - web/src/api/search.ts: getSearchAllItems paging params + getAllSearchItemIds (pages until each kind hits its total; empty-page safety break) - tests: controller clamp/thread/totals, handler skip/limit/totals, SPA paging - docs: decisions.md 2026-07-18 (#293), api-conventions.md §5; regenerated OpenAPI Design: issue option (a) full pagination, operator-confirmed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
27 lines
647 B
C#
27 lines
647 B
C#
namespace ErsatzTV.Application.Search;
|
|
|
|
public record SearchResultAllItemsViewModel(
|
|
List<int> MovieIds,
|
|
List<int> ShowIds,
|
|
List<int> SeasonIds,
|
|
List<int> EpisodeIds,
|
|
List<int> ArtistIds,
|
|
List<int> MusicVideoIds,
|
|
List<int> OtherVideoIds,
|
|
List<int> SongIds,
|
|
List<int> ImageIds,
|
|
List<int> RemoteStreamIds,
|
|
SearchResultAllItemsTotals Totals);
|
|
|
|
public record SearchResultAllItemsTotals(
|
|
int MovieCount,
|
|
int ShowCount,
|
|
int SeasonCount,
|
|
int EpisodeCount,
|
|
int ArtistCount,
|
|
int MusicVideoCount,
|
|
int OtherVideoCount,
|
|
int SongCount,
|
|
int ImageCount,
|
|
int RemoteStreamCount);
|