aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Merge in upgraded Catalyst branch.Matthew Somerville2019-05-14-7/+4
|\
| * Update a number of packages.Matthew Somerville2019-05-13-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+5
| |
* | Improve non_public photo handling.Matthew Somerville2019-05-07-5/+24
| | | | | | | | | | | | | | 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
| |
* | Fix typo in is_superuser call.Matthew Somerville2019-05-07-1/+1
|/
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-4/+4
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* 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.
* [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-1/+4
|
* Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-10/+5
|\
| * Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-10/+5
| |
* | Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-37/+21
|/
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-9/+20
|
* Merge branch 'stream-csv-output'Matthew Somerville2019-03-05-11/+25
|\
| * Stream dashboard CSV output.Matthew Somerville2019-03-05-11/+25
| | | | | | | | | | | | Rather than compile it all into on big string for output, write the output as we go. Also output headers to encourage intermediaries to stream as well.
* | Add DateRange class.Matthew Somerville2019-03-04-28/+29
|/ | | | | This simplifies the places where a date range is used; it also makes Dashboard date parsing more flexible.
* Merge branch '2406-fix-admin-body-dropdown'Matthew Somerville2019-02-28-2/+2
|\
| * Fix admin index body dropdown redirect.Matthew Somerville2019-02-26-2/+2
| |
* | [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-10/+20
| |
* | Do not assign bodyless reports to area IDs.Matthew Somerville2019-02-28-13/+5
|/
* Internal JSON endpoint to get reports near a pointMatthew Somerville2019-02-25-4/+28
| | | | Unused right now, but will be soon, for the duplicate suggestion UI.
* Refactor nearby() to use named parameters not listMatthew Somerville2019-02-25-7/+12
|
* Merge branch 'bugfix/1957'Matthew Somerville2019-02-25-1/+1
|\
| * [FixaMinGata] Adds a cobrand hook (threshold for responsiveness top 5 list)Joe Siltberg2019-02-25-1/+1
| | | | | | | | Fixes #1957
* | Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-1082/+1165
|/
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-12/+15
| | | | | | 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-20/+20
| | | | | | | 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.
* Merge branch 'fix-code-starting-underscore-display'Matthew Somerville2019-02-05-3/+3
|\
| * Allow Open311 codes starting with ‘_’ to function.Matthew Somerville2019-02-04-3/+3
| | | | | | | | | | | | Template Toolkit treats keys starting with ‘_’ as private and does not expose them. It is possible for an Open311 server to return fields starting with an underscore, and we want to use those in the template.
* | Make front page cache time configurable.Matthew Somerville2019-02-04-1/+2
|/ | | | | Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-12/+25
|
* Allow searching for <email> in admin.Matthew Somerville2019-01-29-0/+9
|
* Spot moderation conflicts.Matthew Somerville2019-01-25-0/+20
| | | | | If someone tries to moderate after someone else has, re-show the form and an error.
* Stop redirecting on moderation error.Matthew Somerville2019-01-25-30/+38
| | | | This will also be used by the moderation conflict code.
* Factor out two identical loops.Matthew Somerville2019-01-21-19/+5
|
* Merge branch 'allow-state-moderation'Matthew Somerville2019-01-16-1/+36
|\
| * Allow state editing via moderation.Matthew Somerville2019-01-16-1/+36
| | | | | | | | | | 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).
* | Include moderation history in report updates.Matthew Somerville2019-01-16-0/+18
|/ | | | | | 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.
* Call confirm() during token confirmation.Matthew Somerville2019-01-14-2/+1
| | | | So state/confirmed setting in one place.
* Use pin_new_report_colour server-side too.Matthew Somerville2019-01-14-1/+1
|
* Remove any use of `my $x if $foo`.Matthew Somerville2019-01-14-1/+1
| | | | | | | | As perlsyn says, "NOTE: The behaviour of a `my`, `state`, or `our` modified with a statement modifier conditional or loop construct (for example, `my $x if ...`) is undefined. The value of the `my` variable may be `undef`, any previously assigned value, or possibly anything else."
* Delete cache photos upon photo moderation.Matthew Somerville2019-01-10-0/+1
|
* Allow override search to /report/new => /around.Matthew Somerville2019-01-10-1/+7
| | | | | | This is so you can have a search box on an around page (wrapped in a form going to /report/new) to start a new search, ignoring the lat/lon that will also be submitted.
* add private only report filterStruan Donald2019-01-04-7/+19
|
* Show all questionnaire responses lacking updates.Matthew Somerville2018-12-20-6/+26
| | | | | | Since questionnaire responses were recorded on email link click, we should have been showing those that reopened or fixed reports, not just steady-state "Still open" ones.
* cobrand hook for extra processing upon report inspectionStruan Donald2018-12-17-0/+2
| | | | | Add a hook to enable the cobrand to do some extra processing when saving a report on the inspect report screen.
* add a cobrand hook to save extra user dataStruan Donald2018-12-17-0/+4
| | | | | Enable the cobrand to save extra data when creating/editing users in the admin.