aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-0/+11
|
* Prevent scan of all problems on /_dev pages.Matthew Somerville2018-09-12-2/+2
|
* Fix reference issue in can_moderate.Matthew Somerville2018-09-06-2/+2
| | | | Arguments in TT functions are passed as a hashref.
* Allow cobrand to add extra ability to moderate.Matthew Somerville2018-08-29-2/+16
|
* Move moderation check to own function, tidy up.Matthew Somerville2018-08-28-2/+11
|
* [Lincolnshire] Show external ID on report pagesDave Arter2018-08-17-1/+1
|
* Fix inspector dragging of pins.Matthew Somerville2018-08-09-0/+1
|
* Only display reports from last 6 months on around.Struan Donald2018-07-03-1/+7
| | | | | | | Add a checkbox to show older reports, plus if we get to the end of the new reports then instead of a Next button show a "show older" button that will reload the current page but with older reports also loaded. Wire it all up into the pushState code as well.
* Use CSV escaping for categories in URLs.Matthew Somerville2018-06-21-0/+12
| | | | | Categories could contain commas, so splitting on comma is not good enough. Let’s escape the fields as if it’s a line in CSV. Fixes #2166.
* Use correct created column in problem timeline.Matthew Somerville2018-06-13-3/+3
| | | | The User model now also has a created column.
* include automated field when editing contactsStruan Donald2018-06-11-3/+11
| | | | | | | | Display fields that are automatically filled in the contact editing form otherwise the data is lost. Also include the automated field in the form. Fixes #2136
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-7/+66
|\
| * Update last_active on login/logout/session expiry.Matthew Somerville2018-05-23-0/+7
| |
| * Refactor out some session functions.Matthew Somerville2018-05-23-1/+20
| |
| * Factor anonymize function to User model.Matthew Somerville2018-05-23-0/+19
| |
| * Add created and last_active columns to user.Matthew Somerville2018-05-23-6/+20
| |
* | 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.
* Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-1/+7
| | | | | | | 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.
* add extra column to body tableStruan Donald2018-04-11-3/+9
| | | | Adds and extra column for bodies and the associated Extra role.
* Check recent reports for any hidden since cached.Matthew Somerville2018-04-06-22/+13
| | | | | Also stop caching lat/lon specific alert photo lists, and improve Memcached code.
* Make sure fixture clears out cached photo files.Matthew Somerville2018-04-04-0/+2
|
* add convert_latlong option to body tableStruan Donald2018-03-29-2/+4
| | | | | For controlling if reports pulled in via Open311 should have the position converted from Easting/Northing to lat/long.
* Improve wording/grammar when report is sent to more than two bodiesDave Arter2018-03-29-10/+14
|
* Add ResponseTemplate.external_status_code fieldDave Arter2018-03-29-2/+4
|
* Store server_set automated, but ignore for input.Matthew Somerville2018-03-21-1/+5
| | | | | We do need to store them, so that the sending knows which fields are being requested, but we do not want them output to the client at all.
* [Zurich] Prefetch report users, cache body lookupsMatthew Somerville2018-03-19-1/+2
|
* Pass columns CSV needs into Problem->as_hashref.Matthew Somerville2018-03-19-12/+12
| | | | Then it can skip working out some things as they are not needed.
* permit blank updates to be fetched over Open311Struan Donald2018-03-15-2/+4
| | | | | Add a per body configuration option to allow Open311 updates to contain only a status change, rather than emitting a warning when this happens.
* fetch new problems over open311Struan Donald2018-03-15-2/+4
| | | | | | | | | | This enables the display of existing reports from the back end on FMS if the body is configured to do this. Reports will not be created if they are missing an id, a lat or a long, if the lat/long is outside the area covered by the body, if there is already a report with a matching id, or if we can't parse out the request time.
* [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-3/+15
| | | | | | | 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!
* [Zurich] Add fixture script.Matthew Somerville2018-03-06-0/+133
| | | | Remove old unused setup-contacts code, superceded by fixtures.
* Show non_public reports to staff on list pages.Matthew Somerville2018-02-13-6/+34
|
* Allow ‘report as another user’ to only provide a phone numberDave Arter2018-02-07-0/+4
|
* Merge branch '2fa-superuser'Matthew Somerville2018-02-07-0/+5
|\
| * Add two-factor authentication for superusers.Matthew Somerville2018-02-07-0/+5
| |
* | Upgrade Number::Phone.Matthew Somerville2018-02-05-1/+2
| | | | | | | | | | This brings in my new format_for_country function which allows for nicer display of phone numbers to people.
* | Increase bcrypt cost.Matthew Somerville2018-02-01-1/+5
|/ | | | Though when running tests, decrease it for speed.
* Merge branch '1942-admin-anonymize'Matthew Somerville2018-01-31-0/+25
|\
| * Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-0/+25
| |
* | Hide 'updates not sent' message on reports sent via Open311Dave Arter2018-01-23-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'issues/commercial/988-c6-email-address-link'Matthew Somerville2018-01-18-52/+0
|\ \ | |/ |/|
| * [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-52/+0
| | | | | | | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* | Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-6/+0
|/
* Add some example fixture images.Matthew Somerville2018-01-11-1/+2
|
* Add some new Body model helper methods.Matthew Somerville2018-01-03-5/+75
| | | | And use the existing ones more.
* [fixmystreet.com] Council average response time.Struan Donald2017-12-15-0/+29
|
* Merge branch 'issues/forcouncils/261-rdi-check'Matthew Somerville2017-12-13-0/+11
|\
| * Store all successful send methods.Matthew Somerville2017-12-13-0/+11
| |
* | [fixmystreet.com] Improve fixture descriptions.Matthew Somerville2017-12-07-1/+1
|/
* Fix issues with Problem->as_hashref.Matthew Somerville2017-11-30-2/+8
| | | | | Include actual times, not just human-readable ones, and make sure state is translated correctly.