aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-1/+1
|
* Merge branch 'offline-tests'Matthew Somerville2017-03-28-2/+2
|\
| * Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-1/+1
| |
| * Fix warning, use correct user object in delete logMatthew Somerville2017-03-17-1/+1
| |
* | Add customisable defect types.Dave Arter2017-03-23-4/+133
|/ | | | | | | | | 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.)
* Remove superfluous lists from Open311 JSON output.Matthew Somerville2017-03-17-35/+26
| | | | | | | The Open311 JSON output was wrapping each request parameter in a list. This was presumably to prevent the XML output including the parameters as attributes rather than children. A better way to fix this is to use the NoAttr parameter to XMLout which forces them to be children.
* Use name at time of moderation, include superusersMatthew Somerville2017-03-14-2/+7
| | | | This works better if e.g. a user stops being associated with a body.
* Store user object when deleting report.Matthew Somerville2017-03-14-1/+2
|
* Allow superuser to leave update when inspecting.Matthew Somerville2017-03-10-1/+2
|
* Check cobrand users list when admin merging users.Matthew Somerville2017-03-09-1/+8
|
* Make sure emails are lowercased in admin.Matthew Somerville2017-03-09-17/+14
|
* Only output appcache/manifest for shortlist users.Matthew Somerville2017-02-28-2/+8
| | | | The interception of 404s etc is too much of an inconvenience.
* 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
* Send open reports regardless of current stateDave Arter2017-02-20-1/+1
|
* [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-1/+220
| | | | | | | | | | 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
* [Oxfordshire] Add initials field to admin user edit formDave Arter2017-02-15-0/+13
|
* Allow cobrands to control which states affect reputationDave Arter2017-02-15-1/+3
| | | | | | | | | | | | Rather than assigning +1 to a user's reputation every time a report is inspected, this allows cobrands to specify which states should increment or decrement the reputation value when a report is inspected. The default behaviour is for reputation to never be changed, but the Oxfordshire cobrand will increment the reputation when a report is marked as 'action scheduled'. For mysociety/fixmystreetforcouncils#119
* Clarify ‘inspected’ behaviourDave Arter2017-02-15-5/+10
| | | | | | A report is now considered 'inspected' if its state was changed by an inspector. Additionally, an AdminLog entry is created so the time of inspection and inspector can be recorded.
* Add external_id field to ResponsePriority for use with ExorDave Arter2017-02-15-0/+1
|
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-6/+3
|
* Use Token params for redirect on loginpezholio2017-02-15-3/+7
| | | | | Tokens can include a 'p' field in their data to set query params for the post-login redirect URL.
* Redirect to category-filtered /reports on loginDave Arter2017-02-14-1/+20
| | | | If the user has a from_body and at least one category set.
* Follow redirect to /admin after login if allowedDave Arter2017-02-14-1/+1
|
* Add shortlist filterspezholio2017-02-07-5/+34
|
* Return JSON if `ajax` in paramspezholio2017-01-31-0/+4
|
* Merge branch 'inspect-save-to-shortlist'Matthew Somerville2017-01-31-0/+6
|\
| * Redirect to shortlist if user has shortlist perms.Matthew Somerville2017-01-24-0/+6
| | | | | | | | | | Assume that if they inspect and save a report, they want to go back to their shortlist.
* | Lowercase email when signing in.Matthew Somerville2017-01-26-0/+1
|/
* Redirect after user creation/editDave Arter2017-01-19-7/+9
| | | | | Solves a minor bug where it was difficult to create a new user and immediately assign permissions, as the page didn't show the appropriate permissions UI.
* Merge branch 'listshort'Matthew Somerville2017-01-12-11/+90
|\
| * Make sure csrf_time is deleted after use.Matthew Somerville2017-01-12-2/+3
| | | | | | | | | | | | If an out-of-date token was passed to check_csrf_token, then no new token would be output on the error page because csrf_time was still present.
| * Add shortlist buttons to report lists.Matthew Somerville2017-01-12-9/+87
| | | | | | | | | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list.
* | Allow staging sites to turn off appcache.Matthew Somerville2017-01-10-0/+9
| |
* | Update has_body_permission_to to allow superusers.Matthew Somerville2017-01-10-7/+5
|/
* Allow editing of ResponseTemplate state in adminDave Arter2017-01-10-0/+1
| | | | This includes a refactor of the state dropdown field into its own template for easy reuse.
* Merge branch 'issues/forcouncils/20-offline-inspecting'Matthew Somerville2016-12-16-23/+71
|\
| * Add offline storing of inspect forms.Matthew Somerville2016-12-16-2/+7
| | | | | | | | | | | | | | | | | | | | This allows the inspect form to be submitted when offline, with the data saved in localStorage, the number of saved forms shown in the banner, and the forms to be uploaded when back online. It copes if you go back to a report after having submitted the form, and if the back-online submission fails due to CSRF failure, retrying once with a new token.
| * Add offline support of static files/fallback page.Matthew Somerville2016-12-16-0/+32
| | | | | | | | | | Use a list to store JavaScript files, so it can be shared between the HTML footer and the appcache manifest.
| * Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-21/+32
| |
* | Merge branch 'issues/forcouncils/108-pick-up-a-priority'Matthew Somerville2016-12-15-4/+27
|\ \ | |/ |/|
| * Update priorities in inspect form on cat. change.Matthew Somerville2016-12-15-4/+27
| | | | | | | | | | Different categories may have a different list of priorities, so store them all and update as the category changes.
* | Make it clearer that report is closed when marked as duplicateDave Arter2016-12-13-0/+7
| | | | | | | | | | | | - Record state change when leaving update and marking as duplicate - Change save button wording to match problem state when inspecting - Make it clearer that updates marking a report as duplicate actually close the report
* | Display nearby candidate reports when marking as duplicateDave Arter2016-12-13-9/+11
| | | | | | | | | | | | | | | | - Use Problem->pin_data for single report page - Promote markers_highlight to fixmystreet.maps API We want to highlight map pins on the duplicate report selection UI, so let's use what's already there instead of writing something new. - Make sure duplicate report pins aren’t draggable
* | Use nearby problems for duplicate suggestions instead of bounding box of mapDave Arter2016-12-13-0/+26
| |
* | Add test for correct display of duplicate reportDave Arter2016-12-13-0/+3
| |
* | Store and display selected duplicate reportDave Arter2016-12-13-1/+1
|/
* [Zurich] Fix 500 error when editing superusersDave Arter2016-12-06-1/+1
| | | | | | | | | | | | The Zurich::admin_type function was setting $c->stash->{body}, meaning that when trying to edit a superuser the 'fetch_contacts' function wasn't being called, causing an "Can't call method "all" on an undefined value" error as $c->stash->{live_contacts} wasn't ever being set. Fixed by changing the conditional to simply determine whether fetch_contacts needs to be called. Included a regression test that meant a small addition to the MapItZurich mock.
* Better path for showing config git version.Matthew Somerville2016-12-02-1/+1
| | | | | | The default cobrand does not have a template directory, so the directory change to it was not working. Use the root directory of the repository instead.
* Update problem lastupdate column on inspect save.Matthew Somerville2016-12-02-0/+1
|
* [UK] Hide usrn/asset_id Open311 fields.Matthew Somerville2016-11-11-1/+1
|