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
Shaun McDonald
c7f134943c
Use a regular expression for the test, since it can give one of two responses based on the order in the db.
2009-05-11 15:50:03 +00:00
Matt Amos
43988beec3
A better optimisation, as suggested by TomH.
2009-05-11 15:16:36 +00:00
Matt Amos
9481a79e71
Added optimisation for way checking. Same method as for relations.
2009-05-11 14:34:04 +00:00
Tom Hughes
4d62aea5ec
Destroy OL objects which use the dataLayer before we destroy the layer
...
or we will get errors which stop the rest of stopBrowse() executing.
2009-05-11 10:31:34 +00:00
Tom Hughes
3a8a2ebb1a
Add an internal geocoder for lat/lon positions.
2009-05-10 11:57:10 +00:00
Matt Amos
b7f306a437
Fixed problem where tag lengths were generating a 422 error with no message. They now generate a 400 error with a meaningful message.
2009-05-10 00:33:55 +00:00
Tom Hughes
69c2400997
Add a warning about whitelisting webmaster@openstreetmap.org in antispam
...
systems.
2009-05-09 16:46:36 +00:00
Tom Hughes
d6e605414d
Set a custom return path so that we can ignore bounces.
2009-05-09 12:17:10 +00:00
Richard Fairhurst
e1005ce62f
a few small fixes
2009-05-09 10:00:40 +00:00