aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Body.pm
Commit message (Collapse)AuthorAgeLines
* Add cobrand hook for overriding areas on /reports wardsDave Arter2019-12-09-5/+1
|
* [TfL] Only display TfL as the destination body when making reports.Dave Arter2019-12-09-0/+11
|
* Turn on quote_names.Matthew Somerville2019-06-26-1/+1
|
* [Hounslow] Couple more council references (RSS related).Matthew Somerville2019-06-10-0/+16
|
* Add user roles tablesDave Arter2019-05-28-2/+8
|
* Use EncodedColumn subclass.Matthew Somerville2019-05-02-3/+3
|
* Refactor datetime inflation.Matthew Somerville2019-05-02-12/+16
|
* Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-4/+4
|
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-3/+5
|
* Filters out hidden reports from top 5 list.Joe Siltberg2019-02-25-0/+1
|
* [FixaMinGata] Adds a cobrand hook (threshold for responsiveness top 5 list)Joe Siltberg2019-02-25-6/+10
| | | | Fixes #1957
* Have body.url work in hashref lookup.Matthew Somerville2018-10-10-2/+9
| | | | | | | body.url could still be in use by old-school /reports table index pages (though they were dropped in 2.1, so a cobrand would have to have overridden it since then) and the update to speed up body lists in #2248 broke it. This puts it back in minimal form.
* add extra column to body tableStruan Donald2018-04-11-3/+9
| | | | Adds and extra column for bodies and the associated Extra role.
* add convert_latlong option to body tableStruan Donald2018-03-29-2/+4
| | | | | For controlling if reports pulled in via Open311 should have the position converted from Easting/Northing to lat/long.
* permit blank updates to be fetched over Open311Struan Donald2018-03-15-2/+4
| | | | | Add a per body configuration option to allow Open311 updates to contain only a status change, rather than emitting a warning when this happens.
* fetch new problems over open311Struan Donald2018-03-15-2/+4
| | | | | | | | | | This enables the display of existing reports from the back end on FMS if the body is configured to do this. Reports will not be created if they are missing an id, a lat or a long, if the lat/long is outside the area covered by the body, if there is already a report with a matching id, or if we can't parse out the request time.
* Add some new Body model helper methods.Matthew Somerville2018-01-03-2/+3
| | | | And use the existing ones more.
* [fixmystreet.com] Council average response time.Struan Donald2017-12-15-0/+29
|
* update-all-reports operate per body optionally.Matthew Somerville2017-10-20-2/+3
|
* Add fn to fetch bodies plus the translated names.Matthew Somerville2017-08-15-0/+15
|
* Set up translatable body name.Matthew Somerville2017-08-09-0/+7
|
* Add Body::first_area_children methodDave Arter2017-07-17-0/+12
|
* 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