aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App
Commit message (Collapse)AuthorAgeLines
...
* | Add opt-in cobrand hook for category groupsDave Arter2017-12-06-9/+11
|/
* Merge branch 'issues/forcouncils/264-stop-csv-human-dates'Matthew Somerville2017-12-05-9/+10
|\
| * Stop using 'readable' dates in CSV export.Matthew Somerville2017-12-01-9/+9
| | | | | | | | We want machine-readable dates in a data export.
| * Fix potential update issues with CSV export.Matthew Somerville2017-11-30-1/+2
| | | | | | | | | | Only look at confirmed updates, and spot updates using mark_fixed and not problem_state (e.g. questionnaire responses).
* | Group categories on new report formDave Arter2017-12-05-3/+15
| | | | | | | | Ensures ‘Other’ group is last in the list, if it exists.
* | Only allow one auto-response template per category/state.Dave Arter2017-12-04-6/+39
|/
* Merge branch '1919-consolidate-statistics'Matthew Somerville2017-11-29-563/+271
|\
| * Consolidate summary statistics pages.Matthew Somerville2017-11-29-495/+196
| |
| * Refactor stats pages to their own controller.Matthew Somerville2017-11-29-150/+157
| |
* | allow dashboard CSV export access using token authStruan Donald2017-11-29-0/+4
| |
* | Staff user page for generating an access token.Struan Donald2017-11-29-0/+22
| | | | | | | | | | Adds a link from /my to a page for generating an access token which is then stored in the user's extra field.
* | Add an access token authentication credential.Matthew Somerville2017-11-29-0/+2
|/ | | | This allows access if you have a token associated with your user.
* Reinstate appcache_enabled staging flagDave Arter2017-11-24-1/+2
| | | | | This can optionally disable appcache for superusers which can be handy in development.
* Allow cobrands to disable moderation emailsDave Arter2017-11-22-1/+1
| | | | | | | This adds a new send_moderation_notifications method which can be overridden by cobrands to prevent “your report has been moderated” emails from being sent. Fixes mysociety/fixmystreet-commercial#936
* Treat dashboard end date as that given, inclusive.Matthew Somerville2017-11-16-2/+3
| | | | | If someone selects 15-16th November, they want reports from both those dates, not just the 15th.
* Merge branch '1901-js-deferring'Matthew Somerville2017-11-15-3/+1
|\ | | | | | | Updated geolocation.js with concurrent changes.
| * Only include offline JavaScript if needed.Matthew Somerville2017-11-15-3/+1
| |
* | add date range options to council dashboardStruan Donald2017-11-14-0/+21
|/
* allow admin to unban a userStruan Donald2017-11-07-3/+27
| | | | | | | Add an unban button to the user edit page when a user is in the abuse table. Fixes #1881
* do not override template when displaying body contacts as textStruan Donald2017-11-07-1/+4
| | | | | | | move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895
* Fix issue editing user previously lacking a name.Matthew Somerville2017-11-07-3/+4
| | | | | The check that a name was entered was testing the user's current name, not the name entered in the form.
* Fix fetching of duplicate reports.Matthew Somerville2017-11-06-2/+3
| | | | | | c9998984 altered nearby.json to use on_map rather than around_map, to prevent needless text appearing, but did not take account of the fact that it expects Problem objects, not Nearby objects.
* Merge branch 'around-and-about-pagination'Matthew Somerville2017-11-06-29/+47
|\
| * Add pagination to around page.Matthew Somerville2017-11-06-12/+31
| |
| * Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-10/+5
| | | | | | | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
| * Have /around ajax use same format as others.Matthew Somerville2017-11-02-7/+11
| | | | | | | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* | Remove shortlist form from inspect duplicate list.Matthew Somerville2017-11-02-0/+3
|/ | | | | This functionality isn't needed here, and causes an issue with the main form submitting due to a form inside a form.
* always allow problems to be removed from shortlistStruan Donald2017-10-27-7/+11
| | | | | | | | | | If a user is trying to remove a problem from their shortlist we should always allow it regardless of the state of the problem. Previously if a problem wasn't displayed on the site then it could not be removed from the shortlist which was an issue with council cobrands and reports that had changed body. Fixes mysociety/fixmystreetforcouncils#243
* Merge branch 'reports-dashboard-councils'Matthew Somerville2017-10-20-37/+74
|\
| * [fixmystreet.com] Council pages only from council.Matthew Somerville2017-10-20-9/+26
| |
| * Front end way of viewing council dashboard.Matthew Somerville2017-10-20-21/+42
| |
| * Allow testing override of /reports data.Matthew Somerville2017-10-16-8/+7
| |
* | Merge branch 'issues/forcouncils/227-all-filter'Struan Donald2017-10-20-0/+3
|\ \
| * | select all applicable filter states on report pageStruan Donald2017-10-18-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that all relevant options in the filter status drop down are checked to handle staff users who can see the full set of states and not just open, closed and fixed Also restore custom label for no states checked. Fixes mysociety/forcouncils#227
* | | Tidy up report page permission checkings.Matthew Somerville2017-10-18-4/+1
|/ /
* / make sure duplicate id provided when marking as duplicateStruan Donald2017-10-17-8/+8
|/ | | | | | | It was possible to mark a report as a duplicate in the inspector panel without providing an id of the duplicate. This prevents that. Fixes mysociety/fixmystreetforcouncils#236
* Redirect inspectors correctly on creation.Matthew Somerville2017-10-16-2/+6
| | | | | Do not try and redirect to a report that won't be viewable on the cobrand being used.
* Merge branch 'sms-mssid-error'Matthew Somerville2017-10-16-27/+15
|\
| * Factor the three SMS code checking fns together.Matthew Somerville2017-10-12-27/+9
| |
| * Spot errors coming back when sending text.Matthew Somerville2017-10-12-0/+6
| |
* | log all state changes in admin as commentsStruan Donald2017-10-16-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | Create a comment on a problem when the admin is used to change the state of the problem. If only the state is changed then create a comment with blank text. If the category and state are changing then include details of the category change in the comment. Not all the state changes are displayed at the template level by default. Fixes #1846
* | Merge branch 'bit-of-yaml-tidying'Matthew Somerville2017-10-11-5/+2
|\ \ | |/ |/|
| * Simplify geocode cache read/writing.Matthew Somerville2017-10-10-5/+2
| | | | | | | | Don't think the return data ever needs decoding.
* | Merge branch 'issues/forcouncils/231-multi-ward-reports-view'Matthew Somerville2017-10-09-18/+28
|\ \
| * | Allow ward page to show multiple wards.Matthew Somerville2017-10-06-18/+28
| | | | | | | | | | | | | | | URLs have to be manually constructed, but specifying multiple ward names separated by "|" will show all those wards and their reports on the map.
* | | Merge remote-tracking branch 'origin/fix-geographic-mobile-numbers'Matthew Somerville2017-10-05-39/+38
|\ \ \
| * | | Accept +1 geographic numbers as possibly mobile.Matthew Somerville2017-10-05-39/+38
| |/ / | | | | | | | | | | | | We have no way of knowing whether a +1 geographic number is fixed line or mobile, so accept them all as potentially mobile.
* | | Return page with "No results" if no ref found.Matthew Somerville2017-10-05-5/+3
| | | | | | | | | | | | | | | | | | This lookup is often performed by inspectors with appcache switched on, which means they were getting the intercepted Glitch page rather than a 404; give them a no results page instead.
* | | Fix crash if large number given in postcode field.Dave Arter2017-10-05-2/+9
|/ / | | | | | | | | | | It was possible to trigger an SQL error by entering a value larger than that permitted by the `integer` SQL type. This commit instead returns a 404 in that case.
* | correctly handle category changes in inspector formStruan Donald2017-10-04-12/+21
| | | | | | | | | | | | | | | | | | | | | | This resolves two issues when updating the report category in the staff users inspect form: * report category is only updated if the rest of the form is valid * only one update on the report is left Previously changing the category would create an update in addition to any public update created, and the category was always updated even when validation errors occurred elsewhere in the form.