aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311
Commit message (Collapse)AuthorAgeLines
* Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-16/+14
| | | | | | | Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code.
* 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.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-0/+1
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-8/+0
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* [Warwickshire] Integration bits during/after visitHakim Cassimally2014-10-16-184/+220
| | | | | | | - Tweaks required to get things working in WCC environment - update Open311 to onsite changes - updated Open311 parameters after WCC's Bentley and County Highways workshop. - ... including ce_cpr_id
* Open311: FMS <-> Open311 Endpoint End to end testsHakim Cassimally2014-10-16-9/+147
| | | | | 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-8/+330
| | | | | | | | | | | | | | | | | | | | | | | ::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)
* Open311 Role for accepting default config fileHakim Cassimally2014-10-16-0/+24
| | | | | | | | See also MooX::ConfigFromFile, but that's underdocumented and seems overengineered -- may be worth implementing if requirements become more complex however. (See also Config::Any, which is well worth doing in future, using YAML only reflects current usage in FMS though.)
* Open311 Endpoint mySociety extensions roleHakim Cassimally2014-10-16-3/+194
| | | | | | | | | | | | | | * Get Service Request Updates This requires a new object ::Service::Request::Update, which of course is not part of standard spec. So, in order to make the core not too contaminated by : * the endpoint should instantiate ::Service::Request::mySociety objects which know about updates * have added a learn_additional_types callback from Schema to Endpoint, so that core doesn't need to know about /open311/service_request_update * (but ::Spark knows about the exception for updates... meh, but is 1-line)
* Open311 EndpointHakim Cassimally2014-10-16-0/+623
| | | | | | | | | | | | | | | | | | | | | Subsystems include * ::Spark encoding conventions for xml/json * ::Schema using Rx to validate form of inputs and outputs, including validation for, e.g., dates and CSV as part of Open311 Handles following paths: * Open311 attributes for Service Definition http://wiki.open311.org/GeoReport_v2#GET_Service_Definition * POST service request * GET Service Requests * GET Service Request Objects: * ::Service * ::Service::Request
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-13/+16
| | | | Add some comments to the top of the open311 bin scripts.
* Add test for de47a7f.Matthew Somerville2014-03-12-15/+63
| | | | | | This tests that the default string used by the old-style Open311 update code if there is no incoming string and the report is marked fixed, is translated.
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+198
|\ | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * Bring back open311-update-reports, GetUpdates.pm and getupdates.tJon Kristensen2014-03-11-0/+198
| | | | | | | | | | | | This commit reverses the "Remove unused Open311 GetUpdates code." commit. FixaMinGata, the Swedish FixMyStreet cobrand, is still using open311-update-reports.
* | Fix uncommon Open311 errors on processing updates.Hakim Cassimally2014-02-27-9/+25
| | | | | | | | | | | | | | | | | | | | | | Fixes #677. The query to fetch the related alert sometimes: * retrieves no result, causing an error on $alert->id * retrieves multiple results, causing deprecation warnings (e.g. which may at some point become future errors in DBIC) This commit turns the resultset('DB::Alert')->find(...) into a search(...) and loops over the results, to suppress them.
* | Don't update problem state from service request if currently hidden.Matthew Somerville2014-01-30-18/+13
|/
* Fix some missing time zone declarations in tests.Matthew Somerville2013-04-09-1/+3
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-276/+54
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-7/+12
| | | | | | | | than one body.
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-51/+22
| |
| * Remove unused Open311 GetUpdates code.Matthew Somerville2012-12-15-198/+0
| |
| * 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
| |
* | add internal review status to problemsStruan Donald2013-01-17-0/+12
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-14/+148
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-comments conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/Open311.pm t/app/controller/report_updates.t t/open311.t templates/web/default/report/display.html templates/web/default/report/updates.html templates/web/fixmystreet/report/display.html
| * be less restrictive about how open 311 status updates can change statesStruan Donald2012-11-09-4/+16
| | | | | | | | | | as logged in council users don't have the same restrictions also, fix open311 status name of unable to fix
| * simplfy state change code and also correct bugsStruan Donald2012-10-04-6/+56
| |
| * actually use a closed state in the testStruan Donald2012-10-04-1/+1
| |
| * add in test for FIXED statusStruan Donald2012-10-03-0/+12
| |
| * do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-12/+0
| | | | | | | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
| * tidy up status names in DB, improve tests a littleStruan Donald2012-10-01-4/+28
| |
| * initial work to handle changed problem statesStruan Donald2012-08-31-6/+54
| |
* | 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
| |
* | bring service request updates in line with our specStruan Donald2012-10-08-9/+9
| |
* | update getservice request tests for open311-fms versionStruan Donald2012-09-07-10/+31
| |
* | Always use 'reopened', and don't set mark_open for Open311 received updates.Matthew Somerville2012-09-05-2/+2
| |
* | handle re-opening of problems via open311 service requests updates correctlyStruan Donald2012-09-05-2/+2
|/ | | | also small tweaks to display of update meta information
* Use problem_state column rather than mark_fixed for updates from council.Matthew Somerville2012-06-06-3/+8
|
* add ability to suppress alerts to report creator onStruan Donald2012-05-11-0/+66
| | | | comments updated from open311
* tests for ignoring old comment state and related fixesStruan Donald2012-04-27-0/+57
|
* use correct method nameStruan Donald2012-04-27-4/+4
|
* tests for time and comment replacement plus fixes for comment timeStruan Donald2012-03-28-0/+97
|
* add in start end date limits for get service request updatesStruan Donald2012-03-27-0/+46
|
* more populate tests and also cope with bromley non display fieldsStruan Donald2012-03-22-0/+298
|
* regularise data structure in open311 module as that is more sensibleStruan Donald2012-03-20-1/+1
|
* make sure external ids for problems and comments are only unique per councilStruan Donald2012-03-20-1/+72
|
* tests for mark_open and mark_fixedStruan Donald2012-03-20-0/+56
|
* slightly less convulted test data structureStruan Donald2012-03-20-4/+4
|