aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
* Deal with possible multiple send_method_useds.Matthew Somerville2018-11-06-1/+7
|
* Add configuration option to show staff user name as well as body nameJoe Siltberg2018-11-05-1/+3
| | | | | | | This adds a cobrand configuration option for always showing the body user's name in updates. Fixes #1860
* Have body.url work in hashref lookup.Matthew Somerville2018-10-10-3/+18
| | | | | | | body.url could still be in use by old-school /reports table index pages (though they were dropped in 2.1, so a cobrand would have to have overridden it since then) and the update to speed up body lists in #2248 broke it. This puts it back in minimal form.
* Merge branch 'send-reopen-comment-option'Matthew Somerville2018-10-09-5/+25
|\
| * Remove hard-coded body name in Problem.Matthew Somerville2018-10-09-4/+4
| | | | | | | | We can now use the new open311_post_update_skip function.
| * Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-1/+21
| |
* | front end category testsStruan Donald2018-10-09-3/+5
|/ | | | Check selecting a category and selecting a sub category
* Dashboard update CSV export.Matthew Somerville2018-10-03-0/+23
|
* Some minor function refactoring.Matthew Somerville2018-10-03-14/+12
|
* Adapt fixture script to be non-random on request.Struan Donald2018-10-02-2/+2
| | | | | The existing fixture script generates random results so is no use for front end testing.
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-5/+74
| | | | | | Use a HashRefInflator wherever all_sorted is used, with consequential changes to deal with it now not being an object (e.g. add some with_* functions for manual fetching of extra data).
* 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
| |