aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-4/+6
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* Refactor datetime inflation.Matthew Somerville2019-05-02-220/+32
|
* Fix some incorrect timezone code.Matthew Somerville2019-05-02-8/+9
| | | | | | | | | Times in the database should be stored in the application server's local timezone, by e.g. using `current_timestamp`, or by setting that timezone explicitly before storage (the database columns are all without timezone so any timezone info is silently ignored). Reports & updates fetched via Open311 and offline updates were being put into the TIME_ZONE setting if present, meaning they were stored incorrectly for future usage.
* Stop warning in contact test.Matthew Somerville2019-05-02-0/+2
|
* [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-1/+40
|
* [Open311] handle bad FixMyStreet id in updatesStruan Donald2019-04-09-0/+35
| | | | | If an update has a fixmystreet id in it check that it looks like an integer and if not issue a warning and skip the update.
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-1/+28
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-6/+11
|\
| * Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-6/+11
| |
* | [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-4/+29
|/
* [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-9/+12
|
* [UK] Fix two-tier message in confirm sent email.Matthew Somerville2019-03-27-3/+4
|
* [Buckinghamshire] Send drainage reports via email as well as Open311Dave Arter2019-03-20-1/+16
| | | | Fixes mysociety/fixmystreet-commercial#1306
* Merge branch 'open311-hook-update-params'Matthew Somerville2019-03-12-29/+45
|\
| * [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-30/+45
| | | | | | | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* | [open311] optionally use fixmystreet_id to match update to problemStruan Donald2019-03-12-0/+54
| | | | | | | | | | | | | | | | | | | | | | If an update has a fixmystreet_id field then use the contents of that in preference to the external_id field to match an update to a problem. This handles the case where a report in a third party system passes through different types (eg inspection and defect), resulting in the external id changing. In this case it is sometimes possible to include the fixmystreet id in each type and hence use that to match things up at the fixmystreet side.
* | Check better if extra question has values.Matthew Somerville2019-03-12-1/+2
| | | | | | | | | | If an Open311 server returned an empty set of values, it was possible for this template to then display a set of empty dropdown options.
* | [Open311] Proper bodies check for sending updates.Matthew Somerville2019-03-12-2/+2
| | | | | | | | | | Otherwise running on a site where one body ID is a substring of another, comments can get processed for the wrong body.
* | [UK Councils] Make sure server_set as appropriate.Matthew Somerville2019-03-12-1/+221
|/ | | | | After the change in 1cff2a0e, we need to make sure this is set so that the relevant fields are not shown in the front end.
* Make sure raw RABX column is utf8-encoded.Matthew Somerville2019-03-06-0/+52
| | | | | | | | | | | | Without doing this, a call to e.g. $contact->set_extra_fields(@meta) in PopulateServiceList.pm, with an unchanged meta that contains some Unicode values, can write to the database (and cause an unneeded row in the history table), because the column from the database is UTF-8 decoded, whilst the new text is UTF-8 encoded. It looks like an attempt was made in filter_from_storage to fix this issue, but the column comparison for marking a column as dirty takes place without this being called.
* Merge branch 'report-links-same-domain'Matthew Somerville2019-03-05-3/+3
|\
| * Use relative report links where possible.Matthew Somerville2019-03-05-3/+3
| | | | | | | | | | | | | | | | | | | | On some UK council cobrands, some reports listed might not have been sent to that council, so links to those must go to the national site. However, using absolute URLs for all these reports means that sometimes you change domain when you don't need to (eg. if you’re on osm.fixmystreet.com or an aliased version of the site), which can cause confusion. State when we’re happy to use a relative link (ie. web-facing report links, not emails, or share links) and do that when we can.
* | Default to unchecked for default_show_name.Matthew Somerville2019-03-04-4/+4
|/
* Merge branch '2406-fix-admin-body-dropdown'Matthew Somerville2019-02-28-14/+29
|\
| * Fix admin index body dropdown redirect.Matthew Somerville2019-02-26-14/+29
| |
* | [Oxfordshire] Limit appears to be lower than 30.Matthew Somerville2019-02-28-1/+1
| |
* | [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-0/+12
|/
* Merge remote-tracking branch 'origin/issues/commercial/1229-duplicate-reporting'Matthew Somerville2019-02-25-4/+8
|\
| * Internal JSON endpoint to get reports near a pointMatthew Somerville2019-02-25-0/+6
| | | | | | | | Unused right now, but will be soon, for the duplicate suggestion UI.
| * Refactor nearby() to use named parameters not listMatthew Somerville2019-02-25-4/+2
| |
* | [Buckinghamshire] Add contributed_by to CSV exportMatthew Somerville2019-02-25-0/+49
| |
* | Factor out test CSV content function.Matthew Somerville2019-02-25-37/+6
|/
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-27/+27
|
* Don't ask for email on alert signup if logged in.Matthew Somerville2019-02-21-174/+21
| | | | | | | The “Get updates” flow on a report page, if logged in, was showing an input label but no input field (because one is not needed), but then on submission asking for your email address. Add missing name on submit button to fix this.
* [Bromley] Allow subcategory attachment to users.Matthew Somerville2019-02-18-1/+18
|
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-10/+16
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* [fixmystreet.com] Improve two-tier unresponsive.Matthew Somerville2019-02-11-3/+3
| | | | | | | Similarly to 1f69e28c, we were previously only checking the first matching entry, which led to confusing behaviour in places. Include consequential amendments for e.g. one body being unresponsive, the other not.
* [Oxfordshire] Limit appears to be lower than 70.Matthew Somerville2019-02-08-1/+1
|
* Smoke test of FixMyStreet::Map::Google.Matthew Somerville2019-02-05-0/+21
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-33/+3
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-0/+3
|
* Spot moderation conflicts.Matthew Somerville2019-01-25-0/+14
| | | | | If someone tries to moderate after someone else has, re-show the form and an error.
* [Buckinghamshire] Question for on-road flytipping.Matthew Somerville2019-01-23-30/+142
| | | | | | | | This adds a question to check whether a flytipping report concerns flytipping on a road or not. Client-side, it is asked when a road is selected and destination adjusted according to the answer; server side it uses the answer to direct any both-tier submissions (from e.g. non-JavaScript or phone app).
* [Open311] Refactor cobrand specific code.Matthew Somerville2019-01-23-1/+89
|
* Merge branch 'allow-state-moderation'Matthew Somerville2019-01-16-0/+24
|\
| * Allow state editing via moderation.Matthew Somerville2019-01-16-0/+25
| | | | | | | | | | If a state is passed in (on a cobrand), update problem state and add a comment to record this (as state changes are updates not moderations).
* | Merge branch 'moderation-in-front-end-updates'Matthew Somerville2019-01-16-2/+7
|\ \
| * | Include moderation history in report updates.Matthew Somerville2019-01-16-2/+7
| |/ | | | | | | | | | | If the user has moderating permission, or a cobrand allows the viewing of moderation history, show moderation history within the updates on a report page.
* / [Oxfordshire] length checking for names, emails and phone NosStruan Donald2019-01-16-0/+20
|/ | | | | | | Add in validation to check names, email and phone numbers don't exceed maximum lengths permitted by HIAMS. Fixes mysociety/fixmystreet-commercial#1244
* Include areas in mock MapIt postcode calls.Matthew Somerville2019-01-15-1/+9
|