Commit graph

158 commits

Author SHA1 Message Date
Tom Hughes
2f3e23f6eb Move to version 2.3.2 of rails. 2009-06-04 08:08:24 +00:00
Tom Hughes
afb13ad93e Refactor potlatch error handling. 2009-06-03 16:51:33 +00:00
Richard Fairhurst
33e3d3d576 fix #1849 2009-05-25 10:19:50 +00:00
Richard Fairhurst
a3a792e137 adapt for larger fonts on Linux; fix indexing with renumbered nodes 2009-05-22 19:43:56 +00:00
Tom Hughes
912f708d62 Fix some comments to reflect reality. 2009-05-21 17:30:20 +00:00
Richard Fairhurst
8100be1e8d Potlatch 1.0 2009-05-21 00:30:33 +00:00
Tom Hughes
b38684e59e Add a global timeout that is applied to most API requests. 2009-05-20 22:18:36 +00:00
Tom Hughes
058d942c7c Log arguments to AMF read methods. 2009-05-20 13:24:59 +00:00
Richard Fairhurst
ced42cf101 always set new node id when updating/deleting (to be read in conjunction with zere's patch) 2009-05-13 19:23:59 +00:00
Matt Amos
ed0a1658df Removed updatetimeout method, as it isn't needed any more. 2009-05-12 14:38:22 +00:00
Matt Amos
1ceb4ab9ba Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags. 2009-05-12 13:54:37 +00:00
Richard Fairhurst
8696d144ad Potlatch 0.11b 2009-05-04 23:37:06 +00:00
Shaun McDonald
33d32bf737 We don't need an extra method for the amf controller for saving nodes, just catch the exception and do nothing with that exception. 2009-04-30 15:16:15 +00:00
Richard Fairhurst
41f85fb77d Potlatch 0.11a 2009-04-30 01:23:50 +00:00
Tom Hughes
4de6006567 Eager load nodes and node tags for the way when doing a getway call. 2009-04-28 15:55:54 +00:00
Tom Hughes
c20f55045d Reject any AMF request which is not a POST request. 2009-04-28 11:14:15 +00:00
Richard Fairhurst
2acdfd7132 a couple of minor revert fixes 2009-04-24 20:12:43 +00:00
Richard Fairhurst
9b4271ed8c pass common API error text through to Potlatch so it can be shown to the user 2009-04-24 17:44:52 +00:00
Richard Fairhurst
3cc3ff7ad6 lots of relations changes for speed and version management 2009-04-24 14:46:52 +00:00
Richard Fairhurst
64d076847b fix another way-node/Way-Node problem in amf_controller; add WinIE JS compatibility via ExternalInterface (we can use this later to alert for a commit message if none is provided) 2009-04-23 17:54:17 +00:00
Richard Fairhurst
749a735472 actually delete nodes on deleteway (might help) 2009-04-23 12:01:42 +00:00
Richard Fairhurst
c65a3d76ae fix nodes bug 2009-04-23 08:32:26 +00:00
Richard Fairhurst
0a682b9da6 change relation_member 'type' case, to match change in database 2009-04-22 17:47:06 +00:00
Richard Fairhurst
a80b42652b fix id/relid inconsistency 2009-04-21 23:36:53 +00:00
Tom Hughes
e192c77986 Use correct names for member types. 2009-04-21 21:37:27 +00:00
Richard Fairhurst
5e10a7d48b Make error messages more helpful 2009-04-21 11:27:03 +00:00
Richard Fairhurst
f423c13ad4 Split out subscript to see which one is erroring 2009-04-21 10:14:28 +00:00
Tom Hughes
fd6f00b069 Merge api06 branch to trunk. 2009-04-20 09:12:03 +00:00
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Tom Hughes
09fdee5493 Add a "database readonly" state that allows all writes to the database
to be suppressed.
2009-04-14 14:27:30 +00:00
Matt Amos
18633b7c9e Fixed a problem where rails was setting the ID column to null, which violates the not-null constraint. Also fixed possible typo in AMF controller. 2009-03-29 02:14:40 +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
Richard Fairhurst
023b9e3662 fix user:pass auth for Potlatch 2009-03-26 09:38:11 +00:00
Matt Amos
568c05c548 Fixing failing potlatch tests. Someone who knows what the potlatch API is actually supposed to be doing should check these... 2009-03-25 17:54:21 +00:00
Richard Fairhurst
7bd1cdaa99 fix backspacing through way to delete it 2009-02-26 00:26:23 +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
Richard Fairhurst
79d3ee4654 be a bit smarter about enlarging the bbox (note to self: must remember to put this in 0.6 too) 2009-02-13 15:12:52 +00:00
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
c9237a3583 swap way write with node deletion as per dev@ 2009-01-13 08:37:58 +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