aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Fix some test warnings.Matthew Somerville2019-05-13-3/+3
|
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-4/+4
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* Fix some incorrect timezone code.Matthew Somerville2019-05-02-1/+1
| | | | | | | | | Times in the database should be stored in the application server's local timezone, by e.g. using `current_timestamp`, or by setting that timezone explicitly before storage (the database columns are all without timezone so any timezone info is silently ignored). Reports & updates fetched via Open311 and offline updates were being put into the TIME_ZONE setting if present, meaning they were stored incorrectly for future usage.
* [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-1/+4
|
* Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-10/+5
|\
| * Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-10/+5
| |
* | Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-37/+21
|/
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-9/+20
|
* Merge branch 'stream-csv-output'Matthew Somerville2019-03-05-11/+25
|\
| * Stream dashboard CSV output.Matthew Somerville2019-03-05-11/+25
| | | | | | | | | | | | Rather than compile it all into on big string for output, write the output as we go. Also output headers to encourage intermediaries to stream as well.
* | Add DateRange class.Matthew Somerville2019-03-04-28/+29
|/ | | | | This simplifies the places where a date range is used; it also makes Dashboard date parsing more flexible.
* Merge branch '2406-fix-admin-body-dropdown'Matthew Somerville2019-02-28-2/+2
|\
| * Fix admin index body dropdown redirect.Matthew Somerville2019-02-26-2/+2
| |
* | [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-10/+20
| |
* | Do not assign bodyless reports to area IDs.Matthew Somerville2019-02-28-13/+5
|/
* Internal JSON endpoint to get reports near a pointMatthew Somerville2019-02-25-4/+28
| | | | Unused right now, but will be soon, for the duplicate suggestion UI.
* Refactor nearby() to use named parameters not listMatthew Somerville2019-02-25-7/+12
|
* Merge branch 'bugfix/1957'Matthew Somerville2019-02-25-1/+1
|\
| * [FixaMinGata] Adds a cobrand hook (threshold for responsiveness top 5 list)Joe Siltberg2019-02-25-1/+1
| | | | | | | | Fixes #1957
* | Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-1082/+1165
|/
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-12/+15
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* [fixmystreet.com] Improve two-tier unresponsive.Matthew Somerville2019-02-11-20/+20
| | | | | | | Similarly to 1f69e28c, we were previously only checking the first matching entry, which led to confusing behaviour in places. Include consequential amendments for e.g. one body being unresponsive, the other not.
* Merge branch 'fix-code-starting-underscore-display'Matthew Somerville2019-02-05-3/+3
|\
| * Allow Open311 codes starting with ‘_’ to function.Matthew Somerville2019-02-04-3/+3
| | | | | | | | | | | | Template Toolkit treats keys starting with ‘_’ as private and does not expose them. It is possible for an Open311 server to return fields starting with an underscore, and we want to use those in the template.
* | Make front page cache time configurable.Matthew Somerville2019-02-04-1/+2
|/ | | | | Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-12/+25
|
* Allow searching for <email> in admin.Matthew Somerville2019-01-29-0/+9
|
* Spot moderation conflicts.Matthew Somerville2019-01-25-0/+20
| | | | | If someone tries to moderate after someone else has, re-show the form and an error.
* Stop redirecting on moderation error.Matthew Somerville2019-01-25-30/+38
| | | | This will also be used by the moderation conflict code.
* Factor out two identical loops.Matthew Somerville2019-01-21-19/+5
|
* Merge branch 'allow-state-moderation'Matthew Somerville2019-01-16-1/+36
|\
| * Allow state editing via moderation.Matthew Somerville2019-01-16-1/+36
| | | | | | | | | | If a state is passed in (on a cobrand), update problem state and add a comment to record this (as state changes are updates not moderations).
* | Include moderation history in report updates.Matthew Somerville2019-01-16-0/+18
|/ | | | | | If the user has moderating permission, or a cobrand allows the viewing of moderation history, show moderation history within the updates on a report page.
* Call confirm() during token confirmation.Matthew Somerville2019-01-14-2/+1
| | | | So state/confirmed setting in one place.
* Use pin_new_report_colour server-side too.Matthew Somerville2019-01-14-1/+1
|
* Remove any use of `my $x if $foo`.Matthew Somerville2019-01-14-1/+1
| | | | | | | | As perlsyn says, "NOTE: The behaviour of a `my`, `state`, or `our` modified with a statement modifier conditional or loop construct (for example, `my $x if ...`) is undefined. The value of the `my` variable may be `undef`, any previously assigned value, or possibly anything else."
* Delete cache photos upon photo moderation.Matthew Somerville2019-01-10-0/+1
|
* Allow override search to /report/new => /around.Matthew Somerville2019-01-10-1/+7
| | | | | | This is so you can have a search box on an around page (wrapped in a form going to /report/new) to start a new search, ignoring the lat/lon that will also be submitted.
* add private only report filterStruan Donald2019-01-04-7/+19
|
* Show all questionnaire responses lacking updates.Matthew Somerville2018-12-20-6/+26
| | | | | | Since questionnaire responses were recorded on email link click, we should have been showing those that reopened or fixed reports, not just steady-state "Still open" ones.
* cobrand hook for extra processing upon report inspectionStruan Donald2018-12-17-0/+2
| | | | | Add a hook to enable the cobrand to do some extra processing when saving a report on the inspect report screen.
* add a cobrand hook to save extra user dataStruan Donald2018-12-17-0/+4
| | | | | Enable the cobrand to save extra data when creating/editing users in the admin.
* Make sure locale path specified in JS controller.Matthew Somerville2018-12-08-1/+3
| | | | | This doesn't appear to cause any issues on Linux, but on Mac it fails to find the translation file without this. Matches the code in App.pm.
* Merge branch '642-new-report-flow-changes'Matthew Somerville2018-12-05-2/+10
|\
| * Move email input nearer password input on forms.Zarino Zappia2018-12-05-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the email input from `user_loggedout.html` closer to the password inputs in `user_loggedout_{by_email,password}.html`, because we want to emphasise the connection between your login email/username and your password, and, now that only one "Yes I have an account / No I do not have an account" fieldset is displayed at a time, there was no reason to ask for the email/username up front. This, however, now means the form includes two username inputs, so: * `Report/New.pm` and `Report/Update.pm` now pick the first non-empty username param and use that. * `user_loggedout_email.html` now expects a `name` parameter, so that we can give the two username inputs unique ids in the markup. Also: * The "optional" phone and email inputs in user_loggedout_by_email.html are printed *after* the main username input if SMS login is enabled (since one or other of them is unhidden by javascript, based on whether you entered a phone number or and email address into the "username" input, and it would look weird to have an input become unhidden *above* the input you’re currently editing).
* | Fix moderation without JavaScript.Matthew Somerville2018-12-04-0/+23
|/
* Associate moderation history with admin log.Matthew Somerville2018-11-27-27/+17
|
* Show moderation history in report/update admin.Matthew Somerville2018-11-26-2/+2
|
* Store all moderation change history in database.Matthew Somerville2018-11-26-47/+25
| | | | | Currently keeping the same front end functionality of only reverting to the original.
* Improve update display on admin report edit page.Matthew Somerville2018-11-26-1/+1
|