aboutsummaryrefslogtreecommitdiffstats
path: root/t/Mock/MapIt.pm
Commit message (Collapse)AuthorAgeLines
* [Hackney] Allow editing & addition of contacts with special destination ↵Dave Arter2020-08-24-0/+2
| | | | | | | addresses This adds a cobrand hook to validate the email address provided when editing a contact in the admin.
* [Hackney] skip hackney categories for TfL red routesStruan Donald2020-07-06-0/+1
| | | | | | Because Hackney doesn't have any matching categories for TfL red routes skip sending the body, otherwise you get a "no contact details" message when you click on a red route in Hackney
* [Hackney] Initial cobrand design & privacy policy amendmentMartin Wright2020-07-02-0/+1
| | | | | | Co-Authored-By: Struan Donald <struan@exo.org.uk> For https://github.com/mysociety/fixmystreet-commercial/issues/1808
* [UK] Remove Somerset West and Taunton special destination handlingDave Arter2020-05-29-1/+0
|
* [HE] add a how did you hear about us questionStruan Donald2020-04-03-0/+1
|
* [Buckinghamshire] Update for change to unitary.Martin Wright2020-03-31-4/+4
| | | | New unitary branding, and remove County from name.
* [TfL] Allow bus stop reports outside London.Matthew Somerville2020-02-24-0/+1
| | | | | | | | | | | | | After this change, you can safely add the TfL body to other councils (namely the ones surrounding London that include TfL bus stops); clicking in those councils on other cobrands will have no change, as the TfL body will be fully ignored on a non-London council, but on the TfL cobrand it will allow it for e.g. the selection of bus stops outside London. It removes the body rather than just all its categories to prevent a "We do not have details of the other body covering this area" message appearing.
* [SortMySign] Tweaks needed for tests.Matthew Somerville2020-01-21-0/+1
|
* [TfL] Server-side red route lookup for new report categoriesDave Arter2019-12-12-0/+1
| | | | | | | | | | | | | | | | | | | | This commit checks the RedRoutes WFS layer on tilma to determine if the point at which a new report is being made is on a TfL red route. The returned categories are then adjusted accordingly: - If on a red route, all TfL categories as well as borough categories specific to street cleaning are returned. - If not on a red route, all borough categories as well as TfL categories that don't require a red route are returned. - This category tweaking doesn't happen on the TfL cobrand, as the JS handles it by signposting users to fixmystreet.com for borough reports. Doing the lookup server side means the app always shows the right categories to the user and prevents them e.g. sending a borough flytipping report to TfL. Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1716
* [TfL] Use London Boroughs for inspector areas and wards on /reportsDave Arter2019-12-09-0/+5
| | | | Drops ‘Borough Council’ suffix from area names
* Pre-filter ‘all reports’ by area for inspectorsDave Arter2019-12-09-0/+2
|
* [Peterborough] add title length restrictionStruan Donald2019-12-03-0/+1
| | | | Fixes mysociety/fixmystreet-freshdesk#102
* [UK] Fix Greenwich RSS feed.Matthew Somerville2019-11-15-0/+2
|
* [Cheshire East] Initial cobrand.Matthew Somerville2019-11-10-0/+1
|
* [IsleOfWight] Initial cobrand.Struan Donald2019-09-27-0/+1
| | | | | | | | | Co-authored-by: Matthew Somerville <matthew@mysociety.org> Configured to allow: - updates only from original reporter - close updates from fetch reports - use OSM geocoder
* Set default mock area to default browser test areaMatthew Somerville2019-08-07-2/+2
| | | | | | This should make it easier to add browser tests as you won't have to get the click precisely on the right pixel in order to have it match the correct area.
* Update UI text when selecting a private categoryDave Arter2019-07-09-0/+2
| | | | | | | This makes it clearer that all details for a report made in a private category will not be shown publicly. Fixes mysociety/fixmystreet-commercial#1405
*-. Merge branches 'move-up-bodies-set' and 'more-frontend-tests'Matthew Somerville2019-06-06-2/+5
|\ \
| | * [Buckinghamshire] Add flytipping front end test.Matthew Somerville2019-06-05-0/+2
| |/ |/|
| * Set fixmystreet.bodies sooner.Matthew Somerville2019-06-04-2/+3
|/ | | | | | | | | There is a small bug where if you go to a two-tier location, pick a category that is sent to one of the two ("These will be sent to" text updates to only show that one), then click elsewhere on the map, the "These will be sent to" text resets to show both bodies. This happens because fixmystreet.bodies is reset after the text has been correctly set by the category change() setup (called on pin move also).
* [Hounslow] Don't fetch non_public reports at all from Open311Dave Arter2019-06-04-0/+1
|
* [Northamptonshire] cobrand specific front end testsStruan Donald2019-05-28-0/+1
|
* [Northamptonshire] cobrand specific testsStruan Donald2019-05-28-1/+1
|
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-0/+1
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-3/+7
|
* Include areas in mock MapIt postcode calls.Matthew Somerville2019-01-15-1/+9
|
* Activate test_mode on JS testing.Matthew Somerville2018-12-12-1/+1
| | | | | | This is so front-end tests will not try and send email, or call Gaze. Various co-ordinates have to be updated because the default zoom level of the map has now changed.
* [UK] server side cobrand specific validationStruan Donald2018-11-26-0/+3
| | | | | | `report_check_for_errors` now fetches the cobrand for the current report and, if present, runs `report_validation` method from cobrand over the report.
* Update areas when moving report pinDave Arter2018-10-17-0/+1
| | | | | | | | The change in report_inspect.t from WODC to Oxford City was necessary because moving reports to a location not in Mock::MapIt was resulting in an empties bodies_str in the "test category/body changes" test. Fixes #2181.
* front end category testsStruan Donald2018-10-09-0/+1
| | | | Check selecting a category and selecting a sub category
* [UK] Fix ward pages containing ampersands.Matthew Somerville2018-10-03-2/+2
| | | | | Map ward names on their short names, so any processing applies equally to URL and names returned by MapIt.
* Add some Cypress tests for the map list pages.Struan Donald2018-10-02-0/+5
| | | | | | | | Including testing the filters, viewing a report, and pushState. Plus a mock MapIt handler for returning a GeoJSON outline, to make the page load. The BASE_URL is also set to the same as the test server, as that is used in list link output.
* [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