aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* 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.
* [TfL] Restrict all reports areas to London.Matthew Somerville2020-02-24-1/+3
|
* [TfL] Allow bus stop reports outside London.Matthew Somerville2020-02-24-1/+3
| | | | | | | | | | | | | After this change, you can safely add the TfL body to other councils (namely the ones surrounding London that include TfL bus stops); clicking in those councils on other cobrands will have no change, as the TfL body will be fully ignored on a non-London council, but on the TfL cobrand it will allow it for e.g. the selection of bus stops outside London. It removes the body rather than just all its categories to prevent a "We do not have details of the other body covering this area" message appearing.
* Remove appcache (breaking showing reports from localStorage cache).Matthew Somerville2020-02-14-33/+1
|
* Initial service worker.Matthew Somerville2020-02-14-0/+9
| | | | | | | | | | | | This basic service worker behaves identically to the existing appcache - some static scripts and CSS are cached, any HTML offline instead returns a static HTML page that knows how to show data on stored problems out of localStorage (stored there when /my/planned was visited online). Inspect form submissions will be captured and can be synced back when online. Once feature parity is established, we will then remove appcache, switch from using localStorage to the cache API, and hopefully move all offline support into the service worker.
* A basic web manifest starter.Matthew Somerville2020-02-14-2/+61
| | | | | Reads information from a theme object if present, and icons from a theme directory, with fallbacks.
* Merge branch 'allow-anon-on-some-categories'Matthew Somerville2020-02-14-1/+3
|\
| * Allow anonymous reporting on per-category basis.Matthew Somerville2020-02-13-1/+3
| |
* | Link in other-reported email shows private report.Matthew Somerville2020-02-13-4/+11
|/ | | | | Use a token that does not log the user in, but lets the report be shown, even if it's a private report. Allow old tokens of that type to work.
* [Zürich] Fix crash on certain /report/ajax/<id> URLsDave Arter2020-02-10-1/+2
| | | | | | | | | | | | Attempting to load the /report/ajax/<id> URL for a problem that had a public response and wasn't in the ‘external’ state was causing a crash because the call to FixMyStreet::App::View::Web::add_links in updates_as_hashref was returning a FixMyStreet::Template::SafeString that the JSON module didn't know how to serialise. This commit adds a TO_JSON method to SafeString, and ensures the output of /report/ajax is JSON-encoded with convert_blessed turned on so the TO_JSON method is called.
* Merge branch 'admin-user-logged-preference'Matthew Somerville2020-01-31-2/+2
|\
| * Default logging to logged in user.Matthew Somerville2020-01-31-2/+2
| | | | | | | | | | | | | | | | | | Historically, the FixMyStreet admin was accessed via HTTP Basic Auth and a secure proxy, so the auth user was used for logging purposes. Nowadays all admin use is by FixMyStreet user, and any Basic Auth is used for the purpose of hiding staging sites from bots. This configuration means that on those staging sites, all admin is logged by the one staging user, not the actual user, so let's swap that round.
* | Display inline map for duplicate suggestions on mobileDave Arter2020-01-31-2/+8
|/ | | | For #2668.
* Enable category groups on map filter dropdown.Dave Arter2020-01-30-1/+4
| | | | Includes an updated version of jquery-multi-select.
* Merge branch 'bodies-list-cats-by-group'Matthew Somerville2020-01-29-0/+2
|\
| * List categories in body admin by group.Matthew Somerville2020-01-28-0/+2
| |
* | Allow multiple question to disable the new report formChris Mytton2020-01-28-11/+16
|/ | | | | | | | | | | | | This changes the existing logic to account for the fact that multiple questions might have the disable form checkbox ticked for one of their options. At the moment this just displays one of the messages at a time, with the first one taking priority. So if you have a "Is this an emergency" question and a "Is this on private land" question which both disable the form, and the user has selected "Yes" to both, then only the message for the first question is displayed. This can potentially be improved in the future, but seemed out of scope for this change.
* Add per report OpenGraph imagesGraeme Porteous2020-01-27-1/+1
| | | | | | | | | | | | | Includes a bit of refactoring of PhotoSet::get_image_data to make it easier to call subsequent methods on the photo object. We then do this to get the width and height. Also adds width/height attributes to FixMyStreet::ImageMagick Attributes are updated every time the image is transformed and before the as_blob data, which also undefs the image, is returned so it always present for subsequent calls. Fixes #2394.
* Merge branch 'same-cat-different-groups'Matthew Somerville2020-01-21-0/+2
|\
| * Filter contacts before constructing options.Matthew Somerville2020-01-21-0/+2
| | | | | | | | | | | | | | If we wait until after to filter the contacts and the constructed options, then we can end up in the situation where e.g. we've filtered out all the TfL contacts but the category option is still the TfL one (with its associated group).
* | Fix possible heatmap viewing when not logged in.Matthew Somerville2020-01-21-8/+15
|/
* Skip admin contact email validation check if address hasn’t changedDave Arter2020-01-20-1/+2
| | | | | | | | | | | | | Some contacts (e.g. TfL) don’t have a valid email address but aren’t Open311 categories - the email destination is managed via the borough_email_addresses feature. This prevents any changes to the contact being made via the admin due to the email validation error message. This commit updates the logic to only check that the email address is valid if it’s been changed from the existing value (which may be blank if a it’s a new contact). Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/108
* Merge branch 'dashboard-optgroup'Matthew Somerville2020-01-17-0/+1
|\
| * Include category groups in dashboard filter.Matthew Somerville2020-01-16-0/+1
| |
* | [TfL] Include non-open reports in dupe suggestionsMatthew Somerville2020-01-16-2/+4
|/
* [TfL] Hide ‘please ring’ categories in admin.Matthew Somerville2020-01-10-0/+1
| | | | | These categories display a ‘please ring’ message and so have nowhere to be resent if selected.
* Scrub admin description fields.Matthew Somerville2020-01-09-2/+5
|