AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
5 stars 2 forks source link

fix: inaccurate review statistics on filter #191

Closed davidlhw closed 1 month ago

davidlhw commented 2 months ago

closes #181

Context

When user want to filter a professor's review by course, the filter checkbox MUST reflect the correct statistics of how many review the user should expect when they filter by that course

Changes

allow review count api to accept both course code and prof slug to count more accurately by:

How to Test

  1. search prof vivien soon
  2. see that stats now accurately reflects 0 reviews for this prof for the mod COR-IS1702

Preview / Screenshots

image

Checklist

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
afterclass-io-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 4:46pm