aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311/populate-service-list.t
Commit message (Collapse)AuthorAgeLines
* [Open311] Spot <groups> parameter rather than CSV.Matthew Somerville2019-09-20-46/+3
|
* [Open311] Add 'protected' category extra flag.Struan Donald2019-08-23-0/+128
| | | | | If an extra field on a category has a protected flag then do not overwrite or remove it when populating categories.
* allow multiple groups in open311 services group tagStruan Donald2019-06-17-0/+142
| | | | | | | Only parses as multiple groups if cobrand is configured to handle them to stop issues with existing groups with commas in them. Groups are parsed as CSV so as to allow commas in group names.
* configure category_groups via COBRAND_FEATURESStruan Donald2019-06-17-15/+8
| | | | | Rather than have a method in the Cobrand module use the COBRAND_FEATURES section of the config file.
* Mark Open311 contacts non_public according to service keywordsDave Arter2019-06-04-0/+101
| | | | | | | | | This allows the Open311 endpoint to include ‘private’ in the ‘keywords’ field of a service definition in order for it to be marked as non_public on FMS. NB existing categories may be updated to become non_public, but non_public categories will never have their non_public flag unset by PopulateServiceList. This is so any existing Open311 categories on FMS don’t suddenly become public.
* [UK Councils] Make sure server_set as appropriate.Matthew Somerville2019-03-12-1/+26
| | | | | After the change in 1cff2a0e, we need to make sure this is set so that the relevant fields are not shown in the front end.
* Make sure raw RABX column is utf8-encoded.Matthew Somerville2019-03-06-0/+52
| | | | | | | | | | | | Without doing this, a call to e.g. $contact->set_extra_fields(@meta) in PopulateServiceList.pm, with an unchanged meta that contains some Unicode values, can write to the database (and cause an unneeded row in the history table), because the column from the database is UTF-8 decoded, whilst the new text is UTF-8 encoded. It looks like an attempt was made in filter_from_storage to fix this issue, but the column comparison for marking a column as dirty takes place without this being called.
* [Buckinghamshire] Question for on-road flytipping.Matthew Somerville2019-01-23-27/+118
| | | | | | | | This adds a question to check whether a flytipping report concerns flytipping on a road or not. Client-side, it is asked when a road is selected and destination adjusted according to the answer; server side it uses the answer to direct any both-tier submissions (from e.g. non-JavaScript or phone app).
* [Open311] Refactor cobrand specific code.Matthew Somerville2019-01-23-1/+5
|
* Fix Open311 category group bugsDave Arter2018-11-07-4/+6
| | | | | | | - Group wasn’t being set correctly by open311-populate-service-list as cobrand attribute not being updated for each body. - Extra metadata was being persisted to the DB every time even if nothing had changed, causing lots of duplicate entries in contacts_history.
* Add tests for per-cobrand category group handlingDave Arter2018-11-02-21/+47
|
* [Bromley] Add asset/PROW ID meta to attributes.Matthew Somerville2018-06-04-63/+9
|
* Store server_set automated, but ignore for input.Matthew Somerville2018-03-21-90/+0
| | | | | 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.
* Deal with 'automated' Open311 service attributes.Struan Donald2018-03-15-0/+90
| | | | | | This is part of the integration with our open311-adapter. The automated property indicates that it's an expected value but either it's going to be set by the server, or appear as a hidden field.
* Store group on Contacts in Open311 PopulateServiceListDave Arter2017-12-05-0/+9
|
* Add inactive state to categories.Matthew Somerville2017-07-14-27/+14
| | | | | 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-4/+1
| | | | This means that the tests can be run in parallel.
* Tidy up Open311 XML handling.Matthew Somerville2016-06-15-12/+1
| | | | | Parse the XML in such a way other parts of the code do not have to worry about single-value folding or the like.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-23/+23
| | | | Command line scripts don't need a full blown app, just database.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-9/+9
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-10/+11
| | | | | | | | | 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.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-4/+0
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Open311: FMS <-> Open311 Endpoint End to end testsHakim Cassimally2014-10-16-1/+3
| | | | | Uses LWP::Protocol::PSGI to avoid having to spawn external processes in order to test these end to end.
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-10/+10
| | | | Add some comments to the top of the open311 bin scripts.
* Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-0/+5
| | | | than one body.
* Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-49/+20
|
* Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-20/+20
| | | | Add foreign key constraint from contacts to body.
* Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-9/+9
|
* do not fall over if there is unexpectedly no meta data for a service codeStruan Donald2012-11-23-0/+13
|
* handle updates to meta data as well as meta data when a contact is createdStruan Donald2012-10-18-0/+165
|
* use correct method nameStruan Donald2012-04-27-4/+4
|
* more populate tests and also cope with bromley non display fieldsStruan Donald2012-03-22-0/+298
|
* if we have two conflicting existing contacts then skip the updateStruan Donald2011-10-11-4/+63
|
* reduce duplicate codeStruan Donald2011-10-11-135/+38
|
* test existing contacts are deletedStruan Donald2011-10-11-1/+71
| | | | udpate service code for contact with same category
* handle change of service name for existing service codeStruan Donald2011-10-11-0/+75
|
* rewrite populate service list to enable testing and add some testsStruan Donald2011-10-10-0/+148