current reviews-stats is confusing to users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
Medium
|
Michael Nelson | ||
software-center (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
the current review-stats API is confusing to the user. Because we provide global stats only the user may see:
- 10 reviews for foo, but only 5 of them are against ubuntu, the other against random PPAs
- 5 reviews for bar, but none against 10.10 versions of bar, all against 11.04
The result is that in the UI he sees e.g. 10 reviews, but clicking on the details he only sees some (or none).
Ideally we should only provide stats for the reviews the user can see. This is a problem of course because
it needs to be both fast on the server and the client and it needs to factor in multiple origin.
This is really a "discuss how we can do it" bugreport at this point :)
QA Notes:
Server functionality QA'd with:
1) http://
2) http://
3) http://
4) http://
mvo: can you pls add QA notes when this is qa'able with the USC client? Thanks!
Related branches
- Danny Tamez (community): Approve
-
Diff: 561 lines (+357/-41)7 files modifiedsrc/reviewsapp/management/commands/populate.py (+4/-4)
src/reviewsapp/migrations/0004_add_per_repo_and_origin_stats.py (+194/-0)
src/reviewsapp/models/__init__.py (+4/-0)
src/reviewsapp/models/reviews.py (+65/-30)
src/reviewsapp/tests/factory.py (+22/-0)
src/reviewsapp/tests/test_handlers.py (+7/-7)
src/reviewsapp/tests/test_models.py (+61/-0)
- Danny Tamez (community): Approve
-
Diff: 413 lines (+191/-34)8 files modifiedsrc/reviewsapp/api/handlers.py (+32/-5)
src/reviewsapp/api/urls.py (+10/-0)
src/reviewsapp/management/commands/update_stats.py (+2/-2)
src/reviewsapp/models/reviews.py (+22/-2)
src/reviewsapp/tests/factory.py (+1/-1)
src/reviewsapp/tests/test_command_update_stats.py (+2/-2)
src/reviewsapp/tests/test_handlers.py (+94/-21)
src/reviewsapp/tests/test_models.py (+28/-1)
tags: | added: kb-improvement |
Changed in rnr-server: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
Changed in rnr-server: | |
status: | Fix Committed → In Progress |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
description: | updated |
description: | updated |
Changed in rnr-server: | |
status: | Fix Committed → Fix Released |
Changed in rnr-server: | |
milestone: | none → 11.03 |
affects: | software-center → software-center (Ubuntu) |
An additional topic that came up was that we may want to weight differently depending on the version. I.e. reviews for old versions contribute differently to the average (that is no longer a average then ;)