aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App
Commit message (Collapse)AuthorAgeLines
...
* Sort user updates in reverse date order.Matthew Somerville2018-11-19-1/+1
|
* Store more original stuff on moderation.Matthew Somerville2018-11-16-9/+39
|
* Enforce maximum photo size on upload.Matthew Somerville2018-11-14-0/+1
| | | | (This might well have been done client-side by Dropzone.)
* Factor out ImageMagick wrapper.Matthew Somerville2018-11-14-53/+6
|
* Add option to symlink full size photos.Matthew Somerville2018-11-14-5/+24
|
* add report_mark_private permissionStruan Donald2018-11-12-9/+25
| | | | | | | | 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-6/+14
|
* Allow moderation to edit category.Matthew Somerville2018-11-07-0/+18
|
* Deal with possible multiple send_method_useds.Matthew Somerville2018-11-06-3/+3
|
* Allow moderation to edit extra fields/location.Matthew Somerville2018-10-26-3/+43
| | | | If a cobrand provides those fields.
* Don't generate local coords in CSV if unasked for.Matthew Somerville2018-10-23-1/+1
|
* use submitted phone number and email in login formStruan Donald2018-10-23-0/+10
| | | | | | 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-3/+27
|
* Use Chains in /report.Matthew Somerville2018-10-22-60/+38
|
* [Zurich] Fix call to admin_fetch_all_bodies.Matthew Somerville2018-10-22-3/+4
|
* add alert editing to user edit page in adminStruan Donald2018-10-19-4/+26
| | | | disable, enable and delete for user alerts on user_edit page
* list user's alerts on user edit page in adminStruan Donald2018-10-19-0/+26
| | | | | Include a list of alerts the user is subscribed to at the bottom of the user_edit page in the admin.
* allow cobrands to restrict /contact to abuse reportsStruan Donald2018-10-18-0/+2
| | | | | 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-0/+3
| | | | | | | | 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/+13
| | | | | | | Add a count of currently active alerts on new updates for a report to the admin page. Fixes #669
* Allow superusers access to update staff dropdowns.Matthew Somerville2018-10-11-1/+1
|
* Add cobrand hook for dashboard viewing permission.Matthew Somerville2018-10-10-1/+13
| | | | | This allows a cobrand to e.g. as the test does, allow public access to dashboard CSV export for a body, but not otherwise.
* allow cobrands to override searching by refStruan Donald2018-10-09-4/+7
| | | | Add a cobrand hook to allow searching by reference to be overridden
* Speed up dashboard CSV export.Matthew Somerville2018-10-08-0/+1
| | | | | | | Without fetching bodies_str, the update export was doing a query per update to fetch the corresponding problem. [BANES] Speed up extra columns by prefetching the relevant users.
* Merge branch 'dashboard-update-csv-export'Matthew Somerville2018-10-05-39/+87
|\
| * Dashboard update CSV export.Matthew Somerville2018-10-03-17/+52
| |
| * Rename problems_rs to objects_rs.Matthew Somerville2018-10-03-16/+19
| | | | | | | | No functional change.
| * Some minor function refactoring.Matthew Somerville2018-10-03-14/+17
| |
| * Add two fields to dashboard CSV export.Matthew Somerville2018-10-03-0/+7
| |
* | Add perl 5.26/5.28 support.Matthew Somerville2018-10-04-0/+3
| | | | | | | | | | Upgrade a couple of modules, deal with '.' not present in @INC, captures returning undef rather than '', and a test.
* | Deal with a variety of low-level test warnings.Matthew Somerville2018-10-04-1/+2
|/ | | | | | | | | | * 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-2/+3
| | | | | Map ward names on their short names, so any processing applies equally to URL and names returned by MapIt.
* Factor out photo storage backend init checksDave Arter2018-09-28-4/+3
|
* Handle failure of photo upload more gracefullyDave Arter2018-09-28-2/+8
|
* Factor out photo storage into PhotoStorage::FileSystem backendDave Arter2018-09-28-45/+20
|
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-6/+15
| | | | | | 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-5/+6
| | | | | 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/+1
| | | | | 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-0/+6
| | | | | | | | 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-1/+3
|
* Prevent scan of all problems on /_dev pages.Matthew Somerville2018-09-12-3/+3
|
* move body stats page code to own methodStruan Donald2018-09-12-8/+19
| | | | Enables this to be used in cobrand hooks for reports data
* [Zurich] use report_page_data cobrand hookStruan Donald2018-09-12-23/+0
| | | | remove hard coded report page behaviour
* hook to allow cobrand to generate reports page dataStruan Donald2018-09-12-0/+4
|
* Update user object before attempting sign-in.Matthew Somerville2018-09-06-1/+2
| | | | | This prevents leaking of user account phone number on a failed login attempt.
* Check all contacts for metadata and non-public.Matthew Somerville2018-09-06-6/+13
| | | | | | Previously it would only check the first matching entry, which could miss out on information if two bodies had the same category and only the second one looked at had metadata, or was marked as non-public.
* Include report in _dev confirm_report_sent email.Matthew Somerville2018-08-30-0/+1
|
* Do not delete other category extras on first matchMatthew Somerville2018-08-29-8/+2
|
* Merge branch 'issues/collideoscope/30-user-moderation'Matthew Somerville2018-08-29-137/+66
|\
| * Allow cobrand to add extra ability to moderate.Matthew Somerville2018-08-29-9/+8
| |