aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
Commit message (Collapse)AuthorAgeLines
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-1/+2
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-10/+2
| | | | | | 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.
* Report moderationHakim Cassimally2014-08-13-2/+37
| | | | | | | | | | | - 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
* Only return html from problem->body if we have contextStruan Donald2014-05-16-1/+1
| | | | | this means we can use this in email templates and get the correct non html text back even if AREA_LINKS_FROM_PROBLEM is true
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-9/+11
| | | | Add some comments to the top of the open311 bin scripts.
* [Bromley] Reduce update character limit to 1750.Matthew Somerville2014-01-30-2/+3
| | | | Following on from f117167 (and fixing comment from that commit).
* [Bromley] Reduce detail field character limit to 1750Chris Mytton2014-01-14-2/+3
| | | | | | | | "The length of 2000 characters is causing some issues in the underline back office application." Updated to include a comment making it (hopefully) clearer which council this is for - thanks @davewhiteland!
* Reported via mobile device rather than byStruan Donald2013-10-02-4/+4
| | | | Fixes #586
* Make character limit translation string more genericChris Mytton2013-09-26-2/+2
|
* [Oxfordshire] Validate reports are < 1700 charactersChris Mytton2013-09-25-3/+8
|
* Merge branch 'rabx-column-refactor'Chris Mytton2013-09-12-42/+3
|\
| * Use RABXColumn in remaining models that serialize some columnsEdmund von der Burg2013-09-10-42/+3
| |
* | Update DB/Result/* with latest DBIx::Class::Schema::LoaderChris Mytton2013-09-10-3/+3
|/ | | | | | | | | 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.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-21-33/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | (locale ignored, will rerun .po extraction after to get all changes.) Conflicts: locale/FixMyStreet.po locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po templates/web/fixmystreet/report/banner.html templates/web/zurich/faq/faq-de-ch.html
| * Put planned in all_states.Matthew Somerville2013-02-20-0/+1
| |
| * Remove *_local tz functions, set timezone on fetching original columns from ↵Matthew Somerville2013-02-14-33/+19
| | | | | | | | database.
| * use cobrand prettify_dt method rather calling directly so it gets called ↵Struan Donald2013-02-05-2/+2
| | | | | | | | with correct params
* | Ask for address, and clarify public/private for EmptyHomes.Matthew Somerville2013-02-13-1/+1
|/
* Missed some council references.Matthew Somerville2013-02-04-1/+1
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-44/+92
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * add displable represenations of confirmed and created times to ajax problem ↵Struan Donald2013-01-28-0/+2
| | | | | | | | details
| * add translated state string to ajax problem detailsStruan Donald2013-01-28-0/+1
| |
| * only try and generate meta if the problem is confirmed otherwise we get errorsStruan Donald2013-01-28-1/+1
| |
| * add state and used_map details to ajax report resultsStruan Donald2013-01-28-0/+3
| |
| * Stop changing DateTimes to epochs and back.Matthew Somerville2013-01-25-5/+11
| | | | | | | | | | | | | | Also revert cursor handling of Reports.pm; the DateTime inflation appears to be a slowdown, and we were doing that anyway, and this way makes things simpler in general. Will have a watch out for any performance issue, but hopefully it should be fine.
| * Make sure title not shown on pins on unconfirmed Zurich reports.Matthew Somerville2013-01-24-0/+6
| |
| * add basic ability to return a report as jsonStruan Donald2013-01-24-0/+17
| |
| * Store Zurich external body in external_body rather than changing bodies_str.Matthew Somerville2013-01-15-1/+5
| |
| * Show Zurich co-ordinates on admin page.Matthew Somerville2013-01-07-0/+8
| |
| * Make sure serialized string is UTF-8 encoded.Matthew Somerville2012-12-21-0/+2
| |
| * Minor admin text tweaks.Matthew Somerville2012-12-20-1/+1
| |
| * Allow unconfirmed as a visible state in Zurich, adjust front end list/item ↵Matthew Somerville2012-12-19-13/+14
| | | | | | | | templates to suit.
| * Migrate Reports.pm to use bodies, not areas.Matthew Somerville2012-12-15-3/+1
| |
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-18/+18
| |
| * Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-3/+3
| |
* | No names on EmptyHomes site, no map pin text.Matthew Somerville2013-01-29-5/+1
| |
* | add internal review status to problemsStruan Donald2013-01-17-0/+4
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-14/+82
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | be less restrictive about how open 311 status updates can change statesStruan Donald2012-11-09-1/+1
| | | | | | | | | | | | | | | as logged in council users don't have the same restrictions also, fix open311 status name of unable to fix
| * | limit comment and description length to 2000 characters for bromleyStruan Donald2012-10-03-0/+5
| | |
| * | do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-5/+3
| | | | | | | | | | | | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
| * | tidy up status names in DB, improve tests a littleStruan Donald2012-10-01-5/+4
| | |
| * | Don't have the list of states harcoded in more than one placeStruan Donald2012-10-01-1/+43
| | | | | | | | | | | | Also sort out some warnings that were being issues during tests
| * | initial work to handle changed problem statesStruan Donald2012-08-31-13/+37
| | |
* | | Merge branch 'centro'Struan Donald2013-01-04-2/+4
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: perllib/FixMyStreet/Cobrand/Default.pm
| * | | add subcategory field to problem tableStruan Donald2012-12-03-2/+4
| | |/ | |/|
* | | Check council string rather than cobrand, so works on non-cobranded reports.Matthew Somerville2012-12-18-2/+2
| | |
* | | fixed syntax error, forgot to commitDave Whiteland2012-12-13-1/+1
| | |
* | | display oxfordshie's PEM id (council ref) on the public problem pageDave Whiteland2012-12-12-1/+2
|/ /
* | Move map not used text to template so we can use HTML in itStruan Donald2012-10-26-3/+0
| | | | | | | | | | | | and not have it escaped when it is displayed Fixed #350