aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/around.t
Commit message (Collapse)AuthorAgeLines
* Update a number of packages.Matthew Somerville2019-05-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update: * Catalyst * Specify Catalyst::DispatchType::Regex explicitly * Remove Catalyst::Plugin::Unicode::Encoding * Catalyst::Plugin::SmartURI * Specify URI::SmartURI explicitly * Catalyst::Plugin::Static::Simple * CGI * Class::Load * DateTime * DateTime::TimeZone * DBD::Pg * DBIx::Class * DBIx::Class::EncodedColumn. * Email::Address. * Email::MIME * ExtUtils::MakeMaker * ExtUtils::ParseXS (for Params::Classify upgrade) * File::ChangeNotify * Image::Size * IO::Socket::SSL * local::lib * Moo * Moose (and some related others due to deprecations) * namespace::autoclean * Net::Server * Net::SSLeay * Number::Phone * Plack * Starman * Template * Test::PostgreSQL * Test::WWW::Mechanize::Catalyst * Text::CSV * YAML carton install was run on a wheezy box, the oldest that is supported, to make sure the required minimal vesions of core modules weren't removed from the snapshot. Cpanel::JSON::XS, Devel::GlobalDestruction::XS, and MooseX::NonMoose were then put back in the snapshot, in case another system needs them (e.g. system Perl on Mac looks for MooseX::NonMoose).
* [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-1/+5
|
* Internal JSON endpoint to get reports near a pointMatthew Somerville2019-02-25-0/+6
| | | | Unused right now, but will be soon, for the duplicate suggestion UI.
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-22/+0
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* add private only report filterStruan Donald2019-01-04-0/+26
|
* add report_mark_private permissionStruan Donald2018-11-12-3/+48
| | | | | | | | Allows user's to see the inspector panel to mark reports as Private, and also to view those non-public reports. Useful for call centre staff who want to record private reports but don't need to other permissions. Fixes mysociety/fixmystreet-commercial#1213
* allow map zoom constants to be overriddenStruan Donald2018-10-15-0/+31
| | | | | call ZOOM_LEVELS and MIN_ZOOM_LEVELS using self so that we can override them in a subclass.
* [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/+72
| | | | | | | 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
|
* Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-1/+9
| | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* Fix bug specifying category in URL on /around.Matthew Somerville2018-01-04-5/+16
| | | | The list of existing categories wasn't being checked correctly.
* Bypass /around from postcode form if required.Dave Arter2017-12-13-0/+16
| | | | | | | | | | 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.
* Have /around ajax use same format as others.Matthew Somerville2017-11-02-5/+5
| | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* Return page with "No results" if no ref found.Matthew Somerville2017-10-05-8/+15
| | | | | | 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.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-4/+0
|
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-8/+8
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-4/+0
|
* Fix broken test due to missing config override.Matthew Somerville2016-05-27-2/+7
|
* Move test mocks to their own directory.Matthew Somerville2016-01-27-2/+2
|
* Mock MapIt postcode call to fix broken tests.Matthew Somerville2015-09-15-3/+7
| | | | SW1A 1AA has moved, who'd have thought.
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-2/+2
|
* Add some tests for the category & status filtering on /ajaxSteven Day2015-06-29-0/+39
|
* By default, use area-based alerts.Matthew Somerville2014-12-12-2/+6
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Fix test of postcode that has moved ever so slightly.Matthew Somerville2014-05-30-2/+2
|
* Fix test suite to run regardless of config setup.Matthew Somerville2013-10-24-5/+19
|
* Fix tests.Matthew Somerville2013-02-20-1/+1
|
* Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-1/+1
|
* Remove unused function, add gridref test.Matthew Somerville2012-11-12-0/+5
|
* make around test for non public reports work, and do not display nonStruan Donald2012-09-03-0/+1
| | | | public reports on around page
* tests for non public reports on around pageStruan Donald2012-09-03-0/+25
|
* Have a whole fake mapit (for #182) that works if MAPIT_URL is set accordingly.Matthew Somerville2012-07-13-1/+1
| | | | | | | | | Setting MAPIT_URL to .../fakemapit/ will then return one area, ID 161 and type ZZZ, whatever co-ordinate it is given. This means the default area type is now ZZZ, the UK specific types are moved into the UK cobrands, and the tests updated accordingly to still function (they assume UK-ness a lot, so probably need an ALLOWED_COBRANDS entry of "fixmystreet: 'localhost'" and for your host's domain to show fixmystreet too).
* Fix URI overriding now it's being used.Matthew Somerville2011-07-01-1/+1
|
* Skip non-UK results in Bing geocoder, remove some geocode tests.Matthew Somerville2011-06-29-25/+0
|
* Fix tests.Matthew Somerville2011-06-13-1/+1
|
* Merge branch 'migrate_to_catalyst' of ↵Struan Donald2011-05-24-6/+6
|\ | | | | | | ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
| * Move lat/lon to templates and use shortened forms.Matthew Somerville2011-05-24-6/+6
| |
* | google maps don't seem to pay as much attention to region hinting as they ↵Struan Donald2011-05-24-5/+8
|/ | | | | once did so make sure we add UK on to the end. also update tests to take into account changed results because of this.
* Moved some of the location smarts from '/report/new' to '/around'Edmund von der Burg2011-04-13-1/+73
|
* Create Around controller and implement the easy bitsEdmund von der Burg2011-04-12-0/+31