Commit graph

680 commits

Author SHA1 Message Date
Tom Hughes
0f2958aed4 Report an error if a bogus limit value is passed to a notes API call 2013-12-05 17:57:12 +00:00
Tom Hughes
c866d28fd4 Test get_nodes_undelete methods of the OldWay model 2013-12-05 17:49:06 +00:00
Tom Hughes
1f52e5227f Add tests for member methods on relation models 2013-12-05 00:38:25 +00:00
Tom Hughes
cd81a3f605 Add tests for node methods on way models 2013-12-04 21:44:39 +00:00
Tom Hughes
5ed8ee39e9 Add tests for tag methods on object models 2013-12-04 18:39:07 +00:00
Tom Hughes
e418075e26 Replace some legacy routes with redirects 2013-12-03 19:08:21 +00:00
John Firebaugh
d95361bcb9 Support legacy bbox param on /history as well
Fixes #586
2013-12-02 11:38:54 -08:00
Tom Hughes
aff0583a34 Drop monkey patch now we're using option style redirects
Option style redirects escape path parameters correctly, so we
can drop out monkey patch.
2013-12-01 20:54:52 +00:00
Tom Hughes
61bb31ebdd Preserve the bounding box when redirecting history URLs
Using the options style for the redirect seems to cause parameters
to be preserved, which the path style of redirect does not.
2013-12-01 19:59:57 +00:00
Tom Hughes
315d1dab54 Redirect /?query= to /search?query= 2013-11-30 12:38:44 +00:00
Tom Hughes
a9f4549327 Tidy up the OAuth authorization screens
Make sure all messages are translatable, separate errors from
user initiated denial of authorization.
2013-11-30 12:25:22 +00:00
Tom Hughes
fb9b4edcdd Add tests for new redirects and fix a few bugs in the redirects 2013-11-28 08:56:52 +00:00
Tom Hughes
3cd5f45e08 Simplify browse routes and make routes more consistent
This gets rid of the /browse/ prefix and uses /history consistently
for all routes that show a list of changesets.
2013-11-28 00:14:07 +00:00
Tom Hughes
fbf92b17a0 Add test for redirect routes 2013-11-25 21:13:59 +00:00
John Firebaugh
e91956d0f7 Fix test failures 2013-11-19 10:30:18 -08:00
John Firebaugh
44629832dd Merge branch 'master' into redesign
Conflicts:
	vendor/assets/leaflet/leaflet.hash.js
	vendor/assets/leaflet/leaflet.js
2013-11-19 09:42:47 -08:00
Tom Hughes
41e45bad51 Remove the _osm_username cookie and session validation logic
This was a temporary hack to workaround issues with sessions getting
mixed up at the time of the rails 3.1 upgrade, but logs indicate that
whatever the original problem was it is no longer occurring.
2013-11-17 21:52:39 +00:00
John Firebaugh
2b4f8e92c9 Merge branch 'master' into redesign
Conflicts:
	app/controllers/browse_controller.rb
	app/views/layouts/_head.html.erb
	config/environments/production.rb
	config/routes.rb
2013-11-15 16:47:49 -08:00
John Firebaugh
15ff7b9843 Remove unused 2013-11-06 13:05:51 -08:00
Tom Hughes
d85fac567b Add tests for trace#data 2013-10-16 00:46:20 +01:00
Tom Hughes
39a54f8c14 Test user#delete 2013-10-15 21:43:50 +01:00
Tom Hughes
b0fa1cf936 Test user#set_status 2013-10-15 21:39:07 +01:00
Tom Hughes
1abb7bfa56 Test user#reset_password 2013-10-15 21:27:25 +01:00
Tom Hughes
f892313c48 Test user#go_public 2013-10-15 21:14:08 +01:00
John Firebaugh
5835350879 Restore raw latlon search result 2013-10-15 21:01:14 +01:00
Tom Hughes
3e985f3ab9 Add more tests for hidden diary entries and comments 2013-10-15 19:21:39 +01:00
Tom Hughes
4f05b6a8ac Add tests for diary_entry#comments 2013-10-15 18:24:51 +01:00
Tom Hughes
53b70a5971 Add tests for diary_entry#hide and diary_entry#hidecomment 2013-10-15 18:09:39 +01:00
Tom Hughes
bcd2592ce9 Add tests for trace#delete 2013-10-15 00:12:40 +01:00
Tom Hughes
71065a5f2a Add tests for trace#edit 2013-10-15 00:12:04 +01:00
Tom Hughes
7417d14299 Add some tests for trace#view 2013-10-14 10:17:31 +01:00
John Firebaugh
aaeca5b534 Use reverse geocoders for any lat/lon queries
This simplifies the implementation, allows code sharing with
"Where am I?", and produces friendlier results for lat/lon
searches (actual reverse geocode results rather than a raw
lat/lon display).
2013-10-13 19:30:38 +01:00
John Firebaugh
efc6aaf215 Remove vestigial routes
Namefinder support was removed in 1a0728ec7b.
2013-10-13 19:23:15 +01:00
Tom Hughes
7de32f3cd5 Add a basic test for browse#note 2013-10-01 19:34:36 +01:00
Tom Hughes
25720e3ee3 Make sure the "terms seen" tests actually run 2013-09-29 15:43:16 +01:00
Tom Hughes
5fc397935c Fix routing of changeset feed 2013-09-23 13:58:59 +01:00
Tom Hughes
038c341918 Allow GET as well as POST for oauth#request_token and oauth#access_token 2013-09-23 13:47:05 +01:00
Tom Hughes
57219d516a Fix routing of RSS feeds 2013-09-23 11:05:35 +01:00
Tom Hughes
3b34f700f1 Alloe GET as well as POST for oauth#revoke and oauth#authorize 2013-09-22 18:33:26 +01:00
Tom Hughes
90875bb08a Always allow %{attribute} in model validation error messages 2013-09-21 12:03:53 +01:00
Tom Hughes
b7e795e1e1 Set hostname for signed requests correctly 2013-09-21 12:03:53 +01:00
Tom Hughes
75795125ad Remove deprecated assert_blank and assert_present from tests 2013-09-21 12:03:53 +01:00
Tom Hughes
70448559b2 Remove format specifier from RSS feed route tests 2013-09-21 12:03:53 +01:00
Tom Hughes
321f8cecdc RoutingError is now UrlGenerationError 2013-09-21 11:35:46 +01:00
Tom Hughes
6c51b3cc0a Replace deprecated finder methods 2013-09-21 11:35:46 +01:00
Tom Hughes
d8399d3e18 IntegrationTest is now in ActionDispatch not ActionController 2013-09-21 11:35:46 +01:00
Tom Hughes
bd8d207ea4 Rails now defaults to using PATCH for updates 2013-09-21 11:35:46 +01:00
Tom Hughes
f0feca800d Replace attr_accessible with strong parameters 2013-09-21 11:35:46 +01:00
Tom Hughes
984c6dc114 Update to rails 4.0.0 2013-09-21 11:35:45 +01:00
Tom Hughes
40b452ac74 Use a view to build the trace RSS feed and get rid of OSM::GeoRSS 2013-09-18 18:23:03 +01:00