Commit graph

976 commits

Author SHA1 Message Date
Gabriel Ebner
cddded9569 api06: Fix typo. 2008-05-12 21:11:51 +00:00
Gabriel Ebner
ea1961e3ce api06: s/delete_with_relations_and_history/delete_with_history/g 2008-05-12 21:10:38 +00:00
Gabriel Ebner
86b4d1bc2c api06: Move version-checking into the models, raising an exception on mismatch
(still not implemented for delete requests though.)
2008-05-12 21:05:11 +00:00
Gabriel Ebner
ec916b7429 api06: Make diff uploading work again. 2008-05-12 20:43:35 +00:00
Christopher Schmidt
697449d6f1 node.tags is now (apparently) the same as tags_as_hash. 2008-05-12 01:22:04 +00:00
Christopher Schmidt
322f3d7576 make error_message spit out the message text to the user as well as
putting it in the header.
2008-05-11 23:12:54 +00:00
Christopher Schmidt
97cb1fd7fa undo composite keys change on old_ndoe 2008-05-11 23:02:06 +00:00
Christopher Schmidt
df11677afd from_xml sets a version on nodes 2008-05-11 22:27:40 +00:00
Christopher Schmidt
e9b86e914d add to_xml method for oldnode 2008-05-11 22:26:46 +00:00
Christopher Schmidt
604f9ddd46 spit out whether the changeset is open in the xml 2008-05-11 22:26:11 +00:00
Christopher Schmidt
618908319c prevent update of any object without providing the correct/current
version as part of the XML. This affects update-only at this time: 
DELETE doesn't work the same way because we don't provide the data as 
part of a DELETE
2008-05-11 21:49:33 +00:00
Christopher Schmidt
6aa9ec599f Make capabilities report the current version for from/to version
identifier
2008-05-11 21:23:38 +00:00
Christopher Schmidt
412472212b change 'no nodes' response to use API_VERSION in output 2008-05-11 21:21:30 +00:00
Christopher Schmidt
6f1aad0d04 add support for closing changesets 2008-05-11 21:18:42 +00:00
Christopher Schmidt
9cbc370a7e add FIXME FIXME FIXME for serializing changes in a changeset 2008-05-11 20:07:47 +00:00
Christopher Schmidt
e48cbc6a5f Add support for accessing changesets as XML through the API via the
changeset controller "read" method
2008-05-11 20:03:17 +00:00
Christopher Schmidt
7a216c0ce6 Make edits return version numbers as plain text strings 2008-05-11 19:47:19 +00:00
Gabriel Ebner
013ef53c97 api06: Fix normal way and relation uploading (i.e. not as part of a diff).
(I'm sorry that I couldn't commit it earlier, but I didn't have access to an
internet connection until now.)
2008-05-05 22:41:32 +00:00
Gabriel Ebner
e7c550cf3f api06: Diff upload works now (but no integration with changesets whatsoever as
of now)
2008-05-04 15:56:10 +00:00
Gabriel Ebner
6ebb7045fe api06: Fix diff uploading (still doesn't give a useful response):
Modification and deletion works fine now.  Rollback also works apparently.
Just auto increment doesn't get reset.
2008-05-04 15:16:58 +00:00
Tom Hughes
e7e5ae7aaa The current_way_nodes table is already an InnoDB table. 2008-05-04 14:50:53 +00:00
Gabriel Ebner
1bbc523e0f api06: Fix diff uploading (creation works fine now) 2008-05-04 14:37:12 +00:00
Gabriel Ebner
3d6e1c67fb api06: Preliminary support for diff uploading. This will not return anything
useful and the code will need some heavy refactoring.
2008-05-04 13:52:43 +00:00
Gabriel Ebner
0499559f79 api06: Fix tag parsing in the node-tags-normalization helper, as suggested by
Jon Burgess.
2008-05-04 13:51:45 +00:00
Gabriel Ebner
db52fe6923 api06: Use 2-byte ints and check malloc return value. 2008-05-04 12:03:05 +00:00
Gabriel Ebner
2b596387d2 api06: Fix bounds check. 2008-05-04 11:50:12 +00:00
Gabriel Ebner
e0e5423fb9 api06: 013_populate_node_tags_and_remove_helper: Initialize memory. 2008-05-04 11:44:36 +00:00
Frederik Ramm
7b2c9cd774 buffer overrun fix 2008-05-04 11:43:04 +00:00
Tom Hughes
ead1817e11 Add timestamp indexes to current_ways and current_relations. 2008-05-04 11:33:09 +00:00
Tom Hughes
0ef056ffbc Stick with rails 2.0.1... 2008-05-04 11:32:49 +00:00
Tom Hughes
cf304fe60f Merge 7649:7673 from trunk. 2008-05-04 11:26:36 +00:00
Tom Hughes
02efd7ba4a Go back to using user_id+k as the primary key for user preferences but
actually using the composite primary key extension this time so that it
really works.

Also stop update_one tring to render a non-existent view, and add a
delete_one method to allow preferences to be deleted.
2008-05-04 11:18:38 +00:00
Gabriel Ebner
adcaeeb90b api06: Move add-changeset migr. to no. 16. 2008-05-04 10:47:39 +00:00
Gabriel Ebner
5ed2cbce02 api06: Merge changesets code from Frederik. 2008-05-04 10:45:47 +00:00
Frederik Ramm
8c5638d696 initial changeset support 2008-05-04 10:41:42 +00:00
Tom Hughes
921518274f When adding new primary keys, drop the old indexes which are no longer
needed as they are a prefix of the new primary key.
2008-05-04 10:35:59 +00:00
Gabriel Ebner
9274a6010a api06: Fix the version-numbers-on-current-tables migration: We want the rows
in the current table to have the same version number as the latest one in the
history table (the latest version is kept in both the current and the history
tables.)
2008-05-04 10:04:07 +00:00
Gabriel Ebner
bcbf417796 api06: Return version ids in XML responses. 2008-05-04 10:01:23 +00:00
Gabriel Ebner
9f177a7a1a Rename split_node_tags branch to api06. 2008-05-04 09:14:41 +00:00
Gabriel Ebner
6c31dbaaec split_node_tags: Remove old unused files. 2008-05-04 09:04:40 +00:00
Gabriel Ebner
4424cd5b94 split_node_tags: Merge changes in main branch up to r7649. 2008-05-04 08:31:39 +00:00
Gabriel Ebner
ba01b66242 split_node_tags: Implement key constraints. 2008-05-04 08:25:29 +00:00
Gabriel Ebner
71e390bf31 split_node_tags: Forgot to migrate current_way_tags to InnoDB. 2008-05-03 16:40:51 +00:00
Gabriel Ebner
de90f11f53 split_node_tags: Remove the left-over pre-merge files. 2008-05-03 16:28:50 +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
Nick Black
1a6230fb25 merged node and old node models for normalised node tags 2008-05-03 16:06:43 +00:00
Nick Black
2660ce1868 node models for normalised node tags - pre merge 2008-05-03 16:01:55 +00:00
Gabriel Ebner
e15fa25639 rails_port: fix migration to create a primary key with auto increment (don't
know if that will actually generate valid keys if there is already data in the
table.)
2008-05-03 14:56:43 +00:00
Steve Coast
a6b8346c18 fix migration to remove original stupid index hopefully 2008-05-03 14:45:15 +00:00
Nick Black
b214158d99 adds a temporary old_node object for use during migration 2008-05-03 14:32:36 +00:00