aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Contact.pm
Commit message (Collapse)AuthorAgeLines
* Sort reporting categories in display order.Matthew Somerville2019-10-31-0/+15
|
* Allow cobrands to override category display.Matthew Somerville2019-10-25-1/+1
|
* Stop empty Open311 group causing duplicate historyMatthew Somerville2019-10-03-0/+7
| | | | | | | | It arises that <group></group> now passes to the code as a one-element list containing undef, which compared differently to what was stored - the code assumed lists would contain things. A new changelog entry was created each time. Hopefully resolve this once and for all by treating groups more formally and making sure we always have lists to compare.
* Add top disable-form field to admin category form.Matthew Somerville2019-09-30-2/+19
|
* Do not store display-only extra fields on reports.Matthew Somerville2019-07-12-0/+10
|
* Use EncodedColumn subclass.Matthew Somerville2019-05-02-3/+3
|
* Refactor datetime inflation.Matthew Somerville2019-05-02-5/+9
|
* Show all Open311 extra fields in edit admin.Matthew Somerville2019-03-07-3/+0
| | | | Otherwise any such fields are lost upon a manual edit.
* include automated field when editing contactsStruan Donald2018-06-11-3/+11
| | | | | | | | Display fields that are automatically filled in the contact editing form otherwise the data is lost. Also include the automated field in the form. Fixes #2136
* Store server_set automated, but ignore for input.Matthew Somerville2018-03-21-1/+5
| | | | | We do need to store them, so that the sending knows which fields are being requested, but we do not want them output to the client at all.
* Prevent unnecessary string translation.Matthew Somerville2017-08-11-1/+1
| | | | | | Calling the function 'translate' causes gettext-extract to add the string to the .po file. Also, we no longer need an admin 'updated' message as the main form has its own success message.
* Set up translatable category columns.Matthew Somerville2017-08-10-1/+7
| | | | | | As category is used both for display and as a link between Problem and Contact tables, add `category_display` for use whenever a category is displayed.
* Add inactive state to categories.Matthew Somerville2017-07-14-15/+13
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Add customisable defect types.Dave Arter2017-03-23-2/+9
| | | | | | | | | 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.)
* Add a 'closest_address' hidden Open311 attribute.Matthew Somerville2017-02-03-1/+1
| | | | This joins easting, northing and an external ID field.
* Improve display of category extra data in admin.Matthew Somerville2016-09-09-1/+9
| | | | Allow get_extra_metadata to return all the data with no argument.
* Refactor problem response priority into its own modelDave Arter2016-09-09-15/+22
| | | | | | | 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
* Extend response templates to work across all cobrandsDave Arter2016-09-08-2/+10
| | | | | | | | | | | This builds on the response templates in the Zürich cobrand: - Allow response templates to be assigned to categories - Also adds a auto_response flag, which will be used to automatically create updates when reports are made. - Include response templates select box on update form For mysociety/fixmystreetforcouncils#31
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-0/+11
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-4/+1
| | | | And create default cobrand class without all of Moose.
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-0/+8
| | | | | | | | | 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.
* Merge branch 'rabx-column-refactor'Chris Mytton2013-09-12-20/+2
|\
| * Use RABXColumn in remaining models that serialize some columnsEdmund von der Burg2013-09-10-20/+2
| |
* | 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.
* Make sure serialized string is UTF-8 encoded.Matthew Somerville2012-12-21-0/+1
|
* Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-5/+11
| | | | Add foreign key constraint from contacts to body.
* Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-2/+2
|
* Merge branch 'fmb-read-only'Dave Whiteland2012-10-03-0/+8
|\ | | | | | | | | | | | | Conflicts: db/schema.sql perllib/FixMyStreet/DB/Result/Contact.pm perllib/FixMyStreet/DB/Result/Problem.pm
| * allow endpoints to be configured at a category levelStruan Donald2012-08-29-2/+10
| | | | | | | | | | default cobrand now checks for endpoint configuration and only extra fallbacks are in UK cobrand
* | add non-public fields to contacts and problemStruan Donald2012-08-31-2/+4
|/
* now using open311config all send-reports webservices, not just open311Dave Whiteland2012-03-23-3/+4
|
* put filter column after loader hashStruan Donald2011-10-19-3/+3
|
* add in extra field to contacts for storing open311 meta dataStruan Donald2011-08-01-2/+23
|
* Use bcrypt.Matthew Somerville2011-06-24-3/+3
|
* Add InflateColumn::DateTime to all models.Matthew Somerville2011-05-24-3/+3
|
* add comment table in to generated DB files and regenerateStruan Donald2011-05-17-27/+27
|
* Store tokens correctlyEdmund von der Burg2011-03-24-2/+3
|
* Add contacts table to DBIC schemaEdmund von der Burg2011-03-21-0/+44