aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Comment.pm
Commit message (Collapse)AuthorAgeLines
* [fixmystreet.com] Fix not responsible state display.Matthew Somerville2019-12-11-1/+5
| | | | We need to check the body the report is sent to for special casing.
* Switch to default-escaped in templates.Matthew Somerville2019-12-09-2/+4
| | | | | | | This means any variable used in a template is automatically HTML-escaped, unless it is marked as safe either in code by using a SafeString, or in the template with the `mark_safe` function or the `safe` filter.
* [IsleOfWight] Initial cobrand.Struan Donald2019-09-27-0/+2
| | | | | | | | | Co-authored-by: Matthew Somerville <matthew@mysociety.org> Configured to allow: - updates only from original reporter - close updates from fetch reports - use OSM geocoder
* [Hounslow] Use correct name on /reports & emails.M Somerville2019-06-07-0/+2
|
* Use EncodedColumn subclass.Matthew Somerville2019-05-02-3/+3
|
* Refactor datetime inflation.Matthew Somerville2019-05-02-14/+7
|
* Associate moderation history with admin log.Matthew Somerville2018-11-27-18/+6
|
* Show moderation history in report/update admin.Matthew Somerville2018-11-26-0/+7
|
* Store all moderation change history in database.Matthew Somerville2018-11-26-15/+10
| | | | | Currently keeping the same front end functionality of only reverting to the original.
* Add configuration option to show staff user name as well as body nameJoe Siltberg2018-11-05-1/+3
| | | | | | | This adds a cobrand configuration option for always showing the body user's name in updates. Fixes #1860
* Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-0/+20
|
* Dashboard update CSV export.Matthew Somerville2018-10-03-0/+23
|
* Some minor function refactoring.Matthew Somerville2018-10-03-14/+12
|
* Merge branch '1942-admin-anonymize'Matthew Somerville2018-01-31-0/+25
|\
| * Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-0/+25
| |
* | [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-20/+0
|/ | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* log all state changes in admin as commentsStruan Donald2017-10-16-6/+17
| | | | | | | | | | | | 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
* generate update text in alerts if problem state has changedStruan Donald2017-10-05-8/+3
|
* Remove hardcoded states from templates.Matthew Somerville2017-08-31-47/+21
| | | | | | | | | | | State display names are now got from the database wherever they are displayed, including admin dropdowns, list filters, and update meta statements. This also covers the open/closed/fixed 'groups'. This also fixes a bug whereby if e.g. an update has problem_state investigating, the next update has no problem_state, and the last update has investigating again, it was previously showing a state change to investigating on that third update.
* show all report updates, even if no public textStruan Donald2017-08-17-3/+17
| | | | | | | | Create a comment entry for all updates to reports regardless of whether there is any text part. Also adds an entry to extra if a defect was raised and includes that in the update status line. Fixes mysociety/fixmystreetforcouncils#201
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-7/+5
| | | | | | | | | | | | Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
* Refactor pretty state display.Matthew Somerville2017-06-10-18/+2
|
* Add update URL model method.Matthew Somerville2017-05-31-0/+5
|
* Fix crash on reports with empty bodies_strDave Arter2017-02-07-1/+4
|
* [Greenwich] Add a badge to official status updatesrbg-joe2017-02-06-0/+2
| | | | | | | | | Adding an official badge to Greenwich updates so as to avoid exchanges in which public contributions are mistaken for official ones. As per the Bromley version e.g. https://fix.bromley.gov.uk/report/973784 - this helps to avoid situations where public contributions are mistaken for official ones.
* Show ‘unable to fix’ state as ‘no further action’.Dave Arter2017-02-02-4/+2
| | | | Bromley had this already in its update state change messages.
* Allow users with permission to see update usernamepezholio2017-01-17-1/+5
|
* Refactor updates metadata output into modelpezholio2017-01-17-1/+83
|
* Fix invalid SQL being generated by moderation lookupDave Arter2016-08-15-1/+1
|
* Move photoset stuff to new Role.Matthew Somerville2016-08-01-21/+2
|
* Add PNG image support.Matthew Somerville2016-04-08-4/+4
| | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
* Show right body user form value for fixed reports.Matthew Somerville2016-03-31-2/+2
| | | | | The form element contains 'fixed', so we need to strip the user/council part of the actual state. Fixes #1369.
* Only load images from disk when needed.Matthew Somerville2016-02-23-1/+1
| | | | Fixes #1337.
* Factor multiple photo details into nicer function.Matthew Somerville2016-01-12-5/+33
| | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`.
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-4/+1
| | | | And create default cobrand class without all of Moose.
* Move get_photo_params to Utils::Photo.Matthew Somerville2015-12-02-2/+2
|
* Updates to schema from DBIx::Class loader.Matthew Somerville2015-08-19-2/+3
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-2/+2
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-9/+1
| | | | | | Cache a DateTime::TimeZone::Local object, so that in an environment where /etc/localtime is a copy of a timezone file, we don't repeatedly walk all the timezone files to find the matching one.
* Tests for moderationHakim Cassimally2014-08-14-1/+3
|
* Report moderationHakim Cassimally2014-08-13-2/+46
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* [Bromley] Reduce update character limit to 1750.Matthew Somerville2014-01-30-2/+3
| | | | Following on from f117167 (and fixing comment from that commit).
* Merge branch 'rabx-column-refactor'Chris Mytton2013-09-12-21/+2
|\
| * Use RABXColumn in remaining models that serialize some columnsEdmund von der Burg2013-09-10-21/+2
| |
* | Update DB/Result/* with latest DBIx::Class::Schema::LoaderChris Mytton2013-09-10-8/+8
|/ | | | | | | | | Version 0.07027 of DBIx::Class::Schema::Loader introduced some changes to the way it generates schemas. > PostgreSQL WARNING: the default for on_delete/on_update attributes for > belongs_to relationships is now 'NO ACTION' not 'CASCADE! The default > for is_deferrable is now 0 not 1.
* Spell out all "marked as %s" strings.Matthew Somerville2013-09-05-6/+2
| | | | | As doing interpolation from a database state field is not great for translation. Fixes #391.
* Remove *_local tz functions, set timezone on fetching original columns from ↵Matthew Somerville2013-02-14-17/+15
| | | | database.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Make sure serialized string is UTF-8 encoded.Matthew Somerville2012-12-21-0/+1
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-0/+9
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-comments conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/Open311.pm t/app/controller/report_updates.t t/open311.t templates/web/default/report/display.html templates/web/default/report/updates.html templates/web/fixmystreet/report/display.html