aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script
Commit message (Collapse)AuthorAgeLines
* Add hook for per-row questionnaire override.Matthew Somerville2018-09-13-1/+4
|
* pull out reports group_by code to methodStruan Donald2018-09-12-9/+16
| | | | So we can use this in collideoscope
* add end argument to loop_periodStruan Donald2018-09-12-5/+6
| | | | | So we can use it for collideoscope which does not use a fixed end period.
* Use do-not-reply address for sent report email.Matthew Somerville2018-07-09-1/+0
|
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-1/+4
| | | | | | | | | | | Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption.
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-0/+174
|\
| * Add ability to close updates on reports.Matthew Somerville2018-05-23-0/+24
| | | | | | | | | | The inactive report script can mark matched reports as closed for updates. This removes the update form and signing up for updates from a report page.
| * Script to scrub old non-open reports.Matthew Somerville2018-05-23-0/+57
| |
| * Script to email/anonymize inactive users.Matthew Somerville2018-05-23-0/+93
| |
* | Use default sender for report sent email.Matthew Somerville2018-05-23-1/+1
|/
* Add a cobrand hook to table dashboard generation.Matthew Somerville2018-04-23-17/+25
| | | | This allows a cobrand to categorise the reports however it wishes.
* Don’t send alert emails when archiving old reportsDave Arter2018-04-12-1/+16
|
* Include cobrand in ‘report logged’ template paramsDave Arter2018-04-03-0/+1
| | | | | This was causing broken URLs in emails when sending reports to Bucks, as there was no cobrand to call `base_url_for_report` on.
* Store contributed-as data.Matthew Somerville2018-03-20-0/+3
| | | | | Store if the report/update was created by someone using the contributed-as dropdown, and use that information to perhaps not send report-sent emails.
* send multiple photos over open311Struan Donald2018-03-15-0/+2
| | | | | | | | Per cobrand configurable option to send multiple photos over open311 instead of just a single one. Does this by sending multiple media_url parameters in the POST body. The default remains to send the first photo associated with a report.
* Merge branch 'issues/commercial/987-zurich-csv-updates'Matthew Somerville2018-03-14-1/+1
|\
| * [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-1/+1
| | | | | | | | | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* | [Warwickshire] Add archive script data.Matthew Somerville2018-03-14-11/+24
|/ | | | Add an update with each report closure.
* Use `report` more in email templates.Matthew Somerville2018-02-27-8/+0
|
* Improvements to report_sent_confirmation_email functionDave Arter2018-02-12-2/+2
| | | | | | - Send ‘report sent’ emails from cobrand’s contact address - Don’t send email when report is made using contribute-as-other and report_sent_confirmation_email is active.
* Allow ‘report as another user’ to only provide a phone numberDave Arter2018-02-07-4/+0
|
* Never skip sending reports with --debug flagDave Arter2018-01-29-1/+1
| | | | | | | It’s a little annoying to have to fiddle with the database between runs of send-reports when debugging a stuck/failing report or working on a new Open311 integration. This commit disables skipping of reports when the --debug flag is used.
* Fix error sending `requires_inspection` reports.Matthew Somerville2018-01-16-0/+1
| | | | | has_permission_to() is called in Reports.pm and requires the cobrand to be set on the schema. The test was manually doing this which hid the problem.
* [fixmystreet.com] Council average response time.Struan Donald2017-12-15-24/+3
|
* Store all successful send methods.Matthew Somerville2017-12-13-1/+3
|
* update-all-reports operate per body optionally.Matthew Somerville2017-10-20-49/+94
|
* Allow testing override of /reports data.Matthew Somerville2017-10-16-11/+3
|
* Fix issue sending alerts around no-text update.Matthew Somerville2017-10-06-13/+18
| | | | | | | | | If there was a normal email alert, and then an alert for an update with no text (so no email should be sent), it would still try to send the blank email, and then die because no e.g. $data{cobrand} set. This moves the skip-blank-update check higher up, above any email sending code.
* generate update text in alerts if problem state has changedStruan Donald2017-10-05-0/+15
|
* do not send blank problem update alertsStruan Donald2017-10-05-0/+1
|
* Adapt things that assume email will be present.Matthew Somerville2017-09-30-10/+20
| | | | | | This includes stopping some emails being sent (moderation, alert, questionnaire), dealing with Open311/email report sending, and tokenised_url.
* Hide things needing fixed state if no fixed state.Matthew Somerville2017-08-31-0/+3
| | | | | Front page stats, update form question, list filtering, plus do not send any questionnaires.
* Fix missing URLs in alert emailsDave Arter2017-08-22-1/+1
| | | | | | | | | If a staff user changed a problem’s state and an empty update was generated, it was possible for alert emails to be sent with missing URLs because the empty string in the update text was falsy and Alert.pm took the wrong path. This fixes the problem by changing the test to defined() and includes a regression test.
* Move FixMyStreet::DB to FixMyStreet::DB::Schema.Matthew Somerville2017-08-09-3/+3
| | | | Store a schema object on FixMyStreet::DB instead.
* Fix update-all-reports when database empty.Matthew Somerville2017-07-18-1/+6
|
* Use DateTime in update-all-reports for tests.Matthew Somerville2017-07-17-6/+8
| | | | The test fixes DateTime, which wouldn't affect direct database queries.
* Include area stats in all-reports.jsonDave Arter2017-07-17-14/+26
| | | | | | | This makes it possible to display stats per area on /reports Cobrands using this functionality should use the pre-dashboard reports/index.html template and pass --areas when calling bin/update-all-reports
* [fixmystreet.com] Fix /reports displaying months.Matthew Somerville2017-07-07-16/+25
| | | | | | Month strings weren't escaped in data label, and would never match database data (using month number). Also issues displaying current day/month in graph.
* [fixmystreet.com] Fixed includes questionnaires.Matthew Somerville2017-07-07-1/+4
| | | | Questionnaire responses don't currently set problem_state.
* [fixmystreet.com] New version of /reports page.Zarino Zappia2017-07-06-0/+163
| | | | | | | | | | | This is a much broader summary page, plus a body name autocomplete. This uses a cut down version of chart.js. [1] [1] The full version was 149Kb (41Kb gzipped) plus you needed moment (50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs and code and config options, and switching to category axis rather than time, it is now a total of 39Kb/13Kb.
* Run each test file in a transaction.Matthew Somerville2017-06-20-0/+80
| | | | This means that the tests can be run in parallel.
* Remove final use of old DBHandle.Matthew Somerville2017-06-20-5/+2
|
* Tidy up find_closest* functions.Matthew Somerville2017-05-02-4/+4
| | | | | Allow find_closest to be called multiple times with only one lookup, and to return just its data, not a compiled string.
* Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-5/+1
|
* Send open reports regardless of current stateDave Arter2017-02-20-2/+2
|
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-3/+1
|
* [Oxfordshire] Old report archiving scriptpezholio2017-02-15-0/+141
| | | | | | | | | | | | | | | This script can be used for the bulk closure of old reports that haven't been updated in a long time. Reports that haven't been updated in a *really* long time (since 2014, by default) are simply closed, and those that haven't been updated since 2015 (by default) are closed and an email explaining the closure is sent to the report creator. This script can be used for other cobrands, but they'll need an archive.{txt,html} template in order for the emails to be sent. For mysociety/fixmystreetforcouncils#51
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-1/+1
|
* Send reports immediately from users with enough reputationDave Arter2016-09-23-1/+8
|
* Merge remote-tracking branch ↵Matthew Somerville2016-09-20-1/+1
|\ | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions'