aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-comments
Commit message (Collapse)AuthorAgeLines
* [Open311] Make sure updates sent in order.Matthew Somerville2018-05-08-0/+1
| | | | | Some Open311 servers will refuse an update with a timestamp earlier than one it already received.
* [Open311] Always try and send updates if verbose.Matthew Somerville2018-05-03-3/+1
| | | | Otherwise we may not warn on otherwise skipped updates.
* [Open311] warn about send-comments errors if verbose flag setStruan Donald2018-04-26-1/+5
| | | | | | | | | Previously send-comments errors would only be printed the first time they occurred so there was no visibility of ongoing errors. This brings send-comments in line with send-reports by emitting errors if the script is called with --verbose. Fixes #2091
* [BANES] Send email when Open311 update submitted.Matthew Somerville2018-04-10-4/+52
|
* [Buckinghamshire] Don’t send updates not made by original reporterDave Arter2018-04-03-1/+12
|
* Hide 'updates not sent' message on reports sent via Open311Dave Arter2018-01-23-1/+1
| | | | | | | | | | | | | | | The 'updates are not sent to the council' message was incorrectly being shown on reports where updates would in fact be sent. This was affecting non-Bromley/Stevenage reports on fms.com and all cobrands using Open311. This commit moves the logic out of the template and adds the Problem->updates_sent_to_body method which inspects the receiving body's Open311 configuration to determine whether updates will be sent. The duplication of the Lewisham/Oxfordshire logic between Problem.pm and send-comments isn't ideal but hopefully there won't be any new Open311 bodies that only send and don't receive updates. If there are we'll have to look at refactoring that list.
* [UK] Do not try and send updates to Lewisham.Matthew Somerville2016-02-19-9/+17
|
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-2/+2
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-8/+5
| | | | Command line scripts don't need a full blown app, just database.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-2/+2
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-1/+1
| | | | | | Cache a DateTime::TimeZone::Local object, so that in an environment where /etc/localtime is a copy of a timezone file, we don't repeatedly walk all the timezone files to find the matching one.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-0/+7
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-1/+0
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Remove liberror-perl and libsoap-lite-perl.Matthew Somerville2014-11-05-1/+0
| | | | | | Try and save other people the potential pain of installing SOAP::Lite; only UK FixMyStreet and Zurich geocoder use it, so set it as an optional feature in the cpanfile instead.
* Consolidate sending backoff for different types of sender.Matthew Somerville2013-05-02-3/+0
|
* Make sure constant is used.Matthew Somerville2013-02-05-1/+1
|
* Remove all special body handling in order to move FMB to use bodies properly.Matthew Somerville2013-02-04-3/+3
|
* Merge remote branch 'origin/master'Matthew Somerville2013-02-04-0/+7
|\ | | | | | | | | Conflicts: bin/send-comments
| * explicitly stop Oxfordshire Open311 endpoint sending comments; it only ↵Dave Whiteland2013-02-04-0/+7
| | | | | | | | receives them (currently we don't make the distinction in config)
* | Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-12/+12
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | than one body.
| * Remove some linkages between area and body IDs.Matthew Somerville2012-12-15-1/+1
| |
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-10/+10
| |
| * Rename 'open311conf' database table to 'body'.Matthew Somerville2012-12-15-1/+1
| |
* | Merge remote-tracking branch 'origin/master'Struan Donald2013-01-21-2/+5
|\ \
| * | fix comment in send-commentsDave Whiteland2013-01-20-2/+5
| | |
* | | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-1/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | add send_extended_statuses conf option and use in send-commentsStruan Donald2012-10-03-1/+7
| | |
* | | allow FMB's devolved Open311 endpoints to updates (send-comments)Dave Whiteland2013-01-08-0/+12
| |/ |/|
* | another typo for bromely special casing of open311 endpointsStruan Donald2012-11-21-1/+1
| |
* | turn on extended updates for bromley and special case their endpointStruan Donald2012-11-19-0/+13
|/
* if title not present in extra for a Bromley update set it from userStruan Donald2012-07-02-0/+12
|
* only send comments if problem was sent by Open311Struan Donald2012-05-29-0/+1
|
* specify which table we want for fieldsStruan Donald2012-04-30-2/+2
|
* only send confirmed commentsStruan Donald2012-04-30-0/+2
|
* do not send comments with an external idStruan Donald2012-04-27-0/+1
|
* update whensent when a comment is succesfully sentStruan Donald2012-04-25-2/+4
|
* set jurisdiction and api_key for Open311Struan Donald2012-04-25-1/+3
|
* open311 sendmethod now has capital oStruan Donald2012-04-25-1/+1
|
* correctly calculate how long since we last failed to sendStruan Donald2012-03-27-1/+1
|
* make executableStruan Donald2012-03-26-0/+0
|
* when_sent -> whensent for consistencyStruan Donald2012-03-26-1/+1
|
* initial very basic send comments wrapperStruan Donald2012-03-26-0/+92