aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
...
| * 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.
* Add pagination to around page.Matthew Somerville2017-11-06-3/+6
|
* Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-7/+2
| | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
* update-all-reports operate per body optionally.Matthew Somerville2017-10-20-2/+3
|
* log all state changes in admin as commentsStruan Donald2017-10-16-6/+17
| | | | | | | | | | | | Create a comment on a problem when the admin is used to change the state of the problem. If only the state is changed then create a comment with blank text. If the category and state are changing then include details of the category change in the comment. Not all the state changes are displayed at the template level by default. Fixes #1846
* generate update text in alerts if problem state has changedStruan Donald2017-10-05-9/+8
|
* Accept +1 geographic numbers as possibly mobile.Matthew Somerville2017-10-05-1/+1
| | | | | We have no way of knowing whether a +1 geographic number is fixed line or mobile, so accept them all as potentially mobile.
* Allow verify/change/add email/phone in profile.Matthew Somerville2017-09-30-0/+7
| | | | | | This expands the 'change email' functionality to work with phone number also, allow addition of missing details, and verifying of unverified details.
* Add ability to confirm reports/updates via text.Matthew Somerville2017-09-30-5/+14
|
* Update admin interface for 'phone' users.Matthew Somerville2017-09-30-0/+13
| | | | | | | This includes search/flagging users, editing user on the report and update edit pages, and user adding/editing itself. Add some more tests for user adding/editing.
* Adapt things that assume email will be present.Matthew Somerville2017-09-30-1/+10
| | | | | | This includes stopping some emails being sent (moderation, alert, questionnaire), dealing with Open311/email report sending, and tokenised_url.
* Add 'verified' database columns for email/phone.Matthew Somerville2017-09-30-6/+49
| | | | | These are so we can state whether a user's email address or phone number have been verified by confirmation email/text.
* show nearest address for report in inspector panelStruan Donald2017-09-28-0/+9
| | | | | | | If we've stored the nearest address then display that at the top of the inspector panel. Fixes mysociety/fixmystreetforcouncils#234