aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
* configure category_groups via COBRAND_FEATURESStruan Donald2019-06-17-10/+6
| | | | | Rather than have a method in the Cobrand module use the COBRAND_FEATURES section of the config file.
* Improve 403/private report error messages.Matthew Somerville2019-06-14-2/+2
|
* [Open311] Make sure Open311 parameters are encodedMatthew Somerville2019-06-12-18/+59
| | | | | This was previously done automatically, but isn’t when you do file uploads.
* Move ResponsePriority admin to HTML::FormHandler.Matthew Somerville2019-06-07-28/+15
|
* [Hounslow] Add general enquiries functionalityDave Arter2019-06-06-0/+257
| | | | | | | | | | | | This functionality allows a cobrand to replace the /contact form with a form that creates hidden reports which are sent via Open311. The form also allows file uploads in addition to photos. This functionality is currently enabled for the Hounslow cobrand and others cobrands can enable it by defining setup_general_enquiries_stash which primarily sets up the appropriate categories and default values for the report.
* make sure council_name exists before trying to call itStruan Donald2019-06-05-0/+15
| | | | Not all cobrands have a council_name method.
* return council display names in ajax callStruan Donald2019-06-04-0/+14
| | | | | | | For some cobrands the display name of the council is not the same as the body name so add a display_names map to the reporting data returned over ajax. Use that in the staff automatic generation of basic report details.
* Don’t include non_public reports when searching by ref from front pageDave Arter2019-06-04-0/+10
|
* Add role to users from admin user list page.Matthew Somerville2019-05-28-0/+8
|
* User import allowing roles.Matthew Somerville2019-05-28-0/+34
|
* Add role search to users page.Matthew Somerville2019-05-28-3/+21
|
* Include role permissions when fetching user permissions.Matthew Somerville2019-05-28-1/+8
|
* Add way to pick role for a user.Matthew Somerville2019-05-28-0/+29
|
* Add Role adding/editing/deleting admin.Matthew Somerville2019-05-28-0/+96
|
* Show field entries if error on add user formMatthew Somerville2019-05-28-0/+1
|
* Switch all Norwegian tests to Swedish.Dave Arter2019-05-28-4/+4
| | | | | | | | | | On Macs, the Norwegian locale is no_NO, whereas on Debian it is nb_NO: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=206474 This can cause issues running the Norwegian tests on Macs with certain setups (e.g. on my machine a Homebrew installation of perl and gettext fails, but MacPorts and system pass). As Swedish is sv_SE in both, the easiest solution is to switch the tests to Swedish.
* Merge in upgraded Catalyst branch.Matthew Somerville2019-05-14-23/+23
|\
| * Update a number of packages.Matthew Somerville2019-05-13-26/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | Merge branch 'template-same-name-spot'Matthew Somerville2019-05-09-0/+24
|\ \
| * | Prevent creation of two templates with same title.Matthew Somerville2019-05-07-0/+24
| |/
* | Improve non_public photo handling.Matthew Somerville2019-05-07-1/+70
| | | | | | | | | | | | | | 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.
* | Prevent previous commit issue ever happening again.Matthew Somerville2019-05-07-3/+1
|/
* 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-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.
* 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
|
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-1/+27
| | | | | | 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-1/+5
|/
* [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-2/+2
|
* 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.
* Merge branch 'report-links-same-domain'Matthew Somerville2019-03-05-2/+2
|\
| * Use relative report links where possible.Matthew Somerville2019-03-05-2/+2
| | | | | | | | | | | | | | | | | | | | 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
|/
* Merge remote-tracking branch 'origin/issues/commercial/1229-duplicate-reporting'Matthew Somerville2019-02-25-0/+6
|\
| * 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.
* | Factor out test CSV content function.Matthew Somerville2019-02-25-12/+2
|/
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-24/+24
|
* 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.
* 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
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-25/+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.