aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result
Commit message (Collapse)AuthorAgeLines
* 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.
* | [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.
* Add some new Body model helper methods.Matthew Somerville2018-01-03-2/+3
| | | | And use the existing ones more.
* [fixmystreet.com] Council average response time.Struan Donald2017-12-15-0/+29
|
* Store all successful send methods.Matthew Somerville2017-12-13-0/+11
|
* 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.
* 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-8/+3
|
* 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/+14
| | | | | 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.
* 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
|
* Merge branch 'move-report-states-to-database'Matthew Somerville2017-08-31-85/+77
|\
| * Remove hardcoded states from templates.Matthew Somerville2017-08-31-47/+21
| | | | | | | | | | | | | | | | | | | | | | 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/+19
| | | | | | | | | | 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/+5
|
* 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-1/+11
|
* 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/+45
| | | | | | | - 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.
* Add fn to fetch bodies plus the translated names.Matthew Somerville2017-08-15-0/+15
|
* Prevent unnecessary string translation.Matthew Somerville2017-08-11-2/+2
| | | | | | Calling the function 'translate' causes gettext-extract to add the string to the .po file. Also, we no longer need an admin 'updated' message as the main form has its own success message.
* Set up translatable category columns.Matthew Somerville2017-08-10-8/+14
| | | | | | As category is used both for display and as a link between Problem and Contact tables, add `category_display` for use whenever a category is displayed.
* Set up translatable body name.Matthew Somerville2017-08-09-0/+7
|
* Add translation table.Matthew Somerville2017-08-09-0/+44
|
* Resize pin image before compositing onto static mapDave Arter2017-07-24-0/+1
| | | | | | | | A recent change doubled the size of the pin images, which meant the static maps included in report emails had the pin in the wrong place because the compositing code made assumptions about the pin size which were wrong. This commit ensures the pin image is of a known size before compositing, putting the pins back in the right place.
* Add Body::first_area_children methodDave Arter2017-07-17-0/+12
|
* Add inactive state to categories.Matthew Somerville2017-07-14-21/+17
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-8/+19
| | | | | | | | | | | | Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
* [Oxfordshire] Show problem state in marker tooltipZarino Zappia2017-06-10-2/+3
| | | | Add hook so that cobrands can change pin hover title.
* Refactor pretty state display.Matthew Somerville2017-06-10-31/+2
|