aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
* move area stats page problems by status calc into databaseStruan Donald2017-10-04-0/+11
| | | | | | | | | | | Doing this calculation in code turns out to be much too slow. As part of this also fix an issue where if a report changed state last month but had a further comment this month that was counted as being a state change this month. Also tweak the 'last month' start date to be midnight so the stats don't change throughout the day.
* In RSS, only escape the necessary five/ctrl chars.Matthew Somerville2017-10-02-3/+4
| | | | | | By default encode_entities uses named entities, which don't exist by default in XML. It seemed nicer to switch to only escaping the minimum rather than switching to numeric entities.
* Allow verify/change/add email/phone in profile.Matthew Somerville2017-09-30-8/+143
| | | | | | 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-71/+747
|
* Update admin interface for 'phone' users.Matthew Somerville2017-09-30-49/+129
| | | | | | | 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.
* Add ability to log in on /auth via text.Matthew Somerville2017-09-30-27/+126
| | | | A confirmation code is sent via Twilio to be entered on the site.
* Add 'verified' database columns for email/phone.Matthew Somerville2017-09-30-1/+1
| | | | | These are so we can state whether a user's email address or phone number have been verified by confirmation email/text.
* Move some auth functions to their own controllers.Matthew Somerville2017-09-30-121/+128
| | | | | | Move the social auth functions to Auth::Social, and the change email/password functions to Auth::Profile. There are no actual code changes.
* Fix test calling external service.Matthew Somerville2017-09-30-1/+5
| | | | | | This test would pass offline (as query would fail without error), and online was passing because Nominatim was presumably returning no results before today?
* show nearest address for report in inspector panelStruan Donald2017-09-28-0/+37
| | | | | | | If we've stored the nearest address then display that at the top of the inspector panel. Fixes mysociety/fixmystreetforcouncils#234
* set maximum length of report detailed_information in cobrandStruan Donald2017-09-27-28/+48
|
* limit detailed_information to 172 charactersStruan Donald2017-09-27-0/+31
| | | | | | | | RDI files have a 180 character limit for the description so limit the description to 172 to allow for the ID which is also included in this field. Fixes mysociety/fixmystreetforcouncils#228
* area stats page for staff usersStruan Donald2017-09-20-0/+211
| | | | | | | | | Admin page to show some simple summary stats for an area. If the user has been assigned to an area then they will see the stats for that area. Superusers can pick which area they want to view. For mysociety/fixmystreetforcouncils#2
* Version 2.2.Matthew Somerville2017-09-13-1/+1
| | | | | Couple of missed strings for translation, and prevent a couple of warnings in tests.
* select default response priority in inspect panelStruan Donald2017-09-13-0/+12
|
* edit and display default response priority in adminStruan Donald2017-09-13-0/+20
|
* sort body dashboard CSV export by report confirmed timeStruan Donald2017-09-07-4/+4
| | | | | And update the tests to avoid a random failure caused by inconsistent ordering.
* Simpler alerts signup page.Zarino Zappia2017-09-06-2/+4
| | | | | | Alert options on the /alert/list page are now in an order that is easier to parse, with a slightly clearer message for users in two-tier locations, and a more prominent email subscription CTA.
* Prevent race condition in root.t test.Matthew Somerville2017-09-06-1/+1
| | | | | | This test assumed /reports would load, which it wouldn't if run in parallel and the data hadn't been generated by reports.t. Test a different page instead.
* include easting/northing in dashboard CSV exportStruan Donald2017-09-04-1/+6
| | | | Fixes mysociety/fixmystreetforcouncils#221
* include ward in dashboard csv exportStruan Donald2017-09-04-0/+26
| | | | | | | Adds a Ward column to the council dashboard CSV export with the name of the ward. Fixes mysociety/fixmystreetforcouncils#220
* Merge branch 'move-report-states-to-database'Matthew Somerville2017-08-31-89/+91
|\
| * Update form asks for reopen of all closed states.Matthew Somerville2017-08-31-24/+24
| |
| * Admin interface for editing report states.Matthew Somerville2017-08-31-0/+24
| |
| * Remove hardcoded states from templates.Matthew Somerville2017-08-31-63/+41
| | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | We keep the internal states hardcoded, plus the core open (confirmed) and closed ones, but the remainder are moved to the database.
* | Add SIGNUPS_DISABLED config flagDave Arter2017-08-31-2/+91
| |
* | Add LOGIN_REQUIRED config keyDave Arter2017-08-31-0/+76
| | | | | | | | If set to 1, this restricts all pages on the site to logged-in users.
* | Merge branch 'move-report-states-to-database-part-1'Matthew Somerville2017-08-29-0/+4
|\|
| * Stop admin_reportextrafields.t info messages.Matthew Somerville2017-08-25-0/+4
| |
* | Redirect to original URL after inspectingDave Arter2017-08-24-0/+36
|/ | | | For mysociety/fixmystreetforcouncils#204
* Fix missing URLs in alert emailsDave Arter2017-08-22-1/+80
| | | | | | | | | If a staff user changed a problem’s state and an empty update was generated, it was possible for alert emails to be sent with missing URLs because the empty string in the update text was falsy and Alert.pm took the wrong path. This fixes the problem by changing the test to defined() and includes a regression test.
* Merge branch 'issues/forcouncils/201-show-all-report-updates'Matthew Somerville2017-08-17-1/+57
|\
| * show all report updates, even if no public textStruan Donald2017-08-17-1/+57
| | | | | | | | | | | | | | | | 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
* | Merge branch 'issues/forcouncils/187-all-reports-filter-by-substates'Matthew Somerville2017-08-17-0/+79
|\ \
| * | allow body users to filter on all problem categoriesStruan Donald2017-08-17-0/+79
| |/ | | | | | | | | | | Not just New/Fixed/Closed but the Investigating etc Fixes #1790
* / tests for the defect types admin interfaceStruan Donald2017-08-17-0/+193
|/
* Add site-wide extra fields for reports, and admin UI to manageDave Arter2017-08-17-0/+312
| | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743.
* Merge branch 'duplicate-reverse'Matthew Somerville2017-08-17-0/+7
|\
| * Store duplicate reverse lookups upon dupe setting.Matthew Somerville2017-08-17-0/+7
| | | | | | | | | | | | 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.
* | enable body users to add problem updates anonymouslyStruan Donald2017-08-16-0/+12
| |
* | enable body users to report problems anonymouslyStruan Donald2017-08-16-0/+17
|/ | | | | | uses the body user but flags the report as anonymous Fixes #fixmystreetforcouncils/207
* Body/category translation admin interface.Struan Donald2017-08-10-1/+192
|
* Set up translatable body name.Matthew Somerville2017-08-09-0/+19
|
* Don't put filter_category in URL if no categories.Matthew Somerville2017-08-05-1/+6
|
* Option to redirect to custom URL from Contact formZarino Zappia2017-07-28-0/+35
| | | | | | | | If a `success_url` parameter is provided along with the contact form fields, the user will be redirected to that URL upon successful form submission. We use it for the first time on the (UK) FixMyStreet Pro marketing page.
* do not replace deleted text with [...] when moderatingStruan Donald2017-07-27-6/+6
| | | | | | | | Replacing deleted text with [...] when moderating reports and comments leads to very odd looking reports when correcting minor typos so just leave the text as deleted. Fixes #1774
* Resend report if changing to category with different send_methodDave Arter2017-07-26-2/+27
| | | | | | | If a report’s category is changed to one with a different send_method to the original category, the report needs to be resent. Fixes mysociety/fixmystreetforcouncils#209
* Fix update-all-reports when database empty.Matthew Somerville2017-07-18-1/+4
|
* Merge branch 'issues/forcouncils/192-unused-categories'Matthew Somerville2017-07-14-13/+36
|\