Use quad tiling to select bugs in an area

Remove the _no_quadtile versiond of the selection routines and switch
to using the ordinary ones but with a (large) limit applied on the size
of the area to prevent us spending ages working out the list of tiles
to be selected.
This commit is contained in:
Tom Hughes 2011-05-08 14:57:56 +01:00
parent 7bba798990
commit 22bef89d1a
6 changed files with 17 additions and 28 deletions

View file

@ -79,10 +79,15 @@ class MapBugsControllerTest < ActionController::TestCase
end
def test_get_bugs_large_area_success
get :get_bugs, {:bbox=>'-10,-10,12,12'}
get :get_bugs, {:bbox=>'-2.5,-2.5,2.5,2.5'}
assert_response :success
end
def test_get_bugs_large_area_bad_request
get :get_bugs, {:bbox=>'-10,-10,12,12'}
assert_response :bad_request
end
def test_get_bugs_closed_7_success
get :get_bugs, {:bbox=>'1,1,1.2,1.2', :closed => '7'}
assert_response :success