| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
| |
addresses
This adds a cobrand hook to validate the email address provided when editing a contact
in the admin.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Co-Authored-By: Struan Donald <struan@exo.org.uk>
For https://github.com/mysociety/fixmystreet-commercial/issues/1808
|
| |
|
| |
|
|
|
|
| |
New unitary branding, and remove County from name.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Drops ‘Borough Council’ suffix from area names
|
| |
|
|
|
|
| |
Fixes mysociety/fixmystreet-freshdesk#102
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Co-authored-by: Matthew Somerville <matthew@mysociety.org>
Configured to allow:
- updates only from original reporter
- close updates from fetch reports
- use OSM geocoder
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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
|
|\ \ |
|
| |/
|/| |
|
|/
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Prevent people from using very long titles.
Fixes mysociety/fixmystreet-commercial#1344
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
`report_check_for_errors` now fetches the cobrand for the current report
and, if present, runs `report_validation` method from cobrand over the
report.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Check selecting a category and selecting a sub category
|
|
|
|
|
| |
Map ward names on their short names, so any processing
applies equally to URL and names returned by MapIt.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
One to alter the category after initially set, one to change
any details of the report before saving to the database.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
URLs have to be manually constructed, but specifying multiple ward names
separated by "|" will show all those wards and their reports on the map.
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|