Commit graph

47 commits

Author SHA1 Message Date
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
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
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
Matt Amos
cf24a5a3ee Added a bunch more tests on the API 0.6. Fixed node/way/relation from_xml code to disallow duplicate tag keys. 2008-10-13 17:50:15 +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
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
328d47e506 Fixing a bug in my foreign keys. I can now upload and download nodes and ways using JOSM in the new API. 2008-10-03 17:09:58 +00:00
Shaun McDonald
40414cf324 changing the belongs_to and has_many items in the models to reflect the new foriegn keys in the db and the fact that a (old)node/way/relation now belong to a changeset, which in turn has a user. 2008-09-30 18:21:56 +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
34d9360bee Minor tidyups. 2008-07-15 18:23:00 +00:00
Richard Fairhurst
62a1ec4748 Potlatch 0.10 2008-07-09 22:19:48 +00:00
Tom Hughes
700da2b347 Tidy up a bit after shaun's merge... 2008-07-07 16:16:05 +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
Tom Hughes
def60c1935 Railsify relation selection (aka ripping out the f***in SQL). 2008-06-24 23:42:39 +00:00
Tom Hughes
b72fedb162 Make the polymorphic relation association work properly. 2008-06-22 14:44:34 +00:00
Tom Hughes
b527d27674 Use a polymorphic association to model relation members and add
associations for upward links from objects to relations that they
are a part of.
2008-06-21 17:38:17 +00:00
Tom Hughes
962573431e Move in_world? to GeoRecord model and correct comment. 2008-02-03 15:38:44 +00:00
Tom Hughes
d04c6d6ccd Optimise the Potlatch whichways and getway calls a bit. 2008-02-03 12:56:25 +00:00
Xin Zheng
e7087af6bc minor changes 2008-01-25 13:57:42 +00:00
Steve Coast
9328e84ba1 Some node documentation 2008-01-24 13:04:04 +00:00
Steve Coast
1c6ac719e6 replace whichways with rails-friendly code 2008-01-22 16:44:17 +00:00
Steve Coast
ddd5b4cf19 make amf_controller use rails objects, and stuff, in the getway method. You need to install the multipart keys plugin now, see the README. 2008-01-22 15:00:54 +00:00
Tom Hughes
9ec8ef0220 Add escaping of semicolon and equals in node tags.
Based on patch from Dave Stubbs.
2007-11-21 13:30:55 +00:00
Tom Hughes
dd33fc633c Factor out common code for models which deal with geographic points
into a base class.
2007-10-10 23:00:25 +00:00
Tom Hughes
df31fe13a5 Use quadtiling for the node tables. 2007-09-21 13:43:43 +00:00
Tom Hughes
0975858cdb Allow exceptions processing node and segment requests to propagate and
be handled by the default handler so they are logged.
2007-08-31 10:11:15 +00:00
Tom Hughes
fcc485725d Make negative caching of users work. 2007-06-27 18:16:04 +00:00
Tom Hughes
c11d961f62 Close a number of holes in the API by making it validate changes
more carefully.
2007-06-19 23:20:39 +00:00
Tom Hughes
7ab154a0ae Return usernames correctly. 2007-06-19 11:23:12 +00:00
Steve Coast
6ccf25b347 various fixes 2007-05-09 17:31:11 +00:00
Steve Coast
89e976c6e5 updates from hacking day 2007-05-06 10:08:00 +00:00
Steve Coast
f1189ae115 close 394 2007-04-07 13:08:46 +00:00
Steve Coast
668f8020cc simplify grabbing of a xml base doc 2007-04-07 12:43:48 +00:00
Steve Coast
2f55a3f0a8 API returns user info if public 2007-04-07 12:17:11 +00:00
Dan Moore
d07277efba API 0.4 Updates - work on traces pages + pagination, edit tab, some API testing
* traces - added some routes, replicated data access / pagination, but presentation and pending file control not complete
* edit - setup so that applet can be loaded + token authorisation enabled
* API - tests out ok against applet, but had to change segment-node associations
* misc - gems version required upgraded to 1.2.3 (latest stable rails version), changed some find_first to find(:first... calls
2007-03-23 23:13:19 +00:00
Immanuel Scholz
1ecf13d846 - fixed map api call in version 0.4. 2007-01-13 04:03:46 +00:00
Steve Coast
2803612d9d various map API rails stuff 2006-11-27 15:06:34 +00:00
Steve Coast
6b73747271 bits to get map call return nodes and segments 2006-11-27 14:14:43 +00:00
Steve Coast
59cc0015f5 various things 2006-11-17 19:56:54 +00:00
Steve Coast
613e88c4a8 rails updates 2006-08-26 16:34:52 +00:00
Steve Coast
8a2db368f1 nodes done, segment skelaton 2006-08-24 18:55:12 +00:00
Steve Coast
85f197b6df bit nicer 2006-08-19 08:11:33 +00:00
Steve Coast
37bd2971b4 more rails updates 2006-08-01 17:50:10 +00:00
Steve Coast
d2877982a2 more skelaton stuff 2006-07-29 10:09:52 +00:00