Commit graph

50 commits

Author SHA1 Message Date
Thomas Wood
d8aacff595 Slight performance improvement (a reported 2s) by skipping db query if no bbox is passed in on /history
Thanks apmon for the report.
2009-04-21 18:04:43 +00:00
Tom Hughes
4eafa04ff8 Reject uploads unless the user has made their edits pubic. 2009-04-16 21:50:20 +00:00
Tom Hughes
141a5692eb Fixed to work with merged changes to api availability checks. 2009-04-16 21:38:29 +00:00
Thomas Wood
6442208841 Add exceptions for remaing cases where XML::Parser.string is used, to catch for empty strings.
See also r14241
2009-04-09 22:37:43 +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
Harry Wood
0f3e5a28c0 show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks 2009-03-24 11:23:56 +00:00
Thomas Wood
8fb97a3337 Rather than referring how to view a bbox history, just redirect to the global history. 2009-03-23 19:56:01 +00:00
Thomas Wood
7d3a5899c9 More fixes to the changeset viewer, including logged-in-ness on per-user edit lists, fix XSS potential on usernames here, and general tidyups. 2009-03-23 19:40:33 +00:00
Thomas Wood
677f391ec1 Fix various auth bugs with the changeset listing stuff, catch exception (but not yet handled well) for when edits not public. 2009-03-23 18:23:37 +00:00
Harry Wood
afe8dd51ec Add 'history' tab + Move 'recent changes' changeset list to re-use the same _changeset.rhtml partial 2009-03-23 16:39:59 +00:00
Matt Amos
76708eefcf Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this. 2009-02-07 17:45:27 +00:00
Thomas Wood
747d6f1d11 Revert last commit - too many test failures 2008-12-31 16:43:44 +00:00
Thomas Wood
898beb7b7f DateTime => Time for consistency in changeset code, ok by shaun. 2008-12-31 16:33:02 +00:00
Richard Fairhurst
9fa1f4b013 session management on only for :list 2008-12-23 13:09:36 +00:00
Richard Fairhurst
cc90867183 view changesets by user 2008-12-23 13:06:07 +00:00
Shaun McDonald
d9c6758ee6 turning the session off for the changeset controller, to come in line with the other api controllers 2008-12-04 14:36:21 +00:00
Shaun McDonald
073c866032 adding link to download the full changeset xml 2008-12-02 18:44:50 +00:00
Matt Amos
1ffb5c1502 Moved changeset consistency checks to library code. 2008-11-26 12:56:42 +00:00
Shaun McDonald
a4e5e8437f Renaming the include action to expand_bbox in the changeset controller. 2008-11-26 11:36:10 +00:00
Shaun McDonald
8348493ccb Some improvements to the error messages that are returned by the api. 2008-11-25 18:59:35 +00:00
Matt Amos
783528830a Fixed bug in changeset idle timeout. Fixed another with a spurious require. 2008-11-21 12:53:09 +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
Matt Amos
a90be5e69a Migration to add close-time to changesets. This replaces the boolean 'open' attribute. Added checks to ensure that the maximum lifetime and number of changes in a changeset are enforced. Added some tests. 2008-11-17 19:00:01 +00:00
Matt Amos
495bd7f1f0 Made user input parsing more robust in changeset query method. Added tests. 2008-11-17 15:30:46 +00:00
Matt Amos
28839fd150 Fixed some bugs in changeset query code. Added more test cases. 2008-11-17 14:32:15 +00:00
Matt Amos
519d402cb2 Added tests for changeset close method. 2008-11-17 11:59:42 +00:00
Matt Amos
98b15bef45 Implemented changeset tags updating via the update method. 2008-11-17 11:45:50 +00:00
Frederik Ramm
c02c516047 fix SCALE, make changeset GET use floats 2008-11-09 15:52:10 +00:00
Frederik Ramm
9263c5500c require auth for close 2008-11-09 13:44:08 +00:00
Matt Amos
b875d14b7c Added a query method for querying bounding boxes, times and users of changesets. Needs (much) more testing. 2008-11-07 18:24:34 +00:00
Matt Amos
527b6f76e3 D'oh! Fixed stupid errors in changeset controller. 2008-11-07 11:36:00 +00:00
Matt Amos
c760891d63 Ooops. Added missing access control to changeset controller. 2008-11-06 19:10:19 +00:00
Matt Amos
383f204e64 Added a changeset/#id/include method to POST to to expand the bounding box. 2008-11-06 18:42:06 +00:00
Matt Amos
8a57904398 Implemented osmChange diff downloads for changesets and a couple of tests. 2008-10-27 17:50:28 +00:00
Matt Amos
46d5291350 Updated comment to reflect implementation. 2008-10-27 16:48:09 +00:00
Matt Amos
dc2a959037 Added tests for changeset upload code. Refactored diff reading code and put it into /lib. Changed the route of a changeset upload to explicitly refer to the changeset it applies to (i.e: resource). 2008-10-23 15:14:17 +00:00
Shaun McDonald
233a97bfcb fix indentation. Get teh api version from the constant, rather than hard coding it. Using right save method, so that exception is thrown. Some comment questions. 2008-10-10 18:24:07 +00:00
Shaun McDonald
5daeb1b063 Changing if not to unless to make code more readable. 2008-10-03 13:57:20 +00:00
Gabriel Ebner
5cc8afd896 api06: remove debugging output. 2008-05-13 13:42:03 +00:00
Gabriel Ebner
d96f238801 api06: simplify diff uploading. 2008-05-13 13:24:31 +00:00
Gabriel Ebner
866c3ff782 api06: diff upload: don't read the whole request into memory.
Note: libxml-ruby-0.5.4 will segfault on this:
https://rubyforge.org/tracker/index.php?func=detail&aid=20117&group_id=494&atid=1971
2008-05-13 12:53:59 +00:00
Gabriel Ebner
7151fa05e4 api06: simplify exception handling and add exception handling to the diff
upload.
2008-05-13 12:15:06 +00:00
Gabriel Ebner
ea1961e3ce api06: s/delete_with_relations_and_history/delete_with_history/g 2008-05-12 21:10:38 +00:00
Christopher Schmidt
6f1aad0d04 add support for closing changesets 2008-05-11 21:18:42 +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
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
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
Frederik Ramm
8c5638d696 initial changeset support 2008-05-04 10:41:42 +00:00