aboutsummaryrefslogtreecommitdiffstats
path: root/t/Mock/MapIt.pm
Commit message (Collapse)AuthorAgeLines
* [Buckinghamshire] Update flytipping handling.Matthew Somerville2018-08-07-0/+1
| | | | | | Allow flytipping reporting on cobrand and .com, with road reports going to Bucks Confirm and email, and non-road reports going to district and Bucks emails.
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-0/+3
| | | | | | | | | | | Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption.
* 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.
* optionally convert from EPSG:27700 to WGS84 on report importStruan Donald2018-03-29-0/+1
| | | | | | | When pulling reports in over Open311 it's sometimes useful to be able to accept reports with Easting/Northing rather than latitude/longitude. This adds an option to GetServiceRequests to convert them as they come in.
* Allow ward page to show multiple wards.Matthew Somerville2017-10-06-4/+12
| | | | | URLs have to be manually constructed, but specifying multiple ward names separated by "|" will show all those wards and their reports on the map.
* area stats page for staff usersStruan Donald2017-09-20-2/+8
| | | | | | | | | 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
* [Oxfordshire] tests for response time messagesStruan Donald2017-09-11-0/+1
|
* [Bristol] Fix 500 error on /report/newDave Arter2017-08-21-0/+1
|
* [UK] Stop nearest request with scientific notationMatthew Somerville2017-05-18-1/+2
| | | | | | If the longitude was very close to 0, it was being sent as e.g. 1e-6 in the request to MapIt. Mock out the Bing query so that this can be tested (the closest.t tests were previously always being skipped).
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-0/+14
|
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-31/+66
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-0/+3
|
* Allow user to have an area assigned in adminDave Arter2016-08-22-0/+23
|
* Switch final few JSON uses to JSON::MaybeXS.Matthew Somerville2016-02-09-1/+1
|
* Move test mocks to their own directory.Matthew Somerville2016-01-27-0/+51