aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Open311.pm
Commit message (Collapse)AuthorAgeLines
* Remove superfluous lists from Open311 JSON output.Matthew Somerville2017-03-17-35/+26
| | | | | | | The Open311 JSON output was wrapping each request parameter in a list. This was presumably to prevent the XML output including the parameters as attributes rather than children. A better way to fix this is to use the NoAttr parameter to XMLout which forces them to be children.
* Add config for Open311 request limit, default 1000.Matthew Somerville2016-08-10-3/+4
| | | | Fixes #1313.
* Add PNG image support.Matthew Somerville2016-04-08-1/+1
| | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-1/+1
| | | | | | Travis has Cpanel::JSON::XS preinstalled, which means that the build would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to version 3 which the snapshot did not contain.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-12/+12
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* [Zurich] add columns to stats exportHakim Cassimally2015-03-31-2/+1
| | | | | | | | | | | | | | | - Original Report description - Amended Report description (unsure what this is) - Media URL (currently one picture, in the future 1-3 pictures) - Interface used (see open311) - Requested datetime (see open311) (seems to be same as created) - Agency sent datetime (see open311) - Updated datetime (see open311) - Council-Response - title as per https://github.com/mysociety/FixMyStreet-Commercial/issues/678
* [Zurich] add service_notice based on public_responseHakim Cassimally2015-03-31-0/+6
| | | | for https://github.com/mysociety/FixMyStreet-Commercial/issues/678
* No agency in Zurich.Matthew Somerville2013-05-13-1/+5
|
* Explicitly exclude unconfirmed reports.Matthew Somerville2013-05-13-2/+6
|
* Consolidate photo display checking to one function.Matthew Somerville2013-05-13-1/+1
|
* Remove *_local tz functions, set timezone on fetching original columns from ↵Matthew Somerville2013-02-14-3/+3
| | | | database.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-16/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | than one body.
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-15/+7
| |
| * Convert get_services to lookup body area_ids.Matthew Somerville2012-12-15-2/+2
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-1/+1
| | | | | | | | Add foreign key constraint from contacts to body.
* | Add do-not-reply config variable, removing special case from code.Matthew Somerville2013-01-02-1/+1
|/
* Allow the MapIt types to be given in config.Matthew Somerville2012-08-17-2/+2
|
* A start_date and an end_date was only producing one confirmed conditionStruan Donald2012-08-02-2/+8
| | | | | | | | in the where clause as they were overwriting each other. This now handles start and end date explicitely to generate the correct search criteria Fixes #310
* Store full size photos that are uploaded on filesystem, put hash in ↵Matthew Somerville2012-03-08-1/+1
| | | | database. Fixes #9, basics for #209 (needs light box adding).
* Fix redirect of old Open311 URIs when they have query parameters.Matthew Somerville2011-09-12-1/+1
|
* remove hard coded state stringsStruan Donald2011-08-18-7/+10
|
* Get Open311 RSS working, whether it's given a ResultSet or a lower level ↵Matthew Somerville2011-08-04-23/+7
| | | | statement handle.
* Leftovers.Petter Reinholdtsen2011-08-02-1/+1
|
* Try different approachh.Petter Reinholdtsen2011-08-02-1/+18
|
* Try to get Open311 GeoRSS output working.Petter Reinholdtsen2011-08-01-4/+9
|
* Right handling of DB objects, and better datetime handling.Matthew Somerville2011-07-29-52/+40
|
* Fix capture indices, set bodies in output.Matthew Somerville2011-07-29-8/+8
|
* Tidy up database querying, needs testing.Matthew Somerville2011-07-29-93/+78
|
* Bit more action tidying.Matthew Somerville2011-07-29-17/+23
|
* Factor out .cgi redirect, stash format (more to tidy).Matthew Somerville2011-07-29-18/+33
|
* Move documentation to template, start tidying up action flows.Matthew Somerville2011-07-29-200/+17
|
* Try to include comment count.Petter Reinholdtsen2011-07-29-0/+9
|
* Start on Catalyst based Open311 API based on old CGI based implementation.Petter Reinholdtsen2011-07-29-0/+632
Comment out non-working code for now.