aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Body.pm
Commit message (Collapse)AuthorAgeLines
* Add customisable defect types.Dave Arter2017-03-23-2/+8
| | | | | | | | | Problems can have an associated defect type, that can be assigned during an inspection. Include an admin interface for managing these types, that can also be assigned on a per-category basis, currently available to the Oxfordshire cobrand. (Also include 'TM' in traffic management Exor RDI output.)
* Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-0/+15
| | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* Refactor problem response priority into its own modelDave Arter2016-09-09-2/+8
| | | | | | | This moves the response priority values from a cobrand-specific method to a full DB model, and includes management screens in the admin for administering them. For mysociety/fixmystreetforcouncils#66
* [Zurich] Response templates for report admin.Hakim Cassimally2015-10-06-8/+14
| | | | | | | This provides a ResponseTemplate model that an admin/staff user can choose from when responding to problems. For mysociety/FixMyStreet-Commercial#671.
* Report moderationHakim Cassimally2014-08-13-4/+10
| | | | | | | | | | | - 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
* Link through from all reports page to sub categoriesStruan Donald2014-07-01-2/+2
| | | | | | | | Add a type parameter to the /reports/body page to restrict list by problem category. Only link to report categories that have entries. Fixes #798
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+2
|\ | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * Add `external_url' column to `body' table.Jon Kristensen2014-03-11-0/+2
| |
* | [Zurich] Update DB/Result/Body.pm schemaChris Mytton2013-09-10-2/+4
| |
* | Update DB/Result/* with latest DBIx::Class::Schema::LoaderChris Mytton2013-09-10-10/+10
|/ | | | | | | | | 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-04-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Allow bodies to have parent bodies.Matthew Somerville2012-12-19-4/+23
|
* Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-5/+14
| | | | than one body.
* Migrate Reports.pm to use bodies, not areas.Matthew Somerville2012-12-15-1/+5
|
* Make from_body a foreign key.Matthew Somerville2012-12-15-2/+8
|
* Convert report sending code to use bodies rather than areas/councils.Matthew Somerville2012-12-15-2/+4
|
* Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-2/+8
| | | | Add foreign key constraint from contacts to body.
* Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-0/+60