aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
...
| * Split up admin test file into many separate files.Matthew Somerville2018-01-31-1694/+1937
| |
| * Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-1/+14
| |
| * Admin ability to make user anonymous.Matthew Somerville2018-01-31-0/+12
| |
* | Hide 'updates not sent' message on reports sent via Open311Dave Arter2018-01-23-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'updates are not sent to the council' message was incorrectly being shown on reports where updates would in fact be sent. This was affecting non-Bromley/Stevenage reports on fms.com and all cobrands using Open311. This commit moves the logic out of the template and adds the Problem->updates_sent_to_body method which inspects the receiving body's Open311 configuration to determine whether updates will be sent. The duplication of the Lewisham/Oxfordshire logic between Problem.pm and send-comments isn't ideal but hopefully there won't be any new Open311 bodies that only send and don't receive updates. If there are we'll have to look at refactoring that list.
* | Remove SameSite=Lax from cookies.Matthew Somerville2018-01-23-9/+0
| |
* | Merge branch 'issues/commercial/988-c6-email-address-link'Matthew Somerville2018-01-18-61/+33
|\ \ | |/ |/|
| * [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-61/+33
| | | | | | | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* | Fix error sending `requires_inspection` reports.Matthew Somerville2018-01-16-3/+0
| | | | | | | | | | has_permission_to() is called in Reports.pm and requires the cobrand to be set on the schema. The test was manually doing this which hid the problem.
* | Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-16/+21
|/
* Add some example fixture images.Matthew Somerville2018-01-11-0/+0
|
* Merge branch 'add-samesite-lax-cookie'Matthew Somerville2018-01-05-0/+9
|\
| * Include "SameSite=Lax" with all set cookies.Matthew Somerville2018-01-04-0/+9
| | | | | | | | | | This prevents FixMyStreet cookies from being sent from third-party <img>s and the like, in supporting browsers.
* | Fix bug specifying category in URL on /around.Matthew Somerville2018-01-04-5/+16
|/ | | | The list of existing categories wasn't being checked correctly.
* Fix spelling of administrator.Matthew Somerville2017-12-15-2/+2
|
* Merge branch 'issues/forcouncils/939-new-chart-marketing-dashboard'Matthew Somerville2017-12-15-43/+84
|\
| * [fixmystreet.com] CSV download from marketing pageStruan Donald2017-12-15-42/+84
| | | | | | | | | | | | Limited to most recent 100 rows and not full data. Factor the two CSV generations together.
| * [fixmystreet.com] Marketing page, filterable statsStruan Donald2017-12-15-1/+0
| | | | | | | | | | Uses the dashboard stats code to display a rough table of stats which can be used as the basis for a chart later
* | Merge branch 'yodenuncio'Matthew Somerville2017-12-13-0/+61
|\ \ | |/ |/|
| * Bypass /around from postcode form if required.Dave Arter2017-12-13-0/+61
| | | | | | | | | | | | | | | | | | | | Cobrands can provide a `skip_around_page` method which means the user will be taken from the front page form directly to /report/new with a pin in the map at the location entered. This also preserves the category parameter, if specified on the front page form. Fixes #1730.
* | [UK] Make sure jQuery is loaded where it is neededMatthew Somerville2017-12-12-1/+1
|/ | | | | | | Bromley uses jQuery for its A-Z on all pages; only load Bristol map JavaScript on map pages (same as Angus); drop Oxfordshire JS use of jQuery; fix Zurich load order; and improve jQuery checking in other JavaScript.
* Ensure Mock::Nominatim JSON is encoded in en-gb localeDave Arter2017-12-05-1/+3
| | | | | This was causing an error in "Test ajax decimal points" in fixamingata.t due to "importance" being encoded with a comma decimal separator.
* Store group on Contacts in Open311 PopulateServiceListDave Arter2017-12-05-0/+9
|
* Only allow one auto-response template per category/state.Dave Arter2017-12-04-5/+107
|
* Use response template for Open311 updates without ‘description’ textDave Arter2017-12-04-3/+27
| | | | | | | If an Open311 service request update with an empty description field is received and there is a matching ResponseTemplate for the problem's category & state (and it's marked as auto-response) then the text from that ResponseTemplate will be used for the created update.
* Merge branch '1919-consolidate-statistics'Matthew Somerville2017-11-29-916/+139
|\
| * Consolidate summary statistics pages.Matthew Somerville2017-11-29-913/+131
| |
| * Refactor stats pages to their own controller.Matthew Somerville2017-11-29-0/+6
| |
* | allow dashboard CSV export access using token authStruan Donald2017-11-29-0/+16
| |
* | Staff user page for generating an access token.Struan Donald2017-11-29-0/+93
| | | | | | | | | | 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/+25
|/ | | | This allows access if you have a token associated with your user.
* display council contacts on council dashboardStruan Donald2017-11-28-0/+26
| | | | | | | | Display a list of the email addresses used to contact the council on the council dashboard. Does not display emails if the council has an integration, rejects FMS reports or is currently turned off. Fixes mysociety/fixmystreetforcouncils#941
* Allow cobrands to disable moderation emailsDave Arter2017-11-22-0/+32
| | | | | | | 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-1/+1
| | | | | 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-0/+29
|\ | | | | | | Updated geolocation.js with concurrent changes.
| * Move map JS to code, to be used on all pages.Matthew Somerville2017-11-15-0/+29
| |
* | Merge branch '1905-fix-broken-geocoder-results'Matthew Somerville2017-11-15-3/+3
|\ \
| * | Make sure returned geocoder data is UTF-8 decoded.Matthew Somerville2017-11-15-3/+3
| |/ | | | | | | | | | | It turns out that HTTP::Message (as used by LWP::Simple::get) only decodes text/* and 'XML', not application/json, as used by all the geocoders. Work around this, hopefully in a future-proof way.
* / add date range options to council dashboardStruan Donald2017-11-14-0/+39
|/
* [fixmystreet.com] No social login on UK councils.Dave Arter2017-11-08-0/+36
|
* allow admin to unban a userStruan Donald2017-11-07-5/+37
| | | | | | | 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-0/+1
| | | | | | | 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-1/+5
| | | | | The check that a name was entered was testing the user's current name, not the name entered in the form.
* Merge branch 'around-and-about-pagination'Matthew Somerville2017-11-06-14/+14
|\
| * Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-3/+3
| | | | | | | | | | /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-11/+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-5/+8
|/ | | | | 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-0/+152
| | | | | | | | | | 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-6/+60
|\
| * [fixmystreet.com] Council pages only from council.Matthew Somerville2017-10-20-0/+47
| |
| * Allow testing override of /reports data.Matthew Somerville2017-10-16-6/+13
| |