aboutsummaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeLines
* Version 3.1.v3.1M Somerville2020-11-16-3/+2
|
* [Bromley] Factor parallel calling to external script.M Somerville2020-11-12-0/+33
|
* [Bromley] Script to update open waste reports.Matthew Somerville2020-11-11-0/+24
|
* [TfL] script to automatically close reportsStruan Donald2020-10-14-0/+48
| | | | | | | | | | | | Closes reports that meet the following criteria: * status is action scheduled * in a category with a fixed - council auto response template * over n days in action scheduled state (n is an argument) Reports matching these criteria are marked as fixed - council and the relevant response template text is added as a comment. Fixes mysociety/fixmystreet-commercial#1955
* [Oxfordshire] Add instruct defect functionality back inChris Mytton2020-10-12-2/+17
| | | | | | | | | | | | In the past Oxfordshire had a way for inspectors to "instruct a defect", which generated a CSV which got emailed to Oxfordshire with a list of defects. They now want to bring this functionality back, but instead of emailing a CSV they want it to call an API. As a first step towards that goal, this change adds back some of the instruct defect functionality that was removed in 68e18ff.
* [Northamptonshire] improve external id mapping scriptStruan Donald2020-09-21-1/+7
| | | | | Now uses FixMyStreet id as the lookup based on external_id was much too slow in practice
* [Northamptonshire] script to update external idsStruan Donald2020-09-18-0/+59
| | | | | The migration from V1 to V2 changes the IDs so take a CSV of the changes and apply it, saving the old id just in case.
* Offline process for CSV generation.M Somerville2020-08-11-0/+77
| | | | | Include a status page, the option for access token requests to use this system, and a script for manual generation.
* Add database index for user full text search.M Somerville2020-08-06-0/+1
|
* [Zurich] Show internal reports on their own page.Matthew Somerville2020-07-31-0/+1
| | | | | The new internal reports is displayed the same as the main summary, and all reports shows both internal/non-internal.
* Add database index for full text search.Matthew Somerville2020-07-31-0/+4
|
* Do not have bootstrap run sudo commands.Matthew Somerville2020-07-15-3/+2
| | | | | | | | | Your site user may not have access to sudo, and your admin user may cause permission issues if used to do the git checkout, or the Perl module installation. Document the separate script to install system packages instead. Co-authored-by: Sam Pearson <sam@mysociety.org>
* Centralise update creation to include fields.Matthew Somerville2020-07-14-2/+38
| | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Rewrite open311-update-reports to share code.Matthew Somerville2020-07-06-13/+14
| | | | | Make GetUpdates and GetServiceRequestUpdates share a common base; spot all visible states.
* Improve category import scriptDave Arter2020-07-02-2/+3
| | | | | Adds ability for categories to be marked as devolved with their own send_method, and for the open311_protect flag to be set.
* [Hackney] Initial cobrand design & privacy policy amendmentMartin Wright2020-07-02-2/+3
| | | | | | Co-Authored-By: Struan Donald <struan@exo.org.uk> For https://github.com/mysociety/fixmystreet-commercial/issues/1808
* [Open311] Use devolved data on update sending.Matthew Somerville2020-06-23-1/+0
|
* Merge branch 'he-still-bit-buggy-grr'Matthew Somerville2020-05-27-2/+2
|\
| * Consistent use of Contact groups.Matthew Somerville2020-05-26-2/+2
| |
* | Fix update-schema constraint check on Postgres 12Dave Arter2020-05-27-1/+1
|/ | | | | pg_constraint.consrc has been removed in Postgres 12, and this is the recommended replacement. See https://www.postgresql.org/docs/12/release-12.html
* Merge branch 'js-coverage'Matthew Somerville2020-05-26-2/+42
|\
| * Add --coverage option to browser-tests.Matthew Somerville2020-05-19-2/+42
| | | | | | | | You need to install the @cypress/code-coverage package alongside cypress.
* | Include updates in failure summary report.Sam Pearson2020-05-26-3/+8
|/ | | | This includes details of any failing updates in the summary script.
* reset asset select message by id when asset unselectedStruan Donald2020-05-15-1/+19
| | | | | | | | | | Resetting using the class could cause an incorrect "you can pick an $item from the map" message to be display when asset_groups were being used. This was happening when the unselect event was firing after the category change event and then updating the new message using the message from the unselected layer. Fixes mysociety/fixmystreet-commercial#1888
* Add contact handling to export-import-data scriptDave Arter2020-05-12-1/+46
| | | | For https://github.com/mysociety/fixmystreet-commercial/issues/1856
* Version 3.0.1.Matthew Somerville2020-05-06-1/+1
|
* [BANES] Add script to close redundant reportsChris Mytton2020-05-06-0/+69
| | | | | | | | | B&NES have sent us a spreadsheet with a list of reports along with their IDs that they want marking as "No further action" along with a specific update. This script takes a comma-separated list of report IDs and closes those reports, leaving the appropriate comment text.
* 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.