Skip to content

fix(store): reject fractional review ratings (#69) - #70

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/review-integer-rating
Jul 31, 2026
Merged

fix(store): reject fractional review ratings (#69)#70
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/review-integer-rating

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Closes #69

Summary

  • require review ratings to be numeric integers from 1 through 5
  • reject fractional values before they reach the Supabase INTEGER column
  • add regression coverage confirming invalid ratings never trigger an upsert

Verification

  • vitest run src/app/api/modules/[slug]/review/__tests__/route.test.ts — 10 passed
  • web TypeScript check — passed
  • git diff --check — clean

@ralyodio
ralyodio merged commit 0529409 into profullstack:master Jul 31, 2026
9 checks passed
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.

Review API accepts fractional ratings despite INTEGER schema

2 participants