aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
* Upgrade Net::Facebook::Oauth2 to 0.11.Matthew Somerville2018-10-03-2/+2
| | | | | v2.8 of the FB API is due to turn off in April 2019, let's upgrade well in advance.
* [UK] Fix ward pages containing ampersands.Matthew Somerville2018-10-03-9/+10
| | | | | Map ward names on their short names, so any processing applies equally to URL and names returned by MapIt.
* Add some Cypress tests for the map list pages.Struan Donald2018-10-02-0/+5
| | | | | | | | Including testing the filters, viewing a report, and pushState. Plus a mock MapIt handler for returning a GeoJSON outline, to make the page load. The BASE_URL is also set to the same as the test server, as that is used in list link output.
* [Oxfordshire] remove open311 hardcodingStruan Donald2018-10-01-3/+0
| | | | | we no longer need some of the hardcoded oxfordshire Open311 overrides so remove them
* [Open311] add customer reference from update to problemStruan Donald2018-10-01-0/+23
| | | | | If an Open311 update has a customer_reference property then add that to the metadata for the problem.
* Add S3 photo storage backendDave Arter2018-09-28-0/+189
|
* Factor out photo storage into PhotoStorage::FileSystem backendDave Arter2018-09-28-5/+28
|
* Fix failing inspector tool testsStruan Donald2018-09-28-0/+25
| | | | | Adds a mocked Oxfordshire cobrand permissions method that adds back in the permissions explicitly removed there.
* [Oxfordshire] remove access to inspector toolStruan Donald2018-09-28-0/+27
|
* Merge branch 'body-list-speedup'Matthew Somerville2018-09-25-0/+14
|\
| * Speed up fetching lists of bodies.Matthew Somerville2018-09-25-0/+14
| | | | | | | | | | | | Use a HashRefInflator wherever all_sorted is used, with consequential changes to deal with it now not being an object (e.g. add some with_* functions for manual fetching of extra data).
* | Add Blackhole send methodDave Arter2018-09-24-0/+42
|/
* Don't lose from_body if edited by non-superuser.Matthew Somerville2018-09-20-0/+10
| | | | | If an admin with the user_edit permission but not user_assign_body edited a user with from_body set, the from_body field was lost.
* Merge branch 'questionnaire-hooking'Matthew Somerville2018-09-13-2/+37
|\
| * Add hook for per-row questionnaire override.Matthew Somerville2018-09-13-2/+37
| |
* | Add cobrand hook for disallowing updates.Dave Arter2018-09-13-0/+27
|/ | | | | Provides a template override for cobrands to show if updates aren't allowed on the problem.
* allow web based use of report importStruan Donald2018-09-13-1/+16
| | | | | | | | if a web parameter is passed to /import then display the email confirmation sent page rather than a SUCCESS message. Enables this page to be used for creating partial reports from a web page. For mysociety/collideoscope#17
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-0/+25
|
* Merge branch 'issues/collideoscope/30-user-moderation'Matthew Somerville2018-08-29-10/+10
|\
| * Refactor together similar moderate functions.Matthew Somerville2018-08-28-10/+10
| |
* | Merge branch 'dev-confirmation-pages'Matthew Somerville2018-08-29-8/+37
|\ \
| * | Move all test endpoints under /_dev.Zarino Zappia2018-08-29-8/+37
| |/
* | Use site name in contact email subject line.Matthew Somerville2018-08-28-1/+1
| |
* | Remove need for category_extras ajax call.Matthew Somerville2018-08-28-20/+28
|/ | | | | | Add by_category output to the /report/new/ajax call, containing all the data that /report/new/category_extras returns for one category. Then alter the JS to use that data immediately when needed.
* Include user agent in contact form emails.Matthew Somerville2018-08-21-1/+1
|
* [Lincolnshire] Add assets to map & roadworks.org integrationDave Arter2018-08-17-0/+1
|
* Don’t crash when fetching Open311 requests with missing descriptionDave Arter2018-08-17-0/+21
|
* Merge branch 'issues/commercial/1118-confirm-flytipping'Matthew Somerville2018-08-07-9/+43
|\
| * [Buckinghamshire] Update flytipping handling.Matthew Somerville2018-08-07-9/+43
| | | | | | | | | | | | Allow flytipping reporting on cobrand and .com, with road reports going to Bucks Confirm and email, and non-road reports going to district and Bucks emails.
* | Merge branch 'issues/commercial/1123-fixed-state-thing'Matthew Somerville2018-08-06-0/+20
|\ \ | |/ |/|
| * [Open311] No update text on fixed state move.Matthew Somerville2018-08-06-0/+20
| | | | | | | | | | | | A move between fixed states (presumably from fixed-user to fixed-council) should not count as a state change for the purposes of generating comment text from templates.
* | allow front end to not send to specific bodyStruan Donald2018-08-06-0/+7
| | | | | | | | | | | | | | | | add a do_not_send parameter to reports which allows the front end to specify a comma separated list of bodies that reports should not be sent to even if there is a valid contact match. This enables asset layers to override backend body processing, e.g. if a body only accepts reports that are on a road this allows the front end to specify that.
* | [UK] Pull in cobrand asset files on national site.Struan Donald2018-08-03-4/+34
|/ | | | | | | Also add body name to layer defaults, so they are only used where appropriate. Switch mapit area javascript calls to GeoJSON, so we can drop KML support in OpenLayers.wfs.js which saves a small amount of bandwidth.
* Allow asset layer display to be body dependent.Struan Donald2018-08-03-20/+129
| | | | | | | | | | | Return a list of associated bodies on around/new pages and in category ajax calls, and use that when deciding whether to show/hide layers. If the layer has no body information, then we show it as before, maybe based on category selected; if it does, it is only shown if the layer body matches the bodies for the point. As part of this create a new VectorAsset class to handle all the visibility changes for asset layers as it makes it a bit tidier.
* Allow questionnaire pages to be revisited within 2 minutesDave Arter2018-07-11-2/+9
| | | | | | | | Users who double click links were seeing an error when visiting the questionnaire page. This change gives a grace period of two minutes for revisiting the questionnaire page. Fixes #2123.
* [fixmystreet.com] Default to open reports only.Matthew Somerville2018-07-03-1/+1
|
* Only display reports from last 6 months on around.Struan Donald2018-07-03-2/+73
| | | | | | | Add a checkbox to show older reports, plus if we get to the end of the new reports then instead of a Next button show a "show older" button that will reload the current page but with older reports also loaded. Wire it all up into the pushState code as well.
* Show all fixed issues when staff uses map filter.Matthew Somerville2018-07-02-5/+5
|
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-22/+60
| | | | | | | | | | | Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption.
* Enable editing of category group in adminDave Arter2018-06-26-1/+52
| | | | Fixes mysociety/fixmystreetforcouncils#275
* add a send login email button to user edit pageStruan Donald2018-06-25-0/+65
| | | | | | | | | Add a button to the user edit page that sends a login token email to the user. Helpful for user support situations where someone is having trouble logging in. Also for situations where you have added a user and want to get them logged in. Fixes #2041
* Defect type changes must be after category change.Matthew Somerville2018-06-22-0/+26
| | | | | As with priorities, they depend upon the category and so must be looked up after that has been updated.
* Allow inspector to unset priority.Matthew Somerville2018-06-22-0/+20
|
* [Buckinghamshire] Update TfB flytipping addressDave Arter2018-06-21-1/+1
|
* Merge branch 'issues/commercial/875-old-reports'Matthew Somerville2018-06-21-1/+2
|\
| * Show message on reports closed to updates.Matthew Somerville2018-06-21-1/+2
| |
* | Map Open311 CLOSED status to closed state if extended statuses enabled.Dave Arter2018-06-21-1/+13
|/ | | | | | | | | | | | | | | | | | | | | The Open311 specification has two values for a report's status: - open: it has been reported. - closed: it has been resolved. FixMyStreet previously mapped 'closed' to 'fixed - council', but this has been causing issues with Open311 endpoints that want to mark a FMS report as closed but not fixed. The mySociety Open311 additions introduce extended statuses, some of which represent a 'closed' state e.g. duplicate, no_further_action, but there are times when a report should simply be closed without any indication why - for example, if open311-adapter is being used to integrate with a council system which has a closed state not represented by the extended statuses. Marking a report as 'closed' on a council system and displaying that as 'fixed' on the FixMyStreet front end is not an ideal situation. This commit changes the mapping of the Open311 'closed' status to the 'closed' FMS state when extended_statuses is enabled.
* send unresponsive details back with category extrasStruan Donald2018-06-20-0/+6
| | | | | | | This allows the mobile app to explicitly detect when a body is unresponsive and display the category_extra text. For mysociety/fixmystreet-mobile#266
* Merge branch 'issues/commercial/1060-highway-flytipping-to-tfb'Matthew Somerville2018-06-20-0/+52
|\
| * [Buckinghamshire] Support extra recipient for road flytipping.Matthew Somerville2018-06-19-0/+52
| |