aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
Commit message (Collapse)AuthorAgeLines
...
* Move get_photo_params to Utils::Photo.Matthew Somerville2015-12-02-2/+2
|
* [Zurich] new status flagsHakim Cassimally2015-10-06-4/+0
| | | | | | | Have moved the generation of banner text from the template into problem_as_hashref See mysociety/FixMyStreet-Commercial#672
* Add "time spent" admin logging.Hakim Cassimally2015-10-06-0/+12
| | | | | | | | | | | | | | | | | | | | | Mechanism is general, but current implementation only used for Zurich. - Zurich: Record time_spent field mysociety/FixMyStreet-Commercial#676 - template changes (including jQuery spinner) - backend changes to save data are made: - in log_edit, if supplied - and time on category change (and arbitrary actions) - Add update_admin_log to all paths for DM, ensuring that it gets called, while resetting the `time_spent` parameter, to make sure that there is never a duplicate record created. - Also quell warning about using DateTime values in query. - Also add (seemingly unrelated) parens to stop misparsing of OK line in questionnaire test now that DT::Format::Pg is used in Zurich cobrand See mysociety/FixMyStreet-Commercial#676
* [Zurich] Response templates for report admin.Hakim Cassimally2015-10-06-1/+22
| | | | | | | This provides a ResponseTemplate model that an admin/staff user can choose from when responding to problems. For mysociety/FixMyStreet-Commercial#671.
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-1/+28
| | | | | | | | 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.
* [fixmystreet.com] Remove unused Barnet code.Matthew Somerville2015-09-03-5/+2
|
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-5/+6
|
* Updates to schema from DBIx::Class loader.Matthew Somerville2015-08-19-0/+2
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-6/+6
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-20/+0
| | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* Simpler report meta information displayZarino Zappia2015-06-29-4/+4
| | | | | Removes the italics, and breaks the wording into two separate paragraphs, at the top of the report page.
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-32/+64
| | | | To allow visible/hidden states to be manipulated at runtime.
* [Zurich] add columns to stats exportHakim Cassimally2015-03-31-0/+4
| | | | | | | | | | | | | | | - Original Report description - Amended Report description (unsure what this is) - Media URL (currently one picture, in the future 1-3 pictures) - Interface used (see open311) - Requested datetime (see open311) (seems to be same as created) - Agency sent datetime (see open311) - Updated datetime (see open311) - Council-Response - title as per https://github.com/mysociety/FixMyStreet-Commercial/issues/678
* 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
| |