Review statistics are calculated in Python

Bug #673953 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ratings and Reviews server
Fix Released
Medium
Danny Tamez

Bug Description

The show_reviews_stats view method currently calculates aggregate stats by iterating the database results-set.

We can calculate the average using DB-aggregates instead. In the future if we need something other than a simple aggregate function (such as weighting ratings according to some sort of author-cred-ranking) we might want to create a db-model for aggregations that are pre-calculated.

Danny Tamez (zematynnad)
Changed in rnr-server:
assignee: nobody → Danny Tamez (zematynnad)
status: Confirmed → In Progress
Changed in rnr-server:
status: In Progress → Fix Committed
tags: added: proj-rnr-10.12
tags: added: kb-defect
tags: added: qa-untestable
Changed in rnr-server:
status: Fix Committed → Fix Released
Changed in rnr-server:
milestone: none → 10.12
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.