aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
...
* DB changes to support OIDC authDave Arter2019-08-16-0/+25
|
* Make sure existing attribute answers set up.Matthew Somerville2019-08-09-3/+28
| | | | | | | If you come to /report/new with a part-filled report (say you've gone via an OAuth flow), then the stash needs to get the category from the report, not a query parameter, and report_meta needs initializing, as that is what the template uses to fill in existing attribute answers.
* Merge branch 'westminster-report-dupe-bugs'Matthew Somerville2019-08-08-2/+2
|\
| * Set default mock area to default browser test areaMatthew Somerville2019-08-07-2/+2
| | | | | | | | | | | | This should make it easier to add browser tests as you won't have to get the click precisely on the right pixel in order to have it match the correct area.
* | Redirect correctly after editing user to remove them from cobrandDave Arter2019-08-07-0/+43
|/
* prevent including email address in report titleStruan Donald2019-08-02-0/+23
| | | | | | | | If autofill on Chrome is turned on and has saved the user's login it can autofill the user's email address in the report title, so add validation to make sure the title does not look like an email. Fixes #2570
* [Open311] Receive update from external request.Matthew Somerville2019-07-15-0/+99
|
* [Open311] Improve JSON output of controller.Matthew Somerville2019-07-15-5/+5
|
* Do not store display-only extra fields on reports.Matthew Somerville2019-07-12-0/+1
|
* Indicate in report new AJAX if a category is privateDave Arter2019-07-09-0/+15
|
* Fix Swedish number test in Ubuntu 18.04.Matthew Somerville2019-06-26-2/+4
|
* [UK] Improve server-side nearest road lookup.Matthew Somerville2019-06-21-1/+1
|
* better error if category for report does not existStruan Donald2019-06-20-0/+2
| | | | | | It is possible that the category of a report no longer exists and in that case the Open311 send process was falling over. This checks that we've found a contact and if not sets the error and skips the report.
* admin interface for adding multiple groups to a categoryStruan Donald2019-06-17-1/+31
|
* display category under multiple groupsStruan Donald2019-06-17-1/+2
| | | | | | | The group metadata of a contact can now be a comma separated list of groups under which to display the category For #2475
* 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-17/+14
| | | | | | | | | | 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.
* [UK] Update 2019 local government handling.Matthew Somerville2019-05-23-2/+1
|
* Merge in upgraded Catalyst branch.Matthew Somerville2019-05-14-25/+26
|\
| * Update a number of packages.Matthew Somerville2019-05-13-28/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+14
|/
* 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/+22
|/
* [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-3/+3
|
* Merge branch 'open311-hook-update-params'Matthew Somerville2019-03-12-1/+0
|\
| * [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-1/+0
| | | | | | | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.