aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin
Commit message (Collapse)AuthorAgeLines
* Consolidate summary statistics pages.Matthew Somerville2017-11-29-307/+1
|
* Refactor stats pages to their own controller.Matthew Somerville2017-11-29-0/+156
|
* correctly handle average state changes of 0 days in area statsStruan Donald2017-10-04-1/+6
| | | | | 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-9/+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/+218
| | | | | | | | | 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
* Merge branch 'issues/forcouncils/224-default-priority'Struan Donald2017-09-13-0/+1
|\
| * edit and display default response priority in adminStruan Donald2017-09-13-0/+1
| |
* | Merge branch '1836-slash-category-bug'Matthew Somerville2017-09-11-30/+0
|\ \
| * | Fix bug if first page after restart is admin.Matthew Somerville2017-09-11-30/+0
| |/ | | | | | | | | | | | | | | If the first page looked at after server launch was an admin one, the User object was getting a different schema attached than the one used by everything else (so e.g. the cobrand was not then available to it, causing a crash on a body page). Using auto instead of begin prevents this from happening, as the setup_request auto always runs first.
* / [Oxfordshire] Log when problems sent by RDI email.Dave Arter2017-09-11-0/+1
|/ | | | | | | | The timestamp of when a problem was included in an RDI is shown on the problem’s inspector form. Also check back and include any inspected reports that for some reason haven't been instructed yet. Fixes mysociety/fixmystreetforcouncils#223.
* Admin interface for editing report states.Matthew Somerville2017-08-31-0/+102
|
* Add site-wide extra fields for reports, and admin UI to manageDave Arter2017-08-17-0/+61
| | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743.
* translate defect category names in the controllerStruan Donald2017-08-16-1/+1
| | | | | | | As we're only passing category names through we need to do the translation in the controller and not the template Fixes mysociety/fixmystreetforcouncils#218
* [Oxfordshire] RDI file should show all inspections as happening on the same dateDave Arter2017-07-24-0/+1
| | | | Fixes mysociety/fixmystreetforcouncils#203
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-177/+21
|
* [Oxfordshire] Include nearest info in RDI output.Matthew Somerville2017-05-02-1/+9
|
* Tidy up find_closest* functions.Matthew Somerville2017-05-02-2/+3
| | | | | Allow find_closest to be called multiple times with only one lookup, and to return just its data, not a compiled string.
* Add customisable defect types.Dave Arter2017-03-23-3/+126
| | | | | | | | | Problems can have an associated defect type, that can be assigned during an inspection. Include an admin interface for managing these types, that can also be assigned on a per-category basis, currently available to the Oxfordshire cobrand. (Also include 'TM' in traffic management Exor RDI output.)
* Reports need external_id to be included in RDI downloadDave Arter2017-02-20-0/+1
| | | | | | | | | | | Reports in the generated Exor RDI file need to have an external_id so they can be linked to existing enquiries (PEMs) when the RDI is imported into Exor. There is a small window of opportunity for a report to be created, inspected and downloaded in an RDI before it's been sent to Exor via Open311 and had an external_id assigned. This commit closes that window by excluding reports from the RDI that don't have an external_id. Fixes mysociety/fixmystreetforcouncils#168
* [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-0/+219
| | | | | | | | | | The RDI file format encapsulates information about inspections that have taken place, and can be uploaded into Exor to create defects in bulk. This commit adds a page to the Oxfordshire cobrand's admin allowing RDI files to be generated and downloaded from FMS. For mysociety/fixmystreetforcouncils#127
* Add external_id field to ResponsePriority for use with ExorDave Arter2017-02-15-0/+1
|
* Update has_body_permission_to to allow superusers.Matthew Somerville2017-01-10-3/+2
|
* Add ‘description’ field to ResponsePriority modelDave Arter2016-10-19-0/+1
| | | | Used internally to provide more details about when a priority is applicable.
* Some minor admin fixesDave Arter2016-09-23-1/+1
| | | | | - Superusers couldn't view response priorities due to invalid $c->forward call - Navigation to other areas of admin was broken on response priority admin pages
* Refactor problem response priority into its own modelDave Arter2016-09-09-0/+107
This moves the response priority values from a cobrand-specific method to a full DB model, and includes management screens in the admin for administering them. For mysociety/fixmystreetforcouncils#66