Commit graph

204 commits

Author SHA1 Message Date
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
Tom Hughes
02f768533d Don't preload nodes as it seem to break ways with duplicate nodes. 2008-02-03 16:28:02 +00:00
Tom Hughes
d04c6d6ccd Optimise the Potlatch whichways and getway calls a bit. 2008-02-03 12:56:25 +00:00
Richard Fairhurst
da76d64e93 Potlatch 0.7 2008-02-01 17:19:11 +00:00
Steve Coast
a855d20ba4 Most of a method to delete a way and all its nodes - but I'm waiting on splitting node tags out to their own table before finishing it. 2008-01-25 15:24:04 +00:00
Steve Coast
bbd769304c dont eager load tags (false primary key fucks all sorts of things up) and move delete way logic to model so that amf_controller can use it (plan is to do this with all of the methods. sigh.) 2008-01-25 14:32:45 +00:00
Steve Coast
63e0486ca1 Lots of documentation updates, plus split out potlatch libraries in to lib 2008-01-24 16:03:56 +00:00
Steve Coast
db33aa6ff6 begin rdoc documentation 2008-01-24 12:53:21 +00:00
Steve Coast
3bd92c1670 move potlatch presets to only be generated once, and allow pulling in way_tags in a way via a false primary key 2008-01-24 10:52:10 +00:00
Richard Fairhurst
bdf1b8823a few bits of tidying 2008-01-23 01:49:22 +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
Steve Coast
90e72f05de retab amf controller, it was getting annoying 2008-01-22 12:10:17 +00:00
Richard Fairhurst
98ab46c046 document amf_controller types for SteveC 2008-01-22 00:54:37 +00:00
Richard Fairhurst
c38c7df6c1 comments 2008-01-21 16:07:39 +00:00
Richard Fairhurst
3eecc3ee5b 0.6c: bunch of minor improvements and bugfixes 2008-01-17 22:28:21 +00:00