aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
...
* Merge branch 'issues/commercial/875-old-reports'Matthew Somerville2018-06-21-1/+2
|\
| * Show message on reports closed to updates.Matthew Somerville2018-06-21-1/+2
| |
* | Map Open311 CLOSED status to closed state if extended statuses enabled.Dave Arter2018-06-21-1/+13
|/ | | | | | | | | | | | | | | | | | | | | The Open311 specification has two values for a report's status: - open: it has been reported. - closed: it has been resolved. FixMyStreet previously mapped 'closed' to 'fixed - council', but this has been causing issues with Open311 endpoints that want to mark a FMS report as closed but not fixed. The mySociety Open311 additions introduce extended statuses, some of which represent a 'closed' state e.g. duplicate, no_further_action, but there are times when a report should simply be closed without any indication why - for example, if open311-adapter is being used to integrate with a council system which has a closed state not represented by the extended statuses. Marking a report as 'closed' on a council system and displaying that as 'fixed' on the FixMyStreet front end is not an ideal situation. This commit changes the mapping of the Open311 'closed' status to the 'closed' FMS state when extended_statuses is enabled.
* send unresponsive details back with category extrasStruan Donald2018-06-20-0/+6
| | | | | | | This allows the mobile app to explicitly detect when a body is unresponsive and display the category_extra text. For mysociety/fixmystreet-mobile#266
* Merge branch 'issues/commercial/1060-highway-flytipping-to-tfb'Matthew Somerville2018-06-20-0/+52
|\
| * [Buckinghamshire] Support extra recipient for road flytipping.Matthew Somerville2018-06-19-0/+52
| |
* | Merge branch 'issues/commercial/1064-main-road-br5'Matthew Somerville2018-06-20-5/+18
|\ \
| * | [Bromley] Deal with partial postcodes in search.Matthew Somerville2018-06-20-5/+18
| |/
* / cobrand hook to deny access to pagesStruan Donald2018-06-19-0/+15
|/ | | | | | | Add a check in the root controller `auto` to a cobrand hook that denies access if it returns true. This goes here so that cobrands and users are set up, which is not the case for `check_login_required`. Used to do things like deny site access unless the user is a superuser.
* Merge branch 'issues/commercial/1038-bromley-tfl-direct'Matthew Somerville2018-06-14-7/+65
|\
| * [Bromley] Include TfL reports on map, in grey.Matthew Somerville2018-06-14-4/+30
| |
| * [TfL] Add SendReport plugin to ignore contact selection.Matthew Somerville2018-06-14-0/+32
| |
| * If single_body_only set, skip contact body check.Matthew Somerville2018-06-14-3/+3
| | | | | | | | This assumes the SendReport code will deal with the issue.
* | Use correct created column in problem timeline.Matthew Somerville2018-06-13-0/+4
|/ | | | The User model now also has a created column.
* include automated field when editing contactsStruan Donald2018-06-11-0/+56
| | | | | | | | Display fields that are automatically filled in the contact editing form otherwise the data is lost. Also include the automated field in the form. Fixes #2136
* [Oxfordshire] use localtime in open311 get update callStruan Donald2018-06-08-0/+37
| | | | | | | | | | As Oxfordshire uses local time and not UTC use that when calling the get update script. Also handle a date with a timezone being passed on the server side. And add some tests in for the oxfordshire open311 endpoint Fixes mysociety/fixmystreet-commercial#1062
* error on bad update ids passed to contact formStruan Donald2018-06-05-6/+60
| | | | | Return an error if an id for either a hidden update or one not associated with the problem id is passed to the contact form.
* [Bromley] Include asset ID in title if given.Matthew Somerville2018-06-04-1/+11
|
* [Bromley] Add asset/PROW ID meta to attributes.Matthew Somerville2018-06-04-63/+9
|
* [BANES] Add extra columns to dashboard CSV export; behind new permissionDave Arter2018-05-31-0/+197
|
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-2/+129
|\
| * Add admin tickbox to close report to updates.Matthew Somerville2018-05-23-2/+44
| |
| * Add ability to close updates on reports.Matthew Somerville2018-05-23-0/+8
| | | | | | | | | | The inactive report script can mark matched reports as closed for updates. This removes the update form and signing up for updates from a report page.
| * Script to scrub old non-open reports.Matthew Somerville2018-05-23-0/+35
| |
| * Script to email/anonymize inactive users.Matthew Somerville2018-05-23-0/+28
| |
| * Refactor out some session functions.Matthew Somerville2018-05-23-0/+14
| |
* | Escape data attributes in template.Matthew Somerville2018-05-23-39/+28
|/ | | | | | This fixes a bug whereby a double quote in an item would not be JSON-escaped due to being HTML-escaped first, meaning it would not parse as JSON on the client.
* ajax endpoint to return closest address.Struan Donald2018-05-09-4/+22
| | | | | | | | /ajax/closest will return ajax with details of the closest address to the lat/lon passed in from the Bing geocoder. Tidy up find_closest() to use overloaded string rather than passing in whether you want a string or not.
* Add small test of category groups.Matthew Somerville2018-05-08-0/+16
|
* Remove needless category mappings.Matthew Somerville2018-05-08-1/+0
| | | | | Both filter categories and new report category lists went through mappings to different data structures, which doesn't seem to be needed.
* Merge branch 'collideoscope-anew'Matthew Somerville2018-05-02-1/+9
|\
| * Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-1/+9
| | | | | | | | | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* | [Open311] Hide fetched update if no data to show.Matthew Somerville2018-04-27-0/+2
| | | | | | | | If no text, photo, or state change, hide the update from display.
* | display the contents of report's extra field in adminStruan Donald2018-04-26-0/+76
|/ | | | | | | | Instead of just a Yes/No display a formatted list of values in extra. Has special handling for known fields otherwise just prints them out dumbly. Fixes #1809
* Merge branch 'collideoscope-anew'Matthew Somerville2018-04-26-4/+36
|\
| * Add way of validating data in report_form_extras.Matthew Somerville2018-04-23-4/+31
| |
| * Add new report hooks for cobrand report munging.Matthew Somerville2018-04-23-0/+1
| | | | | | | | | | One to alter the category after initially set, one to change any details of the report before saving to the database.
| * Have only one bodies_to_list variable.Matthew Somerville2018-04-23-0/+1
| |
| * Add a cobrand hook to table dashboard generation.Matthew Somerville2018-04-23-0/+3
| | | | | | | | This allows a cobrand to categorise the reports however it wishes.
* | Sign up inspector, not creator, on inspection.Matthew Somerville2018-04-25-2/+2
| |
* | Use explicit ordering for test queryDave Arter2018-04-23-1/+1
| | | | | | | | This hopefully works around some odd test failures on Travis.
* | Don’t trigger response templates unless problem state changesDave Arter2018-04-23-0/+12
| | | | | | | | | | | | | | Response templates won't be triggered unless the problem state or external status code is changed. Fixes #2075
* | [Open311] avoid spurious warning when params are undefStruan Donald2018-04-17-6/+49
| | | | | | | | | | | | | | If there was an undefined parameter passed to `_post` then generating the debug string would generate a warning about an undefined value in a concatenation. So, check for undefined params and substitute empty string to avoid.
* | [Open311] correctly handle one word names when splittingStruan Donald2018-04-17-0/+6
|/ | | | | | If a name only had a single word we were failing to split it and not setting `first_name`. Also refactor splitting out to a function so the regex is only in one place.
* [Oxfordshire] Fix admin exor download page.Matthew Somerville2018-04-16-4/+4
| | | | | 07906f40 changed the HTML date input form, but did not update the server parsing of the format.
* Merge branch 'mapit-proxy-api-key'Matthew Somerville2018-04-13-0/+13
|\
| * Provide API key to MapIt proxy if present.Matthew Somerville2018-04-12-0/+13
| |
* | Don’t send alert emails when archiving old reportsDave Arter2018-04-12-0/+35
|/
* Merge branch 'open311-update-problem-state'Matthew Somerville2018-04-11-1/+1
|\
| * [Open311] Generally store update state.Matthew Somerville2018-04-10-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, an update's problem_state was set via an Open311 update if: * the update timestamp was equal or greater to the report's last update; * the new state was visible, and not equal to the report's current state; * the update wouldn't change the report from a fixed state to another fixed state; * (Oxfordshire) the update wouldn't change the report from any open state to Open. It would also set the report's state to match if the report was currently visible. This mostly worked, but could lead to issues if e.g. the report started life in a non-confirmed state (e.g. we pulled it in already fixed from an external source), as then the update did not record its state and the update display got confused as to the state history. However it did mean there wasn't confusion if a later update than the Open311 update was made on the site itself. This new code will set an update's problem_state if: * the new state is visible; * the update wouldn't change the report from a fixed state to another fixed state; * (Oxfordshire) the update wouldn't change the report from any open state to Open. It will also set the report's state to match if the report is currently visible, changing state, and the update timestamp is equal or greater to the report's last update. So when the report state changes is unchanged, all the conditions still apply, but the update's problem_state is set more often (it will be set regardless of whether the timestamps align, or whether the state matches the report's current state). This could theoretically lead to issues elsewhere, e.g. if an update is left on a report on FixMyStreet and then an Open311 update is pulled in later (but with an earlier timestamp) that changes the state, the report state will not be updated due to the later update being made, though the Open311 update will list the state change, and then the later update might say it changed it back (if it recorded the current state in its problem_state), even though it technically did not. I think this issue is less worrying than the current situation, which can state that a random update has fixed a report when it was the previous update that did, and there will always be such issues with multiple sources of truth for a report status. An alternative would be to allow the Open311 update to override.