aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311/PopulateServiceList.pm
Commit message (Collapse)AuthorAgeLines
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-6/+6
|
* [Bristol] Bristol City Council cobrand frontendDave Arter2016-06-17-3/+4
| | | | For mysociety/FixMyStreet-Commercial#766.
* Improve Open311 handling of bad attribute data.Matthew Somerville2016-06-17-1/+1
| | | | | We have seen e.g. an endpoint that is returning 'serviceAttributes' as the child of 'attributes', rather than 'attribute'.
* Fix Open311 service code check.Matthew Somerville2016-06-17-1/+1
| | | | The service code could be "0".
* Fail nicely if Open311 response lacks service codeMatthew Somerville2016-06-15-6/+10
|
* Tidy up Open311 XML handling.Matthew Somerville2016-06-15-10/+2
| | | | | Parse the XML in such a way other parts of the code do not have to worry about single-value folding or the like.
* Remove some unused cobrands.Matthew Somerville2016-04-20-1/+0
|
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-1/+1
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-1/+1
| | | | And create default cobrand class without all of Moose.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-8/+4
| | | | Command line scripts don't need a full blown app, just database.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-3/+3
| | | | | 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-5/+1
| | | | | | | | | 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.
* Better error if Open311 returns nil service list.Matthew Somerville2014-11-21-8/+10
| | | | | | | | If an Open311 server responded with e.g. '<services></services>', you got a strange hash error as the code treated it as one undef service. Spot this at the same point we check anything was returned. Also remove a couple of warnings due to lc of a maybe-undef variable.
* [Warwickshire]. PopulateServiceList deletion tweakHakim Cassimally2014-10-16-4/+15
| | | | | | as WCC is (during beta) mixed email (manually updated) and Open311, override the behaviour to delete contacts not returned by service list, to ignore ones that look like email addresses.
* Open311: FMS <-> Open311 Endpoint End to end testsHakim Cassimally2014-10-16-0/+1
| | | | | Uses LWP::Protocol::PSGI to avoid having to spawn external processes in order to test these end to end.
* Open311 Warwick (Exor) IntegrationHakim Cassimally2014-10-16-5/+18
| | | | | | | | | | | | | | | | | | | | | | | ::Integration::Warwick subclasses ::Integration::Exor refactor request_class and new_request Exor service Warwickshire updates retrieval, with datetimes stubbing out of Oracle constants, for local testing We also edit FMS's core PopulateServiceList routine to hide system fields from FMS: Bromley/Warwickshire send metadata in their services/FOO.xml advising that you can pass, e.g. attributes[easting]. FMS by default shows all of these to the user to fill in, however we don't *want* the user to supply these, rather they are added by the cobrand. Bromley had an exception for this (keyed by $body->areas->id). We write this more generally for Warwickshire too, keying instead by $body->name (as this is far less likely to be overridden for installs using global or custom Mapit's)
* Replaced hardcoded Mapit-URL in error message to use variable from config ↵Rikard2013-08-30-1/+2
| | | | instead
* Check for only one result, fixes #359.Matthew Somerville2013-03-18-1/+4
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-30/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-6/+6
| | | | | | | | than one body.
| * Convert PopulateServiceList to use body IDs.Matthew Somerville2012-12-15-29/+30
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-3/+3
| | | | | | | | Add foreign key constraint from contacts to body.
| * Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-1/+1
| |
* | don't do Open311 service discovery for departments in FixMyBarangay project ↵Dave Whiteland2013-01-29-1/+1
|/ | | | (yet)
* do not fall over if there is unexpectedly no meta data for a service codeStruan Donald2012-11-23-0/+8
|
* Merge branch 'stevenage'Struan Donald2012-11-19-0/+6
|\ | | | | | | | | | | | | | | | | | | Conflicts: .gitignore bin/make_css conf/crontab.ugly perllib/FixMyStreet/Cobrand/Default.pm perllib/Open311.pm templates/web/fixmystreet/around/postcode_form.html
| * handle updates to meta data as well as meta data when a contact is createdStruan Donald2012-10-18-0/+6
| |
* | Improve error message.Matthew Somerville2012-10-04-1/+2
| |
* | Caseinsensitive match.Matthew Somerville2012-10-04-1/+1
| |
* | Add warning option to Open311 populate, to show warnings.Matthew Somerville2012-10-04-7/+10
| |
* | Merge remote branch 'origin/master' into fmb-read-onlyDave Whiteland2012-05-29-6/+37
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-reports perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/FixMyStreet.pm templates/web/fixmystreet/alert/index.html templates/web/fixmystreet/around/display_location.html web/cobrands/fixmystreet/_layout.scss web/js/map-OpenLayers.js
| * do not put empty arrays into extra field of contacts and ignore them if they ↵Struan Donald2012-05-25-1/+5
| | | | | | | | are there
| * add verbose option and apply to print statementsStruan Donald2012-04-23-4/+5
| |
| * correct function nameStruan Donald2012-04-23-1/+1
| |
| * more populate tests and also cope with bromley non display fieldsStruan Donald2012-03-22-0/+26
| |
* | need to check for 'open311' send_method because (naughtily) there may be ↵Dave Whiteland2012-05-01-0/+1
|/ | | | services in there that are not open311 (later: rename table?)
* printf not sprintfStruan Donald2011-10-21-1/+1
|
* temporary fix to make cambridgeshire use description and not service_nameStruan Donald2011-10-21-4/+12
|
* Do not process council if not endpoint or no servicesStruan Donald2011-10-21-0/+5
|
* remove out of date FIXMEStruan Donald2011-10-11-1/+0
|
* if we have two conflicting existing contacts then skip the updateStruan Donald2011-10-11-1/+15
|
* do not die if we update a contact and there is one with the same categoryStruan Donald2011-10-11-13/+20
|
* test existing contacts are deletedStruan Donald2011-10-11-1/+3
| | | | udpate service code for contact with same category
* handle change of service name for existing service codeStruan Donald2011-10-11-2/+2
|
* rewrite populate service list to enable testing and add some testsStruan Donald2011-10-10-0/+205