Skip to content

Add ability for users to rate issues#558

Merged
bpepple merged 9 commits into
masterfrom
48-add-ability-for-users-to-rate-issues
Jul 21, 2026
Merged

Add ability for users to rate issues#558
bpepple merged 9 commits into
masterfrom
48-add-ability-for-users-to-rate-issues

Conversation

@bpepple

@bpepple bpepple commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a 5-star community rating for issues (issue_ratings app), separate from the existing personal collection rating — an HTMX widget on the issue detail page, plus average_rating/rating_count on the issue detail API endpoint.
  • Refactor the now-duplicated rating model/view/template logic shared with reading_lists' existing rating feature into comicsdb (AbstractRating, parse_rating_action/apply_rating_update, a shared rating_widget.html partial), and trim average_rating/rating_count back off the high-traffic issue list endpoint, keeping them on detail only.
  • Keep a user's personal collection rating (user_collection) and their community issue rating in sync via a signal, and add a backfill_issue_ratings management command to sync pre-existing collection ratings for users upgrading from before this feature.
ratings_detail_1 ratings_detail_2

@bpepple bpepple linked an issue Jul 14, 2026 that may be closed by this pull request
@bpepple bpepple self-assigned this Jul 14, 2026
@bpepple bpepple added enhancement New feature or request api An API bug/feature labels Jul 14, 2026
@bpepple
bpepple marked this pull request as ready for review July 14, 2026 13:42
bpepple added 3 commits July 20, 2026 07:33
Annotate average_rating/rating_count on the queryset instead of running a separate aggregate query, select_related edited_by so the template's issue.edited_by.username lookup doesn't trigger its own query, and seed the series FK cache on the fetched next/previous issue so rendering their __str__ doesn't re-query the already-known series.
@bpepple
bpepple merged commit 8a90c41 into master Jul 21, 2026
2 of 4 checks passed
@bpepple
bpepple deleted the 48-add-ability-for-users-to-rate-issues branch July 21, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api An API bug/feature enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability for users to rate issues

1 participant