Commit graph

122 commits

Author SHA1 Message Date
Richard Fairhurst
e827a04607 further work on 0.6 history (not quite complete yet) 2009-02-25 01:14:19 +00:00
Matt Amos
5143fbcd5b Test and fix for #1567, for teh betterer osmChange compliance. 2009-02-08 16:54:28 +00:00
Matt Amos
12b779f0b4 Test and fix for issue #1568. Wasn't testing for end element in the right place. 2009-02-08 16:33:48 +00:00
Matt Amos
c54471ee33 Fix for #1565. Added a couple of tests and fixed another issue with re-used placeholder IDs. 2009-02-08 08:28:01 +00:00
Frederik Ramm
509832c5b3 splitting and joining tags is gone for good in 0.6 2009-02-03 00:57:19 +00:00
Matt Amos
1ffb5c1502 Moved changeset consistency checks to library code. 2008-11-26 12:56:42 +00:00
Shaun McDonald
0ff1214f86 Make the role in relations optional, with a test to make sure it is. Also start moving the errors reading the xml to exceptions, thus making it possible to give meaningful error messages, when bad xml is sent (More work is required on this including doing the same for nodes and ways). With the latest gems update it seems that the lib xml handling was broken, using the newer method. Adding the content type for the exceptions. 2008-11-24 18:55:24 +00:00
Matt Amos
783528830a Fixed bug in changeset idle timeout. Fixed another with a spurious require. 2008-11-21 12:53:09 +00:00
Matt Amos
495bd7f1f0 Made user input parsing more robust in changeset query method. Added tests. 2008-11-17 15:30:46 +00:00
Matt Amos
28839fd150 Fixed some bugs in changeset query code. Added more test cases. 2008-11-17 14:32:15 +00:00
Andy Allan
d717f2d02a Postgres adapter, and make migration 022 db-agnostic 2008-11-10 19:14:00 +00:00
Richard Fairhurst
3065af398d 0.6-friendly Potlatch (work in progress). DO NOT SET POTLATCH_USE_SQL=false as it won't work 2008-11-09 23:50:03 +00:00
Andy Allan
4adeeb51ad remove indexes before renaming tables (some dbs have database-level index namespaces) and unsigned is also a mysqlism 2008-11-09 19:30:22 +00:00
Andy Allan
051f20e277 migrations: add specific method for nodes/ways/relations enum column 2008-11-09 16:11:42 +00:00
Frederik Ramm
b64fc35140 make diff upload result a "diffResult" rather than "osm" document 2008-11-09 11:30:03 +00:00
Frederik Ramm
79420631ce fix version number return for "modify" sections of diff uploads 2008-11-08 19:43:31 +00:00
Andy Allan
550ce43250 move fulltext indexes to monkeypatch, since not all dbs have a fulltext analogue 2008-11-08 18:44:38 +00:00
Andy Allan
91374368fa Move db engine changing into db adaptor monkeypatch 2008-11-08 18:04:36 +00:00
Andy Allan
c19d1b406b last of the auto_increments removed from the migrations 2008-11-08 17:39:16 +00:00
Andy Allan
fc9046ce6f Moving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though 2008-11-08 16:47:02 +00:00
Matt Amos
22005a38a6 Error message for version mismatch is now more informative. 2008-11-08 14:07:34 +00:00
Andy Allan
e598ee220f Change bigint id column to monkeypatching-friendly syntax 2008-11-08 11:01:39 +00:00
Matt Amos
02fbcf5f06 Added first attempt at bounding box support in changesets and tests for the same. 2008-11-04 15:52:22 +00:00
Shaun McDonald
183ffc7864 Adding an extra test to make sure that the correct response is returned when an invalid changeset action is uploaded. 2008-11-03 18:54:19 +00:00
Shaun McDonald
635daf1773 Adding a restriction to prevent more than 2000 nodes to be added to any way. Tests still need to be written. Capabilities api request also updated. 2008-11-03 00:12:18 +00:00
Matt Amos
32b280eb8d Added custom validator for UTF-8 strings. 2008-10-29 16:27:15 +00:00
Shaun McDonald
b45dd63283 cover the other extreme in the map bounary sanitizeation. Ading some documentation, which is parsed when running rake doc:app. Fixing up a couple of tests. 2008-10-26 23:43:37 +00:00
Matt Amos
dc2a959037 Added tests for changeset upload code. Refactored diff reading code and put it into /lib. Changed the route of a changeset upload to explicitly refer to the changeset it applies to (i.e: resource). 2008-10-23 15:14:17 +00:00
Shaun McDonald
e13b35e0cb making it clearer when a test case fails, as to which test case it is that is failing. Adding some more bboxes for testing. 2008-10-21 14:28:52 +00:00
Shaun McDonald
3e9ceb0c38 more testing of the api. Changing the generator so that it is a constant to come in line with the server url and the api version. Adding tracepoints per page to the capabilities api call. Better error message for api call. 2008-10-19 07:09:04 +00:00
Matt Amos
b56f57ec43 Fixed up delete methods on nodes, ways and relations to return the new version number and added some more tests. 2008-10-14 14:27:12 +00:00
Shaun McDonald
fb5f39f19a Creating consistency check for creation of nodes, way and relations. Moving some creation code from the controller to the model, and adding error handling on create errors. 2008-10-13 15:39:21 +00:00
Shaun McDonald
b91b514cf2 moving the check consistency to it's own file so that checks will be able to be loaded into the way and relation models, without loading the node stuff. 2008-10-13 14:34:04 +00:00
Matt Amos
a2498928e4 Fixed node functional tests. A couple of changes to the old_node model and node controller for changesets. 2008-10-13 14:08:31 +00:00
Shaun McDonald
24b21e4a29 additional consistency checks. making the error message for the number of nodes use the configured number of nodes, rather than a hard coded number. minor improvements to the way controller functional tests. Not sure if they should be turned into integration tests. 2008-10-12 22:32:51 +00:00
Shaun McDonald
3d24694add moving the conistency checks for updates and deletes to library, hopefully got the updates and deletes working now. 2008-10-09 16:22:05 +00:00
Shaun McDonald
2b7a40069f adding the controller code to be able to get a specific version of a node, way or relation. Add some node checks on update. Some code indentation cleanup. 2008-10-08 18:03:41 +00:00
Shaun McDonald
e1b205913c Fix the data config, so that the development database is not the same as the test database. Make a good stab at getting the creates and updates for relations working, adding some new error exceptions. Some code indentation cleanup. 2008-10-08 15:42:42 +00:00
Shaun McDonald
d9e070e069 Doing a resync from mainline 8633:10895. There was one simple to resolve conflict on app/models/node.rb. Also moving the migrations for API0.6 to new sequence numbers since there was some new migrations added to mainline, where the migration numbers would conflict if not moved. 2008-09-25 15:06:05 +00:00
Tom Hughes
fb5f6bb4a2 Rework GPX import daemon to use libxml2 for speed. 2008-07-30 08:37:05 +00:00
Tom Hughes
c878da25cf Remote Potlatch projection routines as they are no longer needed. 2008-07-15 23:15:53 +00:00
Richard Fairhurst
62a1ec4748 Potlatch 0.10 2008-07-09 22:19:48 +00:00
Shaun McDonald
64a5e21f53 Fixing the resync that I had done wrong at the end of last week on the nodes. All unit tests now do work. More assertions added. Using a scaling factor as a constant, so that the nodes are stored in the db correctly. Using the same scaling factor in the georecord library, to make code more readable, and reduce errors. Removing duplicate code that is in the GeoRecord include library. 2008-07-07 14:20:27 +00:00
Shaun McDonald
5f8ab9e924 Merge changes from trunk 7673:8632. 2008-07-03 13:06:24 +00:00
Tom Hughes
def60c1935 Railsify relation selection (aka ripping out the f***in SQL). 2008-06-24 23:42:39 +00:00
Tom Hughes
cfc14f1ddc Make GeoRecord inject class methods correctly when included. 2008-06-22 15:22:13 +00:00
Tom Hughes
b72fedb162 Make the polymorphic relation association work properly. 2008-06-22 14:44:34 +00:00
Gabriel Ebner
e823ce2fc4 api06: Fix OSM::APIVersionMismatchError.render_opts 2008-05-13 12:32:43 +00:00
Gabriel Ebner
2ff2cdf63d api06: fix syntax errors. 2008-05-13 12:27:38 +00:00
Gabriel Ebner
7151fa05e4 api06: simplify exception handling and add exception handling to the diff
upload.
2008-05-13 12:15:06 +00:00