CosplayersMissingCover stat is hardcoded to 0 — never wired up #97
Closed
opened 2026-07-12 15:44:47 +00:00 by Ai_Agent
·
0 comments
Labels
Clear labels
AI Gen
area:auth
area:backend
area:ci
area:db
area:frontend
area:shared
good first issue
Need Triage
page:admin-users
page:album-detail
page:albums
page:cosplayer-detail
page:cosplayers
page:home
page:jobs
page:login
page:photos
page:register
page:settings
page:stats
page:user
performance
priority:critical
priority:high
priority:low
priority:medium
type:docs
type:refactor
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Autogenerated By AI
Authentication, JWT, refresh tokens
Lactose API (controllers, repos, services, models)
Docker, CI/CD, Gitea Actions
EF Core, migrations, pgvector
MilkStream WASM client (Blazor UI, SCSS, components)
Butter shared library (DTOs, enums, MIME types)
Good for new contributors
Needs to be categorized by a Human
Admin user management (/Users)
Album detail page (/albums/{id})
Albums list (/albums)
Cosplayer detail page (/cosplayer/{id})
Cosplayers list (/cosplayers)
Home page (/)
Background jobs page (/Jobs)
Login page (/login)
Photos page (/photos)
Register page (/Register)
Settings page (/Settings)
Statistics page (/Stats)
User profile page (/User/{id})
Performance or scalability concern
Blocker / must fix immediately
Must fix / urgent
Nice to have
Should fix
Documentation
Code cleanup or refactoring
Something is not working
This issue or pull request already exists
New feature
Need some help
Something is wrong
More information is needed
This won't be fixed
Milestone
No items
No Milestone
v1.0 - Initial Release
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MilkyShots/MilkyShots#97
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The
CosplayersMissingCoverstatistic on the Stats page is rendered in the UI (Stats.razor:48) and has a DTO property (StatsDto.cs:117), but the actual database computation was never implemented.Current state
StatsDto.cs)CosplayersMissingCoverexists — XML doc: "Not wired yet — reserved for future use."Stats.razor:48)_stats.CosplayersMissingCoverStatsRepository.cs:93)dto.CosplayersMissingCover = 0Fix
In
Lactose/Repositories/StatsRepository.cs, replace line 93 with a query that counts people (cosplayers) who either have no albums, or whose albums all lack aCoverAssetId. Something like:This mirrors the existing
AlbumsMissingCoverlogic (line 91) which counts albums whereCoverAssetId == null.