Simon Legner
413baecf6b
Refactor generation of object metadata in API calls
...
Factor out duplicate from the object models into common code.
2013-12-04 00:09:52 +00:00
Tom Hughes
b92a2de9ec
Use changeset and user caches in Changeset#download
2013-04-01 14:18:21 +01:00
Matt Amos
c8971a545c
Removed user checks from to_xml_node, as these should already be
...
handled at the controller level.
2012-04-05 13:53:48 +01:00
Matt Amos
59280377bf
Fixed redaction attribute on old nodes and ways, added same
...
functionality to relations.
2012-04-05 13:53:44 +01:00
Matt Amos
eca8f6e849
Used unredacted
scope rather than explicit SQL
2012-04-05 13:52:04 +01:00
Matt Amos
7c2ca3efb1
Fixed AMF controller methods to hide redacted nodes
2012-04-05 13:50:11 +01:00
Matt Amos
990f3eba40
Altered old_way stuff to be Railsy like old_node is now
2012-04-05 13:49:43 +01:00
Kai Krueger
72e59b49fa
Copy the redaction code from nodes to ways
2012-04-05 13:49:39 +01:00
Matt Amos
67dd9e4c9d
Adding first cut of Redactions support
...
Redactions support hiding historical versions of elements and
collecting meta-data about that action together.
2012-04-05 13:46:36 +01:00
Tom Hughes
5a8c4faf3e
Replace deprecated methods with modern equivalents
2012-02-15 17:48:17 +00:00
Tom Hughes
5a98d6e4f1
Spell way_id correctly
2011-11-17 11:33:48 +00:00
Tom Hughes
fc25c3d412
Rename all ID columns that aren't unique
...
Having a table with a column called ID that is only part of the
primary key really doesn't work as rails likes to treat ID as a
special name so it becomes impossible to assign to it or read it.
2011-11-14 09:42:52 +00:00
Tom Hughes
8ae5d94b2f
Update some more queries to use AREL in place of deprecated methods
2011-11-14 09:42:51 +00:00
Matt Amos
ce667bbbb1
Working around mysql bug...
2009-05-26 16:55:05 +00:00
Richard Fairhurst
dfa81462b8
history stuff should be working now (haha)
2009-02-25 22:04:22 +00:00
Richard Fairhurst
e827a04607
further work on 0.6 history (not quite complete yet)
2009-02-25 01:14:19 +00:00
Shaun McDonald
1375095343
More model validations. Fixing one test.
2008-11-25 17:23:47 +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
Matt Amos
b38b2c2d0f
Fixed xml method of old way model.
2008-10-13 14:38:32 +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
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
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
398d5fa329
Improve the layout of the object browser views.
2008-06-24 16:44:45 +00:00
Gabriel Ebner
bcbf417796
api06: Return version ids in XML responses.
2008-05-04 10:01:23 +00:00
Gabriel Ebner
6ae23bed90
split_node_tags:
...
- Use InnoDB.
- Put version column on the current_* tables.
- Use transactions (untested).
2008-05-03 16:27:49 +00:00
Tom Hughes
bee38e63a3
Make things work with multipart keys.
2008-01-23 09:53:35 +00:00
Frederik Ramm
8a69ef115a
way history needs to reference nodes with ref=... not id=...
2007-10-26 18:14:48 +00:00
Frederik Ramm
78b440ffc1
preliminary commit 0.5 API with relations / untested after entity-relation rename, some changes still in queue
2007-08-29 22:00:26 +00:00
Tom Hughes
4235bdf162
Bring some sort of sanity to sequence numbers for segments in a
...
way - now everything starts counting at one again and nothing starts
at zero.
2007-06-29 23:00:27 +00:00
Tom Hughes
b383517d2b
Fix the segs and tags methods for old_ways so they work.
2007-06-23 23:21:35 +00:00
Tom Hughes
bb4b682d0b
Fill in the visible flag correctly when updating the history for a way.
2007-06-22 15:34:24 +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
Steve Coast
2f55a3f0a8
API returns user info if public
2007-04-07 12:17:11 +00:00
Steve Coast
e799022131
rails API support for history of node/segment/way + various bugfixes and cleanups
2006-11-30 18:44:40 +00:00
Steve Coast
0638eefe22
way stuff, now creates correctly
2006-11-27 12:33:20 +00:00
Steve Coast
8de8ef4f6b
more way bits
2006-11-27 10:38:32 +00:00
Steve Coast
db1e02adb5
rails way bits
2006-11-27 10:35:10 +00:00
Steve Coast
222d31e435
way stuff
2006-08-26 20:49:16 +00:00