aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Only show access tokens once, and store hashed.Matthew Somerville2020-06-30-3/+4
|
* Merge branch 'issues/commercial/1906-he-anon-all'Matthew Somerville2020-06-10-19/+14
|\
| * [Highways England] Anonymize all names on cobrand.Matthew Somerville2020-06-09-0/+5
| |
| * [Open311] Return reports in all closed states.Matthew Somerville2020-06-09-1/+1
| |
| * [Open311] Use indexed way of searching by body.Matthew Somerville2020-06-09-18/+8
| |
* | Merge branch 'recaptcha'Matthew Somerville2020-06-09-0/+3
|\ \
| * | [fixmystreet.com] Add option for recaptcha.Matthew Somerville2020-06-04-0/+3
| | | | | | | | | | | | | | | We are getting spam submissions of e.g. alert subscribe form, which causes people to get a confirmation email.
* | | Merge branch 'alert-active-deletion'Matthew Somerville2020-06-09-0/+7
|\ \ \ | |_|/ |/| |
| * | Store staff user when staff make anonymous update.Matthew Somerville2020-06-03-0/+7
| |/ | | | | | | Match the identical code for anonymous reports.
* / Add Open Location Codes support to search box.M Somerville2020-06-04-0/+25
|/
* Make sure category shown in all its groups.Matthew Somerville2020-05-26-5/+9
| | | | | | | | When compiling the reporting category dropdown, only one instance of each value was used. But if a value appears twice, from two different bodies, in different groups, it would then not appear in all the groups it would be expected to. Make sure we update the list of groups of the category if we come across another with the same value.
* Consistent use of Contact groups.Matthew Somerville2020-05-26-13/+18
|
* admin interface for per category anonymous reportingStruan Donald2020-05-12-1/+1
| | | | | | | | Add an interface to enable a category to accept anonymous reports, plus the code to handle permitting this. It's only available on single body cobrand sites in the default configuration.
* display user detail for contributed_by in report_editStruan Donald2020-05-12-0/+20
| | | | Include name, email and body rather than just user id.
* Merge branch 'tfl-category-restrictions'Matthew Somerville2020-05-12-20/+63
|\
| * Extend assigned_*_only to report lists.Matthew Somerville2020-05-08-3/+27
| | | | | | | | | | Shortlist buttons and extended print information will not appear where not allowed.
| * Add assigned_(users|categories)_only functionalityMatthew Somerville2020-05-08-1/+24
| | | | | | | | | | | | | | | | Users with assigned_categories_only will only see staff features on a report page in their assigned categories. Users will only see staff features on a report page in a category with assigned_users_only if it is in their assigned categories.
| * Refactor report page permissions.Matthew Somerville2020-05-07-16/+12
| | | | | | | | | | Look up user's permissions once at the start, and use that throughout the report page templates.
* | Disable rename on unprotected Open311 categories.Matthew Somerville2020-05-11-3/+7
|/ | | | | | If you rename an Open311 category when it is not protected, it will only get reinstated/deleted by the Open311 populate script shortly after, and can cause issues due to the problem category renaming that occurs.
* Fix dashboard report CSV export.Matthew Somerville2020-05-07-2/+3
| | | | | | The change to join in e16054150 did not include a collapse that the previous prefetch was doing, so multiple rows per result were being returned.
* Merge branch 'category-group-in-csv'Matthew Somerville2020-05-07-5/+24
|\
| * Include group in CSV export if enabled.Matthew Somerville2020-05-07-5/+24
| |
* | Add way to disallow report reopening in a categoryMatthew Somerville2020-05-07-1/+1
|/ | | | | Add a tickbox to the category admin, and do not allow reopening on reports made in the selected categories.
* Add ability to disallow updates in a category.Matthew Somerville2020-05-06-9/+6
| | | | | Add a tickbox to the category admin, and do not allow updates on reports made in those selected categories.
* Move per-row Contact lookup to the database.Matthew Somerville2020-05-06-22/+56
| | | | | | | | | | | On admin report lists, and in front-end lists when an inspector, each row was querying the database for `category_display`. We create a new relationship for this query, and join/prefetch it wherever we request this data. Include staff joins on /around page, copying what happens on /reports to prevent more lookups there too. Also add some joins for user email in admin report list.
* Allow template to be an initial update on reports.Matthew Somerville2020-05-04-5/+43
|
* Merge branch 'server-side-cursor-dashboard-export'Matthew Somerville2020-04-29-4/+9
|\
| * Only request needed join data in places.Matthew Somerville2020-04-28-4/+7
| | | | | | | | | | The export flow and the admin search request more data from the database than they need, which slows it down.
| * Use server cursors on dashboard export.Matthew Somerville2020-04-28-0/+2
| |
* | Error page when submitting /import with web param.Matthew Somerville2020-04-28-8/+13
|/ | | | | | If the web param is used, show an error web page rather than the normal plain text output. Also do the normal remember/show uploaded photos feature, and hide the inputs better if unneeded.
*-. Merge branches '2961-disable-private-tickbox', ↵Matthew Somerville2020-04-28-43/+54
|\ \ | | | | | | | | | '2962-pin-move-category-group' and 'move-admin-index-stats-to-stats-page'
| | * Move stats from main admin index to stats index.Matthew Somerville2020-04-24-43/+54
| |/ | | | | | | | | These stats can take a while to generate, and we don't want to slow down people mostly coming to the admin index to do something else.
* / Add contact flag to protect category/group names from Open311 changesDave Arter2020-04-28-0/+5
|/ | | | | | | Adds a new tickbox to the contact editing form that protects the category and group names from being changed by Open311. For mysociety/fixmystreet-commercial#1776
* [Highways England] Do road-position server-side.Matthew Somerville2020-03-31-2/+1
| | | | | Restrict cobrand to HE categories. Want to do it by body, not category, because otherwise there's a "missing" council body.
* Match body construction on Around with New setup.Matthew Somerville2020-03-31-0/+2
| | | | | | | | | | | | On an around page on the HE cobrand, both bodies (HE and council) are listed and so when you clicked the map (not on a HE road) the not-HE code did not fire because it wasn't the only body present. But New.pm calls only return the HE body because they call munge_report_new_bodies. So it worked when you picked category/ moved pin. Around should call the munge function too so bodies is set up same as on New.pm. We need to always use the cobrand package, regardless of if it is a valid cobrand or not (for e.g. Bromley/Hounslow tests).
* Have update controller treat name more like reporting.Matthew Somerville2020-03-31-4/+5
|
* Add option of anonymous updating.Matthew Somerville2020-03-31-0/+28
|
* [Admin] Access staff-only categories in admin.Matthew Somerville2020-03-19-1/+1
|
* A number of warnfixes in tests.Matthew Somerville2020-03-09-2/+2
|
* order unsent reports in admin summary by confirmedStruan Donald2020-03-09-0/+3
| | | | | Make it a bit easier to see if any reports have been sitting unsent for some time
* Merge branch 'check-filter_category-on-new'Matthew Somerville2020-02-28-0/+2
|\
| * Also check filter_category for category choice.Matthew Somerville2020-02-26-0/+2
| | | | | | | | | | | | | | If you submit the non-JS image map from an around page with a particular category selected, that is sent to the server in filter_category and should be checked to see if we can pre-fill the category dropdown on new report.
* | Merge branch 'admin-only-categories'Matthew Somerville2020-02-27-5/+1
|\ \
| * | Add a new "staff" contact state.Matthew Somerville2020-02-26-5/+1
| |/ | | | | | | | | This state will appear when reporting if you are logged in as a staff member of the relevant body, but otherwise not appear on the site.
* | Use ManifestTheme theme_colour for front page theme-color meta tagDave Arter2020-02-26-33/+43
| |
* | Cache available icons for front pageDave Arter2020-02-26-21/+38
| | | | | | | | This saves hammering the FS for every front page request
* | Add manifest icon management to admin formsDave Arter2020-02-26-2/+19
| |
* | Add admin UI for configuring manifest themeDave Arter2020-02-26-0/+80
| |
* | Use cobrand manifest icons as iOS icons, if presentDave Arter2020-02-26-18/+31
| |
* | Optional logging of unsuccessful location searchesZarino Zappia2020-02-26-0/+20
|/ | | | | | | | | If a SQLite file exists at `../data/analytics.sqlite` with a table named `location_searches_with_no_results`, then a row will be created for each /around search that returns no results. Could come in useful for anybody running an instance and looking to better understand how well their geocoder is performing.