Tom Hughes
044febd3aa
Disabled edit tab until z13 is reached.
2009-05-27 13:34:50 +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
Tom Hughes
20992870ab
Use SOTM logo to link to the SOTM site.
2009-05-26 13:16:10 +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
Richard Fairhurst
a3a792e137
adapt for larger fonts on Linux; fix indexing with renumbered nodes
2009-05-22 19:43: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
Matt Amos
66ae650c95
Oops. Fixed another Time/DateTime problem.
2009-05-14 13:13:09 +00:00
Matt Amos
71192daef2
Fixed problem with Time vs. DateTime classes in fixtures. Weirdly only affected mysql backend.
2009-05-14 11:52:15 +00:00
Matt Amos
d7badc8402
Fixed precondition failed message which was trying to dereference nil.
2009-05-14 11:19:28 +00:00
Richard Fairhurst
add2d223a6
Apply #1824 .
2009-05-14 08:38:32 +00:00
Shaun McDonald
7331f82bce
Remove a rescue, which is stopping a more detailed error message being returned to the user.
2009-05-13 23:42:18 +00:00
Richard Fairhurst
ced42cf101
always set new node id when updating/deleting (to be read in conjunction with zere's patch)
2009-05-13 19:23:59 +00:00
Matt Amos
d073d9bc75
Added a consistency check that both ids are valid and match. Fixed diff upload code where this wasn't being set.
2009-05-13 19:21:04 +00:00
Shaun McDonald
807070f818
Actually mark a trace as being public based on the saved preference, rather than simply ignoring the saved preference.
2009-05-12 15:29:27 +00:00
Matt Amos
ed0a1658df
Removed updatetimeout method, as it isn't needed any more.
2009-05-12 14:38:22 +00:00
Matt Amos
1ceb4ab9ba
Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags.
2009-05-12 13:54:37 +00:00
Tom Hughes
ed68d524de
Use a local lookup table for country bounding boxes rather than relying
...
on geonames.org being able to do it in a reasonable time.
2009-05-11 16:50:09 +00:00
Matt Amos
535bc8f1d8
disabling test case because i don't think there is a fix with the current version of composite_primary_keys.
2009-05-11 16:17:36 +00:00