aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* Remove use of $c from various functions.M Somerville2020-08-06-94/+96
| | | | This means these functions can more easily be used in a non-web context.
* Add database index for user full text search.M Somerville2020-08-06-18/+15
|
* Perform translate on full text search query too.M Somerville2020-08-06-2/+4
|
* Add extra ordering to search query to force full text index use.Matthew Somerville2020-08-06-1/+6
|
* Add photo upload field to inspector formChris Mytton2020-08-06-0/+7
| | | | | This adds the code for photo uploads from the regular update form to the inspector form, and adds details to the documentation.
* Do not error in export if report has bad category.M Somerville2020-08-04-1/+1
| | | | | | If category groups are enabled, the CSV export includes a subcategory, but it was only fetching a valid groups value if the row's contact was found.
* Lowercase contact email when looking for user.Matthew Somerville2020-08-03-1/+1
|
* [Zurich] SDM can do fewer with internal reports.Matthew Somerville2020-07-31-2/+5
|
* [Zurich] SDMs immediately close internal reports.Matthew Somerville2020-07-31-4/+9
|
* [Zurich] Add button to remove internal flag.Matthew Somerville2020-07-31-13/+33
|
* [Zurich] No admin emails on internal reports.Matthew Somerville2020-07-31-0/+1
|
* [Zurich] Show internal reports on their own page.Matthew Somerville2020-07-31-0/+7
| | | | | The new internal reports is displayed the same as the main summary, and all reports shows both internal/non-internal.
* [Zurich] Mark reports by flagged users non-public.Matthew Somerville2020-07-31-0/+9
|
* [Zurich] Factor out admin index ordering function.Matthew Somerville2020-07-31-13/+14
|
* Add database index for full text search.Matthew Somerville2020-07-31-33/+50
|
* Prefetch user bodies in admin user search.Matthew Somerville2020-07-31-2/+5
|
* [fixmystreet.com] Show recaptcha on /around.Matthew Somerville2020-07-29-1/+1
| | | | | The hidden embedded new report form on /around needs to be included, otherwise report submission could fail.
* Merge branch 'osm-aerial-tiles'Matthew Somerville2020-07-16-10/+4
|\
| * Add aerial option to OSM maps.Matthew Somerville2020-07-16-10/+4
| |
* | Spot user set on update not at object creation.Matthew Somerville2020-07-16-0/+20
|/ | | | | | | The changes in 67823bc78 create the necessary metadata at the creation of a Comment object, but if the user is not included at that point but later (as is done by the normal public update flow), then it would not be created. Wrap the user accessor so we can make sure it is set.
* Centralise update creation to include fields.Matthew Somerville2020-07-14-63/+43
| | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Fix non-JS aerial tile display.Matthew Somerville2020-07-14-6/+6
|
* Merge branch 'issues/commercial/1870-aerial-maps'Matthew Somerville2020-07-13-20/+26
|\
| * Add aerial view toggle to Bing Maps & subclasses.Struan Donald2020-07-10-1/+12
| | | | | | | | | | Co-authored-by: Dave Arter <davea@mysociety.org> Co-authored-by: Matthew Somerville <matthew@mysociety.org>
| * Use up-to-date Bing map URLs.Matthew Somerville2020-07-10-11/+10
| |
| * [Bromley] Tidy up tilma URL bits.Matthew Somerville2020-07-10-10/+6
| |
* | [Northamptonshire] handle further investigation stateStruan Donald2020-07-13-4/+19
| | | | | | | | | | | | If an update has an external_status code of further we display 'Under futher investigation' on the site. This is for acknowledging comments from users.
* | [Open311] Make exclude field list case-insensitive.Matthew Somerville2020-07-10-1/+1
|/
* [UK] Ignore Highways England extra data.Matthew Somerville2020-07-08-1/+2
| | | | | | | | | If a report is made on a HE road, but it is not to be sent to HE (so the user has picked it's not on the HE road) and the category name is shared between council and HE, then the extra HE data (area, road, & sector) is still saved on the report, and our open311-adapter rejects it due to the additionnal information present. So make sure we remove this data before sending.
* [UK] More consistent use of open311_extra_data.Matthew Somerville2020-07-08-78/+27
| | | | | Have function call two functions set in subclasses, clearer and fewer overrides needed.
* [Buckinghamshire] Handle HE flytipping reports.Matthew Somerville2020-07-08-0/+1
| | | | | We do not want to recategorise a report into the off-road category if it is going to be sent to Highways England.
* Merge branch 'hibp'Matthew Somerville2020-07-08-14/+40
|\
| * Add option to check password on Have I Been Pwned.Matthew Somerville2020-07-07-14/+40
| | | | | | | | | | | | | | If switched on, sends first five letters of the SHA1 hash of the entered password to HIBP's API, which then returns all matching hashes in their database of breached passwords. If we find a match, tell the user they need to pick a different password.
* | Merge branch 'fix-moderation-diff-display'Matthew Somerville2020-07-08-4/+20
|\ \
| * | Provide list of keys to ignore in moderation diff.Matthew Somerville2020-07-07-1/+15
| | | | | | | | | | | | | | | This is a current full list of extra keys that could be set on a report that could confuse the moderation diff display.
| * | Only show removed in moderation diff if non-blank.Matthew Somerville2020-07-07-1/+1
| | |
| * | Handle arrayrefs in moderation extra diff display.Matthew Somerville2020-07-07-1/+3
| | |
| * | Make sure string_diff does not return undef.Matthew Somerville2020-07-07-1/+1
| |/ | | | | | | | | As string_diff is used in hash values, it must always return something, otherwise you could end up with e.g. category => 'extra'.
* / Better sort admin user table.Matthew Somerville2020-07-07-14/+9
|/ | | | | Sort the table when showing search results, and show users without name at the bottom, rather than at the top.
* Merge branch 'rewrite-open311-update-reports'Matthew Somerville2020-07-07-110/+1
|\
| * Factor out/default Open311 construction object.Matthew Somerville2020-07-06-29/+1
| | | | | | | | This simplifies the code wherever used.
| * Rewrite open311-update-reports to share code.Matthew Somerville2020-07-06-81/+0
| | | | | | | | | | Make GetUpdates and GetServiceRequestUpdates share a common base; spot all visible states.
* | [Hackney] skip hackney categories for TfL red routesStruan Donald2020-07-06-0/+7
| | | | | | | | | | | | 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
* | Merge branch 'issues/commercial/1934-bristol-cobrand-categories'Struan Donald2020-07-06-1/+4
|\ \ | |/ |/|
| * [Bristol] Ensure categories edited via the admin are visible on cobrandDave Arter2020-07-03-1/+4
| |
* | [Hackney] Use cobrand feature config for email envelope domainDave Arter2020-07-02-0/+4
| |
* | Allow cobrand to provide custom domain for VERP addressesDave Arter2020-07-02-4/+7
| |
* | [Hackney] Add geocoder override for Teale StreetDave Arter2020-07-02-1/+9
| |
* | [Hackney] Query WFS server differently when finding park/estateDave Arter2020-07-02-12/+17
| | | | | | | | | | | | | | | | For some reason the BBOX query would return results that weren’t actually intersecting the BBOX causing false positives and misdirected reports. This change uses the Intersects query instead which is more accurate.
* | [Hackney] Refine geocoder results displayDave Arter2020-07-02-0/+21
| |