aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* Update user object before attempting sign-in.v2.3.5Matthew Somerville2018-09-06-1/+2
| | | | | This prevents leaking of user account phone number on a failed login attempt.
* Fix issue displaying anonymous account email.Matthew Somerville2018-06-07-5/+10
|
* Don’t delete email contacts on devolved bodies.Matthew Somerville2018-06-06-21/+8
| | | | | If we assume that any body with can_be_devolved set is probably a mix of Open311/email, we can ignore any email address contacts for such a body.
* error on bad update ids passed to contact formStruan Donald2018-06-05-3/+11
| | | | | Return an error if an id for either a hidden update or one not associated with the problem id is passed to the contact form.
* Merge branch 'issues/commercial/1037-bromley-wording'Matthew Somerville2018-06-04-0/+4
|\
| * Make sure site_name/signature consistent in emailsMatthew Somerville2018-06-04-0/+2
| |
| * [Bromley] Set default show name to zero.Matthew Somerville2018-06-04-0/+2
| |
* | For duplicate, make sure update will be included.Matthew Somerville2018-06-04-1/+1
| | | | | | | | | | It was checking update text was present, but not whether the update would be included.
* | [Bromley] Include asset ID in title if given.Matthew Somerville2018-06-04-1/+9
| |
* | [Bromley] Add asset/PROW ID meta to attributes.Matthew Somerville2018-06-04-0/+19
| |
* | [Bromley] extra asset layersStruan Donald2018-06-04-1/+2
| | | | | | | | | | Adds street lights, park bins, trees, rights of way, and TfL red route asset layers.
* | [Open311] Factor cobrand overrides to functions.Matthew Somerville2018-06-04-14/+28
|/ | | | [Stevenage] Make sure Other included, like East Herts.
* Fallback to ID ordering on dashboard export.Matthew Somerville2018-05-31-1/+1
|
* [BANES] Add extra columns to dashboard CSV export; behind new permissionDave Arter2018-05-31-0/+47
|
* Call cobrand hook to add extra CSV columns on dashboard exportDave Arter2018-05-30-0/+1
|
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-23/+255
|\
| * [Open311] Cope with undefined names.Matthew Somerville2018-05-23-2/+4
| |
| * Add admin tickbox to close report to updates.Matthew Somerville2018-05-23-0/+6
| |
| * Add ability to close updates on reports.Matthew Somerville2018-05-23-0/+25
| | | | | | | | | | 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
| |
| * Update last_active on login/logout/session expiry.Matthew Somerville2018-05-23-0/+9
| |
| * Refactor out some session functions.Matthew Somerville2018-05-23-1/+20
| |
| * Factor anonymize function to User model.Matthew Somerville2018-05-23-14/+20
| |
| * Add created and last_active columns to user.Matthew Somerville2018-05-23-6/+20
| |
| * [FixaMinGata] Add to CronFns list.Matthew Somerville2018-05-23-0/+1
| | | | | | | | This is so e.g. inactive accounts script will use the cobranded emails.
* | [Buckinghamshire] Update email address.Matthew Somerville2018-05-24-1/+1
| |
* | [Zurich] Update to new map server.Matthew Somerville2018-05-23-6/+6
| |
* | Merge branch 'quote-the-template-nevermore'Matthew Somerville2018-05-23-8/+5
|\ \
| * | Escape data attributes in template.Matthew Somerville2018-05-23-8/+5
| |/ | | | | | | | | | | This fixes a bug whereby a double quote in an item would not be JSON-escaped due to being HTML-escaped first, meaning it would not parse as JSON on the client.
* / Use default sender for report sent email.Matthew Somerville2018-05-23-1/+1
|/
* Move default problem state to cobrand function.Matthew Somerville2018-05-15-2/+5
|
* [Zurich] Use correct column for ‘newest’ sorting.Matthew Somerville2018-05-15-0/+1
|
* [Buckinghamshire] Use tilma.mysociety.org for WFS instead of staging tilmaDave Arter2018-05-14-1/+1
|
* Add UI for selecting multiple wards from /reports/ body pageDave Arter2018-05-14-0/+11
| | | | Fixes mysociety/fixmystreetforcouncils#231
* Make sure closest address stringified in extra.Matthew Somerville2018-05-14-3/+3
| | | | | 22f0fed0b made the closest address an object, and objects can’t be directly stored in the extra column.
* Cobrand hook for showing all states in filter.Matthew Somerville2018-05-09-3/+3
|
* ajax endpoint to return closest address.Struan Donald2018-05-09-39/+85
| | | | | | | | /ajax/closest will return ajax with details of the closest address to the lat/lon passed in from the Bing geocoder. Tidy up find_closest() to use overloaded string rather than passing in whether you want a string or not.
* Allow cobrand override of admin reports search.Struan Donald2018-05-09-4/+5
| | | | This is to enable custom reporting for cobrands on the reports page.
* [KiitC] Add to CronFns list.Matthew Somerville2018-05-09-0/+1
| | | | | This is so update-all-reports table generation can use the cobrand's categorisation function.
* Add help text metadata facility to categories.Matthew Somerville2018-05-08-3/+3
| | | | This is shown when reporting and in map list filters.
* Remove needless category mappings.Matthew Somerville2018-05-08-13/+11
| | | | | Both filter categories and new report category lists went through mappings to different data structures, which doesn't seem to be needed.
* [BANES] Set admin_user_domain on cobrand to allow user editingDave Arter2018-05-03-0/+2
|
* Merge branch 'collideoscope-anew'Matthew Somerville2018-05-02-3/+15
|\
| * Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-3/+15
| | | | | | | | | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* | [fixmystreet.com] ISO dates in summary CSV export.Matthew Somerville2018-05-02-2/+2
| |
* | Merge branch '2075-response-template-triggering-no-blank'Matthew Somerville2018-04-27-2/+6
|\ \
| * | [Open311] Hide fetched update if no data to show.Matthew Somerville2018-04-27-2/+6
| | | | | | | | | | | | If no text, photo, or state change, hide the update from display.
* | | Don’t strip whitespace from user passwords during registrationDave Arter2018-04-27-3/+3
|/ / | | | | | | | | | | | | If a new user registers during the report/update process and their password starts or ends with whitespace or has consecutive whitespace chars then those would be stripped and the entered password wouldn’t work for subsequent logins.
* | [Buckinghamshire] Improve the site_code lookup to fetch nearest assetDave Arter2018-04-26-3/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous approach of requesting a small bounding box from the WFS server and using the first asset, if any, wasn’t sufficiently tolerant of reports that were made more than 5M away from a road, of which there were many. The problem with extending the bounding box used to fetch assets from the server is that the order of the returned assets didn’t have any bearing on their proximity to the centre of the bounding box (i.e., the location of the report). As an alternative approach this commit changes the method to instead fetch all assets within a much wider bounding box surrounding the report and iterates across the returned features in order to find the closest point and uses the site_code value from that feature.