aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
* [UK] send reports on highways agency roads to highways agencyStruan Donald2018-11-19-0/+13
| | | | | | | Includes an option to send to the council instead for e.g. reports on underpasses or bridges. Fixes #736
* Mark moderation_original_data extra as RABXColumn.Matthew Somerville2018-11-19-3/+5
|
* Store more original stuff on moderation.Matthew Somerville2018-11-16-1/+14
|
* Add option to symlink full size photos.Matthew Somerville2018-11-14-6/+9
|
* add report_mark_private permissionStruan Donald2018-11-12-3/+166
| | | | | | | | Allows user's to see the inspector panel to mark reports as Private, and also to view those non-public reports. Useful for call centre staff who want to record private reports but don't need to other permissions. Fixes mysociety/fixmystreet-commercial#1213
* Simplify /auth sign in page.Matthew Somerville2018-11-09-32/+15
|
* Remove unnecessary logins in report_updates.tMatthew Somerville2018-11-09-9/+0
|
* Allow moderation to edit category.Matthew Somerville2018-11-07-0/+12
|
* Merge branch 'moderate-allow-extra-edits'Matthew Somerville2018-10-30-0/+40
|\
| * Allow moderation to edit extra fields/location.Matthew Somerville2018-10-26-0/+40
| | | | | | | | If a cobrand provides those fields.
* | Don’t send questionnaires for closed reports.Dave Arter2018-10-26-0/+20
|/ | | | Fixes mysociety/fixmystreet-freshdesk#24.
* use submitted phone number and email in login formStruan Donald2018-10-23-0/+7
| | | | | | do not use details directly from user object because in the slim chance that the user has phone and email verified and there is a failed email login we display the phone number from the database.
* Allow moderation to potentially change photos.Matthew Somerville2018-10-22-39/+27
|
* Use Chains in /report.Matthew Somerville2018-10-22-1/+1
|
* add alert editing to user edit page in adminStruan Donald2018-10-19-0/+58
| | | | disable, enable and delete for user alerts on user_edit page
* allow cobrands to restrict /contact to abuse reportsStruan Donald2018-10-18-0/+28
| | | | | Add abuse_reports_only cobrand method that prevents the contact form being used unless it's an abuse report.
* Update areas when moving report pinDave Arter2018-10-17-5/+18
| | | | | | | | The change in report_inspect.t from WODC to Oxford City was necessary because moving reports to a location not in Mock::MapIt was resulting in an empties bodies_str in the "test category/body changes" test. Fixes #2181.
* display alert count on admin report pageStruan Donald2018-10-17-0/+26
| | | | | | | Add a count of currently active alerts on new updates for a report to the admin page. Fixes #669
* allow map zoom constants to be overriddenStruan Donald2018-10-15-0/+31
| | | | | call ZOOM_LEVELS and MIN_ZOOM_LEVELS using self so that we can override them in a subclass.
* Merge branch 'body-hashref-working-url'Matthew Somerville2018-10-10-6/+30
|\
| * Have body.url work in hashref lookup.Matthew Somerville2018-10-10-3/+14
| | | | | | | | | | | | | | 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.
| * Add a test for duration_string.Matthew Somerville2018-10-10-4/+17
| |
* | Add cobrand hook for dashboard viewing permission.Matthew Somerville2018-10-10-0/+32
| | | | | | | | | | This allows a cobrand to e.g. as the test does, allow public access to dashboard CSV export for a body, but not otherwise.
* | Tweak dashboard test for less output.Matthew Somerville2018-10-10-8/+5
|/
* Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-1/+1
|
* Merge branch 'dashboard-update-csv-export'Matthew Somerville2018-10-05-2/+34
|\
| * Dashboard update CSV export.Matthew Somerville2018-10-03-1/+31
| |
| * Add two fields to dashboard CSV export.Matthew Somerville2018-10-03-1/+3
| |
* | Deal with a variety of low-level test warnings.Matthew Somerville2018-10-04-1/+3
|/ | | | | | | | | | * Stop red warning being output by S3 bucket creation failure test * Make sure 'num_old_reports' is always a number on /around pages * Stop 'category_extra' being generated when unnecessary * Prevent warning printed in getservicerequestupdates.t * Prevent info lines from being output in develop.t * Remove line of #s in root.t * And an ID diag in zurich.t
* [UK] Fix ward pages containing ampersands.Matthew Somerville2018-10-03-7/+8
| | | | | Map ward names on their short names, so any processing applies equally to URL and names returned by MapIt.
* Factor out photo storage into PhotoStorage::FileSystem backendDave Arter2018-09-28-2/+8
|
* Fix failing inspector tool testsStruan Donald2018-09-28-0/+25
| | | | | Adds a mocked Oxfordshire cobrand permissions method that adds back in the permissions explicitly removed there.
* [Oxfordshire] remove access to inspector toolStruan Donald2018-09-28-0/+27
|
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-0/+14
| | | | | | 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).
* Don't lose from_body if edited by non-superuser.Matthew Somerville2018-09-20-0/+10
| | | | | If an admin with the user_edit permission but not user_assign_body edited a user with from_body set, the from_body field was lost.
* Add cobrand hook for disallowing updates.Dave Arter2018-09-13-0/+27
| | | | | Provides a template override for cobrands to show if updates aren't allowed on the problem.
* allow web based use of report importStruan Donald2018-09-13-1/+16
| | | | | | | | if a web parameter is passed to /import then display the email confirmation sent page rather than a SUCCESS message. Enables this page to be used for creating partial reports from a web page. For mysociety/collideoscope#17
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-0/+25
|
* Merge branch 'issues/collideoscope/30-user-moderation'Matthew Somerville2018-08-29-10/+10
|\
| * Refactor together similar moderate functions.Matthew Somerville2018-08-28-10/+10
| |
* | Merge branch 'dev-confirmation-pages'Matthew Somerville2018-08-29-8/+37
|\ \
| * | Move all test endpoints under /_dev.Zarino Zappia2018-08-29-8/+37
| |/
* | Use site name in contact email subject line.Matthew Somerville2018-08-28-1/+1
| |
* | Remove need for category_extras ajax call.Matthew Somerville2018-08-28-20/+28
|/ | | | | | Add by_category output to the /report/new/ajax call, containing all the data that /report/new/category_extras returns for one category. Then alter the JS to use that data immediately when needed.
* Include user agent in contact form emails.Matthew Somerville2018-08-21-1/+1
|
* allow front end to not send to specific bodyStruan Donald2018-08-06-0/+7
| | | | | | | | add a do_not_send parameter to reports which allows the front end to specify a comma separated list of bodies that reports should not be sent to even if there is a valid contact match. This enables asset layers to override backend body processing, e.g. if a body only accepts reports that are on a road this allows the front end to specify that.
* Allow asset layer display to be body dependent.Struan Donald2018-08-03-20/+129
| | | | | | | | | | | Return a list of associated bodies on around/new pages and in category ajax calls, and use that when deciding whether to show/hide layers. If the layer has no body information, then we show it as before, maybe based on category selected; if it does, it is only shown if the layer body matches the bodies for the point. As part of this create a new VectorAsset class to handle all the visibility changes for asset layers as it makes it a bit tidier.
* Allow questionnaire pages to be revisited within 2 minutesDave Arter2018-07-11-2/+9
| | | | | | | | Users who double click links were seeing an error when visiting the questionnaire page. This change gives a grace period of two minutes for revisiting the questionnaire page. Fixes #2123.
* [fixmystreet.com] Default to open reports only.Matthew Somerville2018-07-03-1/+1
|
* Only display reports from last 6 months on around.Struan Donald2018-07-03-2/+72
| | | | | | | 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.