Matt Amos
|
3e9b6845d3
|
Fixed 'raw' raises by converting them to the appropriate OSM::APIError type. Made the error messages for placeholder fixing more informative. Added tests for these.
|
2009-04-29 10:07:35 +00:00 |
|
Tom Hughes
|
bf31791f65
|
Add a changeset cache to stop us looking up the same changeset over
and over again when processing a map call.
|
2009-04-28 13:40:30 +00:00 |
|
Shaun McDonald
|
0b6d9ce877
|
Improve the node/way/relation already deleted error message, and get rid bug in way model with missing new in exception
|
2009-04-27 11:49:56 +00:00 |
|
Shaun McDonald
|
b7596f7fbc
|
Fix typo of missing .new for some of the errors. Tests are useful.
|
2009-04-26 20:56:58 +00:00 |
|
Matt Amos
|
eed6fdf7db
|
Fixed bug in exception creation.
|
2009-04-25 15:20:48 +00:00 |
|
Matt Amos
|
6c66507427
|
Patching better 412 error messages from mis-commit on old api06 branch.
|
2009-04-24 10:08:15 +00:00 |
|
Matt Amos
|
9ff7ea8d71
|
Added better error messages on 412 precondition failed.
|
2009-04-23 18:39:36 +00:00 |
|
Tom Hughes
|
ff9f596cea
|
Arrays have a length method, not a count method.
|
2009-04-21 11:36:41 +00:00 |
|
Shaun McDonald
|
08bd1688ee
|
Railsify the relation member model, type attribute, by putting it into class case, rather than lower case. Requires reload of postgres databases or manual change to the enum. Fixes the databrowser on postgres, however affects the rest of the codebase.
|
2009-04-15 14:49:21 +00:00 |
|
Matt Amos
|
afcb345014
|
Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year.
|
2009-03-29 01:31:04 +00:00 |
|
Matt Amos
|
be75a1504f
|
Fixed a couple of bugs with changeset bounding box calculation when modifying or deleting.
|
2009-03-27 12:22:23 +00:00 |
|
Thomas Wood
|
6167bb6502
|
Shut up libxml's "Must specify a string with one or more characters" error on relation and way models.
|
2009-03-23 21:52:32 +00:00 |
|
Tom Hughes
|
c8ee135104
|
Merge 12304:14009 from trunk.
|
2009-03-08 13:02:37 +00:00 |
|
Tom Hughes
|
07c1cd6b98
|
Update to use libxml 1.0.0 gem.
|
2009-03-08 11:34:46 +00:00 |
|
Shaun McDonald
|
b051dd11af
|
Making amf controller act more like the xml apis
|
2008-12-11 17:22:15 +00:00 |
|
Shaun McDonald
|
b7335940e2
|
Some improvements for the XML parsing, as there are somethings that we don't need, like timestamp and visibility, thus hopefully bringing a speedup in the xml parsing. Some more AMF controller fixes, plenty more to go though.
|
2008-12-09 18:44:11 +00:00 |
|
Shaun McDonald
|
e9527b363d
|
Refactoring the amf controller, and all models so that save_with_history! is now private. Everyone should use create_with_history, delete_with_history, and update_from instead. Also gets the amf controller to do version checks in the node/way/relation models. Needs checked. This breaks Potlatch until #1376 is fixed.
|
2008-12-04 17:30:17 +00:00 |
|
Shaun McDonald
|
e989b1a880
|
ensure that uploads that don't supply a lat and lon for a node. Adding related test and fixing other tests.
|
2008-12-01 18:32:54 +00:00 |
|
Shaun McDonald
|
6e98e324e5
|
better handling of duplicate tags. Extra validation in the tests.
|
2008-11-28 17:38:23 +00:00 |
|
Matt Amos
|
299b671522
|
Moved transaction boundary to cover used-by tests on deletion so that the database can help prevent race conditions.
|
2008-11-26 14:49:56 +00:00 |
|
Shaun McDonald
|
1375095343
|
More model validations. Fixing one test.
|
2008-11-25 17:23:47 +00:00 |
|
Matt Amos
|
a90be5e69a
|
Migration to add close-time to changesets. This replaces the boolean 'open' attribute. Added checks to ensure that the maximum lifetime and number of changes in a changeset are enforced. Added some tests.
|
2008-11-17 19:00:01 +00:00 |
|
Shaun McDonald
|
c8b70c1c72
|
Adding some more unit test stubs that need filling out. Adding changeset tags fixture. Indentation fix in way model.
|
2008-11-14 02:06:04 +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 |
|
Dave Stubbs
|
322d293007
|
update nodes/ways/relation XML to include user id as well as display name
|
2008-11-09 16:43:09 +00:00 |
|
Frederik Ramm
|
5ff5bf60e5
|
mini fix
|
2008-11-09 12:06:05 +00:00 |
|
Andy Allan
|
7058d836f7
|
use boolean flags when using boolean columns
|
2008-11-07 13:24:18 +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
|
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
|
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
|
6339473cb7
|
Added tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed ways fixture where most recent history != current.
|
2008-10-21 10:52:52 +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
|
9e1946b283
|
now you will actually save the changeset on updating ways. Showing the changeset in the data browser detail.
|
2008-10-13 17:05:52 +00:00 |
|
Matt Amos
|
3549d8900f
|
All API 0.6 functional tests now pass.
|
2008-10-13 15:46:22 +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
|
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
|
6fa8647855
|
Rename unique_nodes to unshared_node_ids to make it's purpose a bit clearer
and rework it to be a bit tidier.
|
2008-07-15 18:18:37 +00:00 |
|
Richard Fairhurst
|
62a1ec4748
|
Potlatch 0.10
|
2008-07-09 22:19:48 +00:00 |
|
Shaun McDonald
|
5f8ab9e924
|
Merge changes from trunk 7673:8632.
|
2008-07-03 13:06:24 +00:00 |
|
Tom Hughes
|
97aefa23d0
|
Merge data browser branch to trunk.
|
2008-06-27 23:09:05 +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
|
398d5fa329
|
Improve the layout of the object browser views.
|
2008-06-24 16:44:45 +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 |
|
Gabriel Ebner
|
ea1961e3ce
|
api06: s/delete_with_relations_and_history/delete_with_history/g
|
2008-05-12 21:10:38 +00:00 |
|