aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
* 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
* Fix bug in cookie passthrough query parameter.Matthew Somerville2017-09-27-5/+9
| | | | | For temp URLs there was not already a query string, and so "?" needs to be used rather than "&" when appending.
* Revert using memcached cache in testing.Matthew Somerville2017-09-18-1/+4
| | | | This can fail if the tests are being run in parallel.
* Fix issues with Open/Closed translated too early.v2.2Matthew Somerville2017-09-15-3/+9
| | | | | | | | | | | | | | It was possible for _hardcoded_states to be reached with no locale selected (e.g. bin/update-all-reports), causing an error trying to translate Open/Closed. But translating those there wasn't correct, because that would then be cached and returned even if a different language was being used. Caching was ignored in testing, which did not help. We no longer translate the state names in their objects, only upon display at the point that we will know the locale. We can't simply return the translation of Open/Closed because there may be entries in the translation table as well.
* add is_default column to response_prioritiesStruan Donald2017-09-13-2/+4
|
* include ward in dashboard csv exportStruan Donald2017-09-04-0/+1
| | | | | | | Adds a Ward column to the council dashboard CSV export with the name of the ward. Fixes mysociety/fixmystreetforcouncils#220
* Superusers only have permissions available on the current cobrandDave Arter2017-09-01-0/+10
|
* Make current cobrand available on DB::SchemaDave Arter2017-09-01-0/+2
|
* Merge branch 'move-report-states-to-database'Matthew Somerville2017-08-31-85/+155
|\
| * Remove hardcoded states from templates.Matthew Somerville2017-08-31-48/+23
| | | | | | | | | | | | | | | | | | | | | | State display names are now got from the database wherever they are displayed, including admin dropdowns, list filters, and update meta statements. This also covers the open/closed/fixed 'groups'. This also fixes a bug whereby if e.g. an update has problem_state investigating, the next update has no problem_state, and the last update has investigating again, it was previously showing a state change to investigating on that third update.
| * Remove hardcoded states from Problem model.Matthew Somerville2017-08-31-39/+96
| | | | | | | | | | We keep the internal states hardcoded, plus the core open (confirmed) and closed ones, but the remainder are moved to the database.
| * Add state table to database.Matthew Somerville2017-08-29-0/+38
| |
* | Add LOGIN_REQUIRED config keyDave Arter2017-08-31-6/+12
|/ | | | If set to 1, this restricts all pages on the site to logged-in users.
* Drop council_states and $visible_states.Matthew Somerville2017-08-29-48/+4
|
* Use a schema cache to remember body lookups.Matthew Somerville2017-08-23-1/+7
|
* Cache Problem->bodies and prefetch the body areas.Matthew Somerville2017-08-18-7/+14
|
* Faster /reports for inspectors, reduce db queries.Dave Arter2017-08-18-2/+22
|
* show all report updates, even if no public textStruan Donald2017-08-17-3/+17
| | | | | | | | Create a comment entry for all updates to reports regardless of whether there is any text part. Also adds an entry to extra if a defect was raised and includes that in the update status line. Fixes mysociety/fixmystreetforcouncils#201
* Add site-wide extra fields for reports, and admin UI to manageDave Arter2017-08-17-0/+70
| | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743.
* Store duplicate reverse lookups upon dupe setting.Matthew Somerville2017-08-17-2/+13
| | | | | | This avoids the need to search the whole table to find a report's duplicates. And is easier than constructing an index or upgrading PostgreSQL.