aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/moderate.t
Commit message (Collapse)AuthorAgeLines
* Don’t show `sent_to` on moderation diffDave Arter2020-07-02-1/+2
|
* Remove cached photos before updating db field.Matthew Somerville2019-11-18-13/+34
| | | | | If the photo field is updated first, then the cache removal doesn't think there are any photos to remove.
* Add user admin log page.Matthew Somerville2019-11-08-2/+10
|
* Per-test file email addresses.Matthew Somerville2019-10-03-1/+1
|
* Update a number of packages.Matthew Somerville2019-05-13-3/+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).
* 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.
* 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).
* | 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.
* Fix moderation without JavaScript.Matthew Somerville2018-12-04-0/+12
|
* Show moderation history in report/update admin.Matthew Somerville2018-11-26-0/+3
|
* Store all moderation change history in database.Matthew Somerville2018-11-26-0/+5
| | | | | Currently keeping the same front end functionality of only reverting to the original.
* Mark moderation_original_data extra as RABXColumn.Matthew Somerville2018-11-19-3/+5
|
* Store more original stuff on moderation.Matthew Somerville2018-11-16-1/+14
|
* Allow moderation to edit category.Matthew Somerville2018-11-07-0/+12
|
* Allow moderation to edit extra fields/location.Matthew Somerville2018-10-26-0/+40
| | | | If a cobrand provides those fields.
* Allow moderation to potentially change photos.Matthew Somerville2018-10-22-25/+15
|
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-0/+25
|
* Refactor together similar moderate functions.Matthew Somerville2018-08-28-10/+10
|
* Allow cobrands to disable moderation emailsDave Arter2017-11-22-0/+32
| | | | | | | This adds a new send_moderation_notifications method which can be overridden by cobrands to prevent “your report has been moderated” emails from being sent. Fixes mysociety/fixmystreet-commercial#936
* log all state changes in admin as commentsStruan Donald2017-10-16-1/+1
| | | | | | | | | | | | Create a comment on a problem when the admin is used to change the state of the problem. If only the state is changed then create a comment with blank text. If the category and state are changing then include details of the category change in the comment. Not all the state changes are displayed at the template level by default. Fixes #1846
* do not replace deleted text with [...] when moderatingStruan Donald2017-07-27-6/+6
| | | | | | | | Replacing deleted text with [...] when moderating reports and comments leads to very odd looking reports when correcting minor typos so just leave the text as deleted. Fixes #1774
* Run each test file in a transaction.Matthew Somerville2017-06-20-10/+0
| | | | This means that the tests can be run in parallel.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-5/+0
|
* Use name at time of moderation, include superusersMatthew Somerville2017-03-14-0/+18
| | | | This works better if e.g. a user stops being associated with a body.
* Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-1/+2
|
* Allow user permissions to be granted/revoked in adminDave Arter2016-08-17-0/+1
|
* Direct report moderated emails correctly.Matthew Somerville2016-08-10-5/+9
|
* Add HTML email templates.Matthew Somerville2016-08-01-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-3/+1
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-37/+39
|
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-6/+4
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-0/+12
| | | | | | | Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
* By default, use area-based alerts.Matthew Somerville2014-12-12-2/+2
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Tests for moderationHakim Cassimally2014-08-14-0/+325