Skip to content

fix(paroche): report real list totals instead of page-slice length - #508

Merged
forkwright merged 1 commit into
mainfrom
fix/apotheke-list-counts
Jul 2, 2026
Merged

fix(paroche): report real list totals instead of page-slice length#508
forkwright merged 1 commit into
mainfrom
fix/apotheke-list-counts

Conversation

@forkwright

Copy link
Copy Markdown
Owner

Paginated list handlers reported total = items.len() as u64 — the page-slice length, not the collection total — so pagination metadata was wrong for any list larger than one page.

Adds 9 count_* repo fns in apotheke (mirroring the #372 count_tracks pattern) and fixes all 10 affected handlers (movie/book/comic/audiobook/tv/news/podcast/music-release-groups/wanted via the repo fns; indexer via an inline SELECT COUNT(*) matching its existing inline-sqlx style). Each now reports the real total.

Gate: kanon gate --full green (fmt, check, clippy -D warnings --all-targets, nextest 1731/1731, deny, lint).

Closes #478

Closes #478

Gate-Passed: kanon 0.1.5 +stages:fmt,check,clippy,nextest,lint sha:25f58a174c9001228d1d40e626972b3dd97e9c2b
@forkwright
forkwright merged commit 2056a1c into main Jul 2, 2026
12 checks passed
@forkwright
forkwright deleted the fix/apotheke-list-counts branch July 2, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list handlers report page-slice length as total count (movie/book/comic/news/podcast/...)

1 participant