aboutsummaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeLines
* Pass class argument to council_area_id in fixture scriptChris Mytton2020-05-05-1/+1
| | | | | The TfL council_area_id sub uses the `$_[0]` argument to call other cobrand methods, but that argument wasn't being passed in here.
* Add sending updates capability to daemon.Matthew Somerville2020-04-28-0/+23
|
* Have a daemon that can send reports.Matthew Somerville2020-04-28-0/+124
|
* Tidy up verbose/debug handling of send-reports.Matthew Somerville2020-04-06-1/+11
| | | | | Use verbose for all log output, and debug only for overriding the should_skip check.
* Combine and improve fetch-comments/reports scriptsMatthew Somerville2020-04-02-115/+75
| | | | | Make them take start/end hour arguments, cope if only one given, optional body, and combine them together in one `fetch` script.
* Merge branch 'export-import-data'Matthew Somerville2020-04-02-0/+153
|\
| * Add script to export/import body data.Matthew Somerville2020-03-31-0/+153
| | | | | | | | This covers response templates, roles, and staff users.
* | [Buckinghamshire] Fix flytipping closure script.Matthew Somerville2020-04-02-5/+5
| | | | | | | | | | | | The ex-districts are not associated with areas any more, and the Bucks body will be associated with a different area ID once the generation is updated. The names are fixed, so use them instead.
* | [Buckinghamshire] Update off-road flytipping.Dave Arter2020-03-31-5/+15
| | | | | | | | | | | | | | | | | | Instead of sending off-road flytipping reports to the district, now that Buckinghamshire is unitary we instead recategorise them into a new email specific “Flytipping (off-road)” category which is handled in the same way as other ex-district categories with the borough_email_addresses cobrand feature, and omitted from the dropdown by the categories_restriction cobrand method.
* | [Buckinghamshire] Update for change to unitary.Martin Wright2020-03-31-2/+2
|/ | | | New unitary branding, and remove County from name.
* [HE] script to add appropriate areas to HEStruan Donald2020-03-31-0/+51
| | | | Adds all English unitary and county councils
* [HE] import HE specific road data for road lookupStruan Donald2020-03-31-0/+90
| | | | | As well as adding junction data this adds data to enable lookup by crossing roads and placenames, also service stations.
* generic import categories from json scriptStruan Donald2020-03-31-0/+112
| | | | | A script to add/replace categories for a named body including extra fields.
* Move summary failures to separate script.Matthew Somerville2020-03-31-0/+20
|
* Add Highways England junction lookupChris Mytton2020-03-12-0/+116
| | | | | | | This is taken from the sort-my-sign repo. It allows the user to search for motorways names and junction numbers, e.g. "M60, Junction 2", and then geocodes that using a SQLite database created from Highways England markerpost locations.
* Version 3.0.v3.0Matthew Somerville2020-03-04-1/+1
|
* [script/bootstrap] Keep OS packages updated in development environmentsSam Pearson2020-03-03-0/+13
| | | | | | | | | | | This adds a script, `bin/install_packages`, that will install packages listed in versions of `conf/packages*` and calls it from the bootstrap script in a way appropriate to the environment it is being run under. This should ensure that, for example, changes to dependencies will be applied to Vagrant machines in-between tagged releases. The default packages file used will be `packages.generic`.
* Merge branch 'admin-only-categories'Matthew Somerville2020-02-27-1/+2
|\
| * Add a new "staff" contact state.Matthew Somerville2020-02-26-0/+1
| | | | | | | | | | This state will appear when reporting if you are logged in as a staff member of the relevant body, but otherwise not appear on the site.
| * Fix password setting in createsuperuser script.Matthew Somerville2020-02-26-1/+1
| |
* | [Buckinghamshire] Ignore TfL as a district.Matthew Somerville2020-02-26-1/+1
|/
* [TfL] Allow bus stop reports outside London.Matthew Somerville2020-02-24-2/+12
| | | | | | | | | | | | | After this change, you can safely add the TfL body to other councils (namely the ones surrounding London that include TfL bus stops); clicking in those councils on other cobrands will have no change, as the TfL body will be fully ignored on a non-London council, but on the TfL cobrand it will allow it for e.g. the selection of bus stops outside London. It removes the body rather than just all its categories to prevent a "We do not have details of the other body covering this area" message appearing.
* Add --group flag to add_emergency_message scriptChris Mytton2020-02-20-0/+5
| | | | | | | | This allows you to restrict the message to a certain group of categories. This is so we can add a "is this problem on private land" message to the categories in the "Trees" group for Peterborough.
* Add ManifestTheme model for customising web manifestDave Arter2020-02-14-0/+1
|
* [Northamptonshire] switch cypress tests away from treesStruan Donald2020-02-06-1/+1
| | | | | Because trees now allow you to click on a highway as well as a tree it's simpler to switch the tests to a different type
* [Peterborough] Add test for multiple questions disabling new report formChris Mytton2020-01-29-2/+35
|
* Fix bug in add_emergency_message scriptChris Mytton2020-01-22-2/+2
| | | | | | | There was a typo in the error message and the related conditional which meant it was checking for $opts->questions (which doesn't exist) rather than $opts->question, which prevented the script from being used to add a question.
* [Inactive] Add option to only act on one cobrand.Matthew Somerville2020-01-09-2/+3
|
* [Inactive] Add option to fully delete reports.Matthew Somerville2020-01-09-3/+4
|
* Add body argument to Open311 populate script.Matthew Somerville2020-01-09-1/+6
|
* Do not hard code site name in database fixture.Matthew Somerville2019-12-10-0/+1
| | | | This also lets it be cobrand specific.
* handlemail can use cobrand’s reply-autoresponse template based on incoming ↵Dave Arter2019-12-09-3/+28
| | | | To: line
* [TfL] Call Other "Other (TfL)" for interop.Matthew Somerville2019-12-09-1/+3
|
* [TfL] Script to import categories from JSON.Dave Arter2019-12-09-0/+114
|
* script to update permissions of a body's usersStruan Donald2019-11-22-0/+70
| | | | | Allows adding or removing a list of permissions to the users belonging to a body.
* Add integration test for setting a Confirm site_codeChris Mytton2019-11-13-1/+16
| | | | | | | I want to change the `updateUSRNField` method so that it can accept an array of objects in the `usrn` key, but before doing that I want to add a test to ensure the existing behaviour is tested, to ensure I'm not breaking anything.
* Add admin log entry for more objects and things.Matthew Somerville2019-11-08-0/+1
| | | | | Namely templates, roles, bodies, categories, various user edits, and when using the inspect form and changing category.
* allow emergency message script to add category messagesStruan Donald2019-10-28-29/+52
| | | | | also add an update only option to only update existing messages and not add new ones
* [Northamptonshire] script to update emergency messageStruan Donald2019-10-28-0/+59
| | | | To avoid having to do it all by hand
* [fixmystreet.com] Generalise emergency message script.Matthew Somerville2019-10-21-73/+83
|
* [Northamptonshire] small tweaks to backfill scriptStruan Donald2019-10-17-1/+11
| | | | | Fix a couple of issues discovered in testing where the Response to customer wasn't being detected in the database;
* [Northamptonshire] updated report status backfill scriptStruan Donald2019-10-16-18/+45
| | | | | Update the script for updating all statuses rather than just the investigating ones
* [Oxfordshire] Remove unused Exor RDI code.Matthew Somerville2019-10-10-79/+0
|
* [Northamptonshire] correct typo in column nameStruan Donald2019-10-03-1/+1
|
* [Northamptonshire] update default status for one off updateStruan Donald2019-10-03-1/+1
| | | | Completed reports default to closed, not in progress
* [Northamptonshire] script to update NCC statusesStruan Donald2019-10-02-0/+177
| | | | | | | This is a one off script to update the status of NCC reports affected by a bug in the NCC update process. It relies on a csv file containing a mapping of report id to Alloy status and uses this to update the FixMyStreet status.
* [IsleOfWight] script to add emergency categoriesStruan Donald2019-09-27-0/+73
| | | | | | One off script that adds an question to each Triage category to ask if the problem is urgent or not. Sets urgent answer to block form submission.
* add asset_details to triage category setup scriptStruan Donald2019-09-27-0/+9
|
* [IsleOfWight] correctly handle triage categories on reports/around pagesStruan Donald2019-09-27-1/+12
| | | | | | | | | | | | | | Add in some cobrand handlers to make sure a) the appropriate categories are show to staff/non staff users on the around and reports pages b) that those categories are correctly expanded to the child categories when using the category filter to search reports This is because non staff users should only be shown Isle of Wight categories with a send_method of 'Triage', however once those reports are triaged the post triage categories need to be included in any filtering
* [IsleOfWight] script to add asset attributes to triage categoriesStruan Donald2019-09-27-0/+124
| | | | | These need a script to add asset_id/site_code to the category so this is set by the front end