Skip to content

Prevent rating issues with a future store_date#567

Merged
bpepple merged 1 commit into
masterfrom
tweak-issue-ratings
Jul 22, 2026
Merged

Prevent rating issues with a future store_date#567
bpepple merged 1 commit into
masterfrom
tweak-issue-ratings

Conversation

@bpepple

@bpepple bpepple commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Add an Issue.is_released property (mirrors the existing is_foc_past_due pattern) that treats a null store_date as released but a future store_date as not yet released.
  • Guard the HTMX rating view (issue_ratings/views.py) so POSTing a rating to an unreleased issue is a no-op, and hide the interactive star widget for unreleased issues on the issue detail page via a can_rate context flag (computed the same way reading_lists already does).

Add an Issue.is_released property and use it to block/hide the star rating widget for issues that haven't been released yet, both in the HTMX rating view and the issue detail template.
@bpepple bpepple self-assigned this Jul 22, 2026
@bpepple bpepple added the enhancement New feature or request label Jul 22, 2026
@bpepple
bpepple merged commit 9b4912a into master Jul 22, 2026
2 checks passed
@bpepple
bpepple deleted the tweak-issue-ratings branch July 22, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant