Commit graph

1757 commits

Author SHA1 Message Date
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
Tom Hughes
f7cbff9a5a Move geocoder constants to application configuration to avoid test warnings. 2009-05-08 18:21:39 +00:00
Tom Hughes
d58d7e30ea Add gem specification file to stop rake test complaining. 2009-05-08 18:12:30 +00:00
Shaun McDonald
62f999cd83 Updating for rails 2.2.2 2009-05-08 18:04:08 +00:00
Tom Hughes
3a0f4d30cf Patch composite_primary_keys to work around issue when one component of
a composite key is called "id".
2009-05-08 17:56:12 +00:00
Tom Hughes
a69f380fa5 Add version 2.2.2 of composite_primary_keys. 2009-05-08 17:54:49 +00:00
Shaun McDonald
9156448ad6 fix the user unit test so that it doesn't use a depricated method in rails 2.2.2 2009-05-08 17:26:23 +00:00
Tom Hughes
0e16b72887 Include CC-BY-SA in attribution. 2009-05-08 15:05:57 +00:00
Shaun McDonald
a41f1b297b No need to define a constand for the appconfig var. Removes a warning when running under rails 2.2.2 2009-05-08 14:20:26 +00:00
Shaun McDonald
e84dd63b16 more changeset tests. No need for @ vars in the tests 2009-05-08 13:12:53 +00:00
Tom Hughes
f9fee045ac Add missing requires for the migration helper core. 2009-05-08 08:12:26 +00:00
Tom Hughes
6785911619 Fix bogus casts - lat/lon are signed. 2009-05-08 08:10:28 +00:00
Tom Hughes
55b1ba32e5 Add postgres implementation of tile_for_point function. 2009-05-08 08:01:33 +00:00
Tom Hughes
a0a6dd3619 Add yet more foreign keys. 2009-05-08 00:03:40 +00:00
Thomas Wood
cd4fb9d44c One last commit tonight :P 2009-05-07 23:02:46 +00:00
Thomas Wood
86caeb3360 Fix the test I just broke... 2009-05-07 22:58:32 +00:00
Thomas Wood
14fdccc0d1 Commit bits of missing css that were required in previous upload. 2009-05-07 22:52:02 +00:00
Thomas Wood
d6b36b5752 De-duplicate some of the changeset stuff out to a new partial view.
Add css hooks for upcoming fix for #1734
2009-05-07 22:48:14 +00:00
Shaun McDonald
98a76339b8 Some more tests 2009-05-07 17:57:59 +00:00
Tom Hughes
3404fd5bbe Add foreign key constraints for users. 2009-05-07 17:54:52 +00:00
Shaun McDonald
6327e3e690 fix typo which meant that it was testing the node twice, rather than the node then the node history 2009-05-07 14:10:17 +00:00
Thomas Wood
c273b4b1fa Tests for PreconditionFailed error messages.
Change to relation.rb to bring element selection in-line with that of way, so to return nil to be caught later, rather than raise an error.
Change to way.rb to clarify which way on diff upload.
2009-05-06 21:08:50 +00:00
Thomas Wood
d7fd3fb6e5 One final (I've checked the rest now!) mis-referenced id, plus make the error msg simpler. 2009-05-06 19:55:25 +00:00
Shaun McDonald
e509850554 fixing the tests I broke earlier due to the fixture changes 2009-05-06 17:56:10 +00:00
Shaun McDonald
d10931effa More trace tests 2009-05-06 14:58:48 +00:00
Matt Amos
30bbca0f3b Potential fix for slow relation precondition checking based on Frederik's suggestion on the list to only check new members. 2009-05-06 10:35:39 +00:00
Shaun McDonald
589e5835c8 some tests for the site and export controllers 2009-05-05 18:31:37 +00:00
Shaun McDonald
d0e16cdb6c be a bit more specific when a way is a member of a relation. Actually return an error message when a relation precondition fails. Remove a debug statement. 2009-05-05 17:07:06 +00:00
Richard Fairhurst
8696d144ad Potlatch 0.11b 2009-05-04 23:37:06 +00:00
Thomas Wood
c18d684dda Sort the tags for the databrowser output. 2009-05-04 22:42:07 +00:00
Thomas Wood
1d48f48827 Fix another mis-referenced error message id! 2009-05-02 18:28:39 +00:00