aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/area_stats.t
Commit message (Collapse)AuthorAgeLines
* correctly handle average state changes of 0 days in area statsStruan Donald2017-10-04-0/+12
| | | | | If no problems have changed status then set the average to -1 so we can cope with an average status change of 0 days.
* move area stats page problems by status calc into databaseStruan Donald2017-10-04-0/+11
| | | | | | | | | | | Doing this calculation in code turns out to be much too slow. As part of this also fix an issue where if a report changed state last month but had a further comment this month that was counted as being a state change this month. Also tweak the 'last month' start date to be midnight so the stats don't change throughout the day.
* area stats page for staff usersStruan Donald2017-09-20-0/+211
Admin page to show some simple summary stats for an area. If the user has been assigned to an area then they will see the stats for that area. Superusers can pick which area they want to view. For mysociety/fixmystreetforcouncils#2