aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* [UK] Move suggest_duplicates to configuration.Matthew Somerville2019-05-28-15/+5
|
* Add feature cobrand helper function.Matthew Somerville2019-05-28-0/+15
|
* [UK] Update 2019 local government handling.Matthew Somerville2019-05-23-3/+3
|
* [fixmystreet.com] Fix Unicode in fixtures.Matthew Somerville2019-05-20-0/+1
|
* [UK] Activate duplicate suggestion function.Matthew Somerville2019-05-20-0/+10
|
* [Buckinghamshire] use buckinghamshire map tilesStruan Donald2019-05-16-48/+92
| | | | | Add a WMTS config to use Buckinghamshire's own map tiles to display house numbers.
* [Oxfordshire] remove all response times codeStruan Donald2019-05-14-46/+0
| | | | No longer required so remove it all.
* [Oxfordshire] remove emergency response type from street lightsStruan Donald2019-05-14-2/+0
| | | | | | No longer required. Fixes mysociety/community#94
* Merge in upgraded Catalyst branch.Matthew Somerville2019-05-14-24/+22
|\
| * [Travis] Split coverage tests, fix coverage ignoreMatthew Somerville2019-05-13-1/+1
| |
| * Update a number of packages.Matthew Somerville2019-05-13-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update: * Catalyst * Specify Catalyst::DispatchType::Regex explicitly * Remove Catalyst::Plugin::Unicode::Encoding * Catalyst::Plugin::SmartURI * Specify URI::SmartURI explicitly * Catalyst::Plugin::Static::Simple * CGI * Class::Load * DateTime * DateTime::TimeZone * DBD::Pg * DBIx::Class * DBIx::Class::EncodedColumn. * Email::Address. * Email::MIME * ExtUtils::MakeMaker * ExtUtils::ParseXS (for Params::Classify upgrade) * File::ChangeNotify * Image::Size * IO::Socket::SSL * local::lib * Moo * Moose (and some related others due to deprecations) * namespace::autoclean * Net::Server * Net::SSLeay * Number::Phone * Plack * Starman * Template * Test::PostgreSQL * Test::WWW::Mechanize::Catalyst * Text::CSV * YAML carton install was run on a wheezy box, the oldest that is supported, to make sure the required minimal vesions of core modules weren't removed from the snapshot. Cpanel::JSON::XS, Devel::GlobalDestruction::XS, and MooseX::NonMoose were then put back in the snapshot, in case another system needs them (e.g. system Perl on Mac looks for MooseX::NonMoose).
| * Fix some test warnings.Matthew Somerville2019-05-13-3/+3
| |
* | Merge branch 'template-same-name-spot'Matthew Somerville2019-05-09-0/+9
|\ \
| * | Prevent creation of two templates with same title.Matthew Somerville2019-05-07-0/+9
| |/
* | If report hidden, also purge update photos cache.Matthew Somerville2019-05-07-6/+11
| |
* | Improve non_public photo handling.Matthew Somerville2019-05-07-8/+30
| | | | | | | | | | | | | | Clear the photo cache if the non_public flag is switched on, do not cache non_public or LOGIN_REQUIRED photos, remove non_public photos from memcached recent lists, pass through any cookies on non_public reports/updates, and check the non_public flag on photo lookup.
* | No access to update photos on hidden reports.Matthew Somerville2019-05-07-4/+5
| |
* | Prevent previous commit issue ever happening again.Matthew Somerville2019-05-07-12/+9
| |
* | Fix typo in is_superuser call.Matthew Somerville2019-05-07-1/+1
|/
* Merge branch 'moderation-dst-time'Matthew Somerville2019-05-03-195/+261
|\
| * Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-9/+13
| | | | | | | | It was not being caught by rerun_dbic_loader.pl otherwise.
| * Use EncodedColumn subclass.Matthew Somerville2019-05-02-81/+81
| |
| * Refactor datetime inflation.Matthew Somerville2019-05-02-185/+247
| |
| * Fix some incorrect timezone code.Matthew Somerville2019-05-02-1/+1
| | | | | | | | | | | | | | | | | | 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.
* | [UK] Deal with setup where county may be missing.Matthew Somerville2019-04-29-2/+5
|/ | | | | | | Currently, Dorset Council and BCP Council are bodies linked with the relevant areas of the now-gone district councils; this means there is no body linked with the area of the old county council, which causes an error.
* Merge branch 'tidy_up' of https://github.com/tomhukins/fixmystreetMatthew Somerville2019-04-24-6/+5
|\
| * Explicitly pass one argument to encode_json()Tom Hukins2019-04-09-3/+3
| | | | | | | | | | | | | | | | Previously, it was unclear how many arguments the function took. When running tests I saw the error: Too many arguments for Cpanel::JSON::XS::encode_json at perllib/FixMyStreet/Map/WMTSBase.pm line 217, near "}"
| * Avoid string evalTom Hukins2019-04-09-3/+2
| | | | | | | | Instead, load the required module directly.
* | Use REQUEST_URI, not PATH_INFO, to infer path.Matthew Somerville2019-04-24-0/+5
| | | | | | | | | | This fixes an issue with slashes in category names in admin (as PATH_INFO can't tell the difference between / and %2F).
* | [BANES] Turn on new duplicate suggesting.Matthew Somerville2019-04-23-0/+2
| |
* | [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-1/+4
|/
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-0/+8
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-10/+10
|\
| * Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-10/+10
| |
* | [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-0/+20
| |
* | Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-48/+48
|/
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-20/+25
|
* [Northamptonshire] do not display district/borough reportsStruan Donald2019-03-28-0/+7
|
* Fix archive report script to not skip first row.Matthew Somerville2019-03-28-7/+8
| | | | | | | ->first, as used in cd8a5702, uses the iterator, so ->next will then only return the second onward. Instead, do the needed thing in the first iteration of the loop. Also check the option is set as some scripts do not set it.
* [Northamptonshire] Update report_sent_confirmation_email.Matthew Somerville2019-03-27-1/+1
|
* Merge branch 'issues/commercial/1273-ref-number-com'Matthew Somerville2019-03-27-5/+15
|\
| * [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-5/+15
| |
* | make sure the archive report script sets up lang etcStruan Donald2019-03-27-0/+8
|/ | | | | | Previously if no reports were closed with an email this meant that the lang setup never ran and you got an error when _ was called in close_problems. So, we call the lang setup in close_problems too.
* [Northamptonshire] only display NCC categories on cobrandStruan Donald2019-03-26-0/+5
|
* more obvious delineation between reports in error emailStruan Donald2019-03-25-1/+1
| | | | | It can be hard to see where one error stops and a new one begins in the send reports error emails so put in a more obvious break between them.
* [Northamptonshire] cobrand config, template and css changesStruan Donald2019-03-25-0/+85
| | | | | Co-authored-by: Zarino Zappia <zarino@mysociety.org> Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* Allow cobrand customisation of privacy URLStruan Donald2019-03-25-0/+8
| | | | | Add a privacy_policy_url function to the cobrand and use that in the templates instead of hard coding /privacy
* [Buckinghamshire] Send drainage reports via email as well as Open311Dave Arter2019-03-20-4/+10
| | | | Fixes mysociety/fixmystreet-commercial#1306
* Merge branch 'open311-hook-update-params'Matthew Somerville2019-03-12-1/+9
|\
| * [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-1/+9
| | | | | | | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.