aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model/extra.t
Commit message (Collapse)AuthorAgeLines
* add a get_extra_field method to Extra roleStruan Donald2019-10-28-0/+47
| | | | | accepts name or code for finding the field. Useful for checking for individual open311 fields that don't have a value.
* Add two new helper functions to Roles::Extra.Matthew Somerville2019-09-30-0/+25
| | | | For updating/removing an extra field.
* Add 'verified' database columns for email/phone.Matthew Somerville2017-09-30-0/+1
| | | | | These are so we can state whether a user's email address or phone number have been verified by confirmation email/text.
* Add Extra->get_extra_field_valueDave Arter2017-08-31-0/+42
| | | | Allows easy display of Open311 field values for problems in templates
* Move FixMyStreet::DB to FixMyStreet::DB::Schema.Matthew Somerville2017-08-09-1/+1
| | | | Store a schema object on FixMyStreet::DB instead.
* Add inactive state to categories.Matthew Somerville2017-07-14-2/+1
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Run each test file in a transaction.Matthew Somerville2017-06-20-8/+2
| | | | This means that the tests can be run in parallel.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-1/+0
|
* Improve display of category extra data in admin.Matthew Somerville2016-09-09-4/+4
| | | | Allow get_extra_metadata to return all the data with no argument.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-4/+2
| | | | Command line scripts don't need a full blown app, just database.
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-0/+111
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.