Commit graph

2258 commits

Author SHA1 Message Date
Shaun McDonald
544353a8d9 Use a nicer less error prone version of the select helper 2009-05-27 13:15:58 +00:00
Shaun McDonald
4ee48d2ad9 Actually set the locale from the users browser request, rather than just parsing it. 2009-05-27 12:57:28 +00:00
Tom Hughes
40e920bd52 Create a proper exception class for invalid bounding box exceptions. 2009-05-26 23:47:45 +00:00
Thomas Wood
68ea927f5b Merge r15175 from i18n_2 branch. 2009-05-26 22:33:28 +00:00
Matt Amos
ce667bbbb1 Working around mysql bug... 2009-05-26 16:55:05 +00:00
Matt Amos
96b6cfbf0c Added missing ordering to relation members. This was only visible in some relations when grabbing from the history API. 2009-05-26 15:57:57 +00:00
Matt Amos
04dbf32b73 Better testing of bbox handling in relations. Maybe fixes #1861, but wasn't able to reproduce the exact case. Fixed bug handling bboxes where element is repeated in relation. 2009-05-26 15:37:29 +00:00
Shaun McDonald
7cda38bb25 Diary entry test for the new language field. Currently fails as expected. 2009-05-26 15:36:10 +00:00
Shaun McDonald
f183bd8ec8 Some test improvements 2009-05-26 14:45:30 +00:00
Tom Hughes
20992870ab Use SOTM logo to link to the SOTM site. 2009-05-26 13:16:10 +00:00
Shaun McDonald
d5d4adb2f9 Fix the fixtures. Related changeset 15184. 2009-05-26 13:12:42 +00:00
Richard Fairhurst
33e3d3d576 fix #1849 2009-05-25 10:19:50 +00:00
Richard Fairhurst
c6061461d3 fix upload item count 2009-05-23 19:11:44 +00:00
Tom Hughes
ded669bb4d Use a block to add the language record as rails seems to ignore any
attempt to set the primary key in the argument list of the create method.
2009-05-23 12:39:45 +00:00
Tom Hughes
0e71278320 Rename language_code to code - language_code is tautological when it's
in the language table anyway.
2009-05-23 00:00:25 +00:00
Tom Hughes
68eeaabb9d Altered to match rails 2.3.2 implementation. 2009-05-22 23:49:08 +00:00
Tom Hughes
2bf56c7be3 Don't ask the backend directly for the available locales - just ask
the I18n module and let it worry about where to find them.
2009-05-22 23:42:17 +00:00
Richard Fairhurst
a3a792e137 adapt for larger fonts on Linux; fix indexing with renumbered nodes 2009-05-22 19:43:56 +00:00
Thomas Wood
e3d4948daa Fix missing require in migrations. 2009-05-22 18:53:24 +00:00
Shaun McDonald
6fe22d41a9 Reverting config file that shouldn't have been committed. 2009-05-22 18:41:33 +00:00
Shaun McDonald
53b4d645d8 First stage of i18n. Some migrations and extra plugins. 2009-05-22 18:36:17 +00:00
Shaun McDonald
6ac7f91734 Making new short lived branch for the Rails 2.2 based internationalization. 2009-05-22 15:36:56 +00:00
Andy Allan
cdbfc1e341 Override interestingTagsExclude in GML layer - improve databrowser in US by ignoring vanilla TIGER nodes 2009-05-22 14:20:22 +00:00
Matt Amos
95c6974763 Disabled automatic parsing of XML to a hash in request bodies for a modest 15% speedup. 2009-05-21 23:48:34 +00:00
Shaun McDonald
9985b9cb94 Reverting earlier change that means that zoom isn't set in certain code paths. 2009-05-21 23:20:46 +00:00
Tom Hughes
4f6dc55683 Check for wrapped timeout errors properly. 2009-05-21 21:55:30 +00:00
Matt Amos
2006c416d2 Fixed typo. 2009-05-21 21:24:29 +00:00
Tom Hughes
4a4d89138c Rationalise API error classes by getting of the render_opts method which
was never used except to extract the data it contained. Instead each class
now has a status method that returns the HTTP status code to use and a
to_s method to return a textual description of the error.
2009-05-21 19:28:39 +00:00
Tom Hughes
33157534e1 Fixup AMF controller tests. 2009-05-21 17:30:32 +00:00
Tom Hughes
912f708d62 Fix some comments to reflect reality. 2009-05-21 17:30:20 +00:00
Shaun McDonald
961020a5dc allow the user to pass in a gpx and a zoom 2009-05-21 17:25:39 +00:00
Shaun McDonald
d1eeb7f2f3 Add svn ignore for the sql files used for dumping the db schema. 2009-05-21 14:57:47 +00:00
Matt Amos
4ab495f5db Added locking around update and delete methods on main API objects. This should remove the 500 errors which come from concurrent overlapping updates. Experimental - might be too slow for production. 2009-05-21 14:57:03 +00:00
Matt Amos
94c89838d4 Use utility method for error reporting. 2009-05-21 14:55:25 +00:00
Shaun McDonald
0d5136c1aa Don't store the real database config in svn, instead store examples for Postgres and MySQL. (Reverting Edgemaster's silly revert.) 2009-05-21 14:45:16 +00:00
Shaun McDonald
d4954bc7b1 Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call. 2009-05-21 14:05:09 +00:00
Tom Hughes
97769170fd Give the API error handler a generic rescue that returns 500 with
the exception details.
2009-05-21 10:02:26 +00:00
Tom Hughes
e3cbeeae94 Monkey patch rails to ensure OSM::APITimeoutError exceptions are not lost. 2009-05-21 09:57:21 +00:00
Richard Fairhurst
8100be1e8d Potlatch 1.0 2009-05-21 00:30:33 +00:00
Tom Hughes
b38684e59e Add a global timeout that is applied to most API requests. 2009-05-20 22:18:36 +00:00
Matt Amos
3d0ca940d2 Using an around_handler for catching and rendering errors in most of the API controller methods. This simplifies the code and makes errors and error messages a bit more consistent. Also added a utility method for checking the HTTP method. 2009-05-20 17:39:59 +00:00
Tom Hughes
058d942c7c Log arguments to AMF read methods. 2009-05-20 13:24:59 +00:00
Thomas Wood
0f46c39257 Back out the stupid change. 2009-05-16 22:46:42 +00:00
Thomas Wood
c424fa0ee5 Second part of [15085] 2009-05-16 22:42:34 +00:00
Thomas Wood
ccd42522f7 Database config changes to hopefully stop people from accidently commiting database.yml. (As recommended by Shaun)
I'll back this out if it doesn't work nicely with what's on dev.
2009-05-16 22:37:08 +00:00
Tom Hughes
1a172c3ede Revert harry's commit of the database configuration. 2009-05-15 17:59:01 +00:00
Harry Wood
3415aa4689 label changesets as (big) based on their bbox area 2009-05-15 16:24:55 +00:00
Shaun McDonald
d23d2c9d05 Extra little test, setting the language on the diary fixtures. 2009-05-15 15:41:45 +00:00
Tom Hughes
fe13e13d16 Arrays of object IDs are a bad idea. 2009-05-15 09:18:10 +00:00
Tom Hughes
fa13a11a94 Optimise retrieval of full relations. 2009-05-15 09:10:50 +00:00