Conversation
…for anonymous requests - Add getCachedAllTasksWithVoteInfo() to votes server cache (10min TTL) - Extend invalidateVoteCaches() to clear the new cache entry - Wrap getAllTasksWithVoteInfo() in the cache in vote_statistics.ts - Invalidate vote caches on createTask() / updateTask() (task grade affects estimatedGrade) - Set public s-maxage=300 stale-while-revalidate=600 for anonymous /votes responses - Skip CDN header on degraded responses to avoid pinning broken pages at CDN - Add page_server.test.ts covering header and data return for anonymous/logged-in/degraded cases Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…w notes
- Remove `as unknown as import('@prisma/client').TaskGrade` casts in cache.test.ts
(TaskGrade from '$lib/types/task' is directly assignable)
- Rename dataOk → fetchFailed and invert condition for positive-default readability
- Simplify load() type annotation: Awaited<ReturnType<...>> → TaskWithVoteInfo[]
- Add result!. non-null assertions in page_server.test.ts to satisfy SvelteKit's
void | PageData inference on load() return type
- Add review.md summarising findings (0 critical/high, 5 nit fixes applied)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… branch completion Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthrough投票キャッシュ層に Changes投票キャッシュ拡張と投票ページの堅牢化
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
close #3708
Summary by CodeRabbit
リリースノート
パフォーマンス改善
バグ修正