Commit graph

119 commits

Author SHA1 Message Date
Shaun McDonald
d3dc973376 Move the ActiveRecord::RecordNotFound to the block, so that it catches the not found in line 327, when a nonexistant way id is searched for. 2009-01-14 00:17:42 +00:00
Richard Fairhurst
8e394b1625 small versioning fix (plus history rework in progress) 2009-01-11 17:09:43 +00:00
Richard Fairhurst
2b8bde9055 Potlatch for API 0.6 now saving ways happily with node versioning... I think 2008-12-18 00:32:02 +00:00
Richard Fairhurst
b823e9fccc some more putway fixes - this actually creates new ways with 0.6 Potlatch now 2008-12-17 00:30:29 +00:00
Shaun McDonald
d646530206 Fix UTF-8 encoding error char in source file that RichardF introduced 2008-12-16 16:40:59 +00:00
Richard Fairhurst
ff01f76293 bit more putway stuff 2008-12-16 00:40:04 +00:00
Richard Fairhurst
40647c53df yet more rewriting of putway... 2008-12-16 00:23:11 +00:00
Shaun McDonald
b1445ab023 Fix the transactions, need to set anything that will be returned to nil outside the transaction, otherwise it won't be available after the end of the transaction, when it is returned. 2008-12-15 19:20:24 +00:00
Shaun McDonald
e5674abd2c bug fix. Adding some transactions to amf controller, and adding the missing version to putway method signature. 2008-12-15 18:57:12 +00:00
Shaun McDonald
541c24b23d capture the too many way nodes error, and give the user an error message 2008-12-12 11:24:40 +00:00
Shaun McDonald
b051dd11af Making amf controller act more like the xml apis 2008-12-11 17:22:15 +00:00
Shaun McDonald
8bf0a3197c some more progress towards making amf_controller do version checking of nodes before deleting them 2008-12-11 10:38:36 +00:00
Shaun McDonald
eafcf91ceb some further progress to amf controller checking the version numbers. 2008-12-10 18:07:30 +00:00
Matt Amos
aeaf2d2d20 Added missing version to the pure rails AMF controller. More stringent tests on whichways. 2008-12-10 14:31:07 +00:00
Matt Amos
3ed9ac21b5 Some fixes to the rails part of the AMF controller and associated test. 2008-12-10 13:23:21 +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
c0b4c1b905 Adding some amf create poi tests. Minor bugfix tweaks to the amf controller 2008-12-08 14:22:34 +00:00
Shaun McDonald
ec97c63e5c Fix for the refactoring commited yesterday, based on review by Dave Stubbs 2008-12-05 11:08:58 +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
Richard Fairhurst
ecefee485b various fixes/enhancements, including a couple to the 0.5 version 2008-11-25 00:15:30 +00:00
Shaun McDonald
e2c0e51e45 Closes #1350 through updating amf_controller to use the newer closed_at method of determining whether a changeset is closed. Richard please check the rest of the amf controller for more things that may reference the open field that is no longer available. Use is_open? to determine if a changeset is open. Fix indentation in amf controller. Fix minor bug in the links to changesets in the data brower. 2008-11-20 21:23:44 +00:00
Richard Fairhurst
6690a9a09b changeset comments and a couple of other small fixes 2008-11-16 13:30:02 +00:00
Richard Fairhurst
0a57413d3e finished Rails-friendly amf_controller. Note that this requires Tom's patched composite_primary_keys to work unless you tell Potlatch to use SQL reads 2008-11-14 17:36:38 +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
2aa3daf0e0 amf get*_history tests and related fixes 2008-11-09 18:48:16 +00:00
Dave Stubbs
436470b057 a few more amf tests and associated bug fixes 2008-11-09 17:41:38 +00:00
Dave Stubbs
eebadd141a 1st amf_controller tests, and some basic sanity check fixes 2008-11-08 19:41:29 +00:00
Richard Fairhurst
7aeead9175 Potlatch 0.10f 2008-10-23 08:42:07 +00:00
Tom Hughes
3c24aa0a9b Make adding relations work again. Fix from RichardF. 2008-10-13 12:46:00 +00:00
Richard Fairhurst
caa20ccc40 Potlatch 0.10e 2008-10-12 23:11:37 +00:00
Richard Fairhurst
97726826e1 Potlatch 0.10d 2008-10-05 00:21:35 +00:00
Richard Fairhurst
b0f0a2627d Potlatch 0.10b 2008-07-31 22:48:12 +00:00
Richard Fairhurst
35ace2607b Potlatch 0.10a 2008-07-29 00:33:33 +00:00
Tom Hughes
d6e047d7d4 Optimise finding of relations, partially reversing change #8443 but in
a more rails like way.
2008-07-16 23:42:59 +00:00
Tom Hughes
66b0dd135e Tidy up AMF controller and optimise a few rails things. 2008-07-16 23:10:32 +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
Tom Hughes
def60c1935 Railsify relation selection (aka ripping out the f***in SQL). 2008-06-24 23:42:39 +00:00
Richard Fairhurst
550ebc6c82 trap for #971 until I can work out why it's doing it 2008-06-11 14:45:36 +00:00
Richard Fairhurst
889ee9e368 fix revert to cope with moved nodes properly (OH NOES I updated some SQL) 2008-05-16 10:32:53 +00:00
Richard Fairhurst
111b865116 Potlatch 0.8c 2008-04-30 22:59:30 +00:00
Steve Coast
1f857565a6 more madness 2008-03-21 20:21:49 +00:00
Richard Fairhurst
d2c9ea6cf0 fix problem with blank areas throwing a 500 2008-03-21 19:49:09 +00:00
Richard Fairhurst
112950ca3a various relations fixes 2008-03-21 19:00:39 +00:00
Richard Fairhurst
4a5fb3b46e restore Steve's deleteway stuff 2008-03-19 10:39:50 +00:00
Richard Fairhurst
ae142c554b Potlatch 0.8 - be afraid, be very, very afraid 2008-03-19 01:03:51 +00:00
Steve Coast
d1f2b4ece9 remove deleteway logic from amf_controller (yay!) TomH: check with RichardF this is sane before deploying. worksforme. 2008-02-23 16:05:45 +00:00
Richard Fairhurst
588a65c2b2 Reject 0/1-length ways. 2008-02-19 18:06:26 +00:00
Richard Fairhurst
dd396a773e unbreak undelete 2008-02-06 22:43:14 +00:00
Tom Hughes
276f165f3f Explain why we don't include the nodes in the way load. 2008-02-03 16:31:50 +00:00