]> git.openstreetmap.org Git - rails.git/log
rails.git
15 years agofurther work on 0.6 history (not quite complete yet)
Richard Fairhurst [Wed, 25 Feb 2009 01:14:19 +0000 (01:14 +0000)]
further work on 0.6 history (not quite complete yet)

15 years agoTest and fix for #1567, for teh betterer osmChange compliance.
Matt Amos [Sun, 8 Feb 2009 16:54:28 +0000 (16:54 +0000)]
Test and fix for #1567, for teh betterer osmChange compliance.

15 years agoTest and fix for issue #1568. Wasn't testing for end element in the right place.
Matt Amos [Sun, 8 Feb 2009 16:33:48 +0000 (16:33 +0000)]
Test and fix for issue #1568. Wasn't testing for end element in the right place.

15 years agoFix for #1565. Added a couple of tests and fixed another issue with re-used placehold...
Matt Amos [Sun, 8 Feb 2009 08:28:01 +0000 (08:28 +0000)]
Fix for #1565. Added a couple of tests and fixed another issue with re-used placeholder IDs.

15 years agoFixed bug in changeset closing and querying where the number of elements exceeded...
Matt Amos [Sat, 7 Feb 2009 17:45:27 +0000 (17:45 +0000)]
Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this.

15 years agosplitting and joining tags is gone for good in 0.6
Frederik Ramm [Tue, 3 Feb 2009 00:57:19 +0000 (00:57 +0000)]
splitting and joining tags is gone for good in 0.6

15 years agoCopying across fix for #1547 from trunk
Thomas Wood [Sat, 31 Jan 2009 13:12:19 +0000 (13:12 +0000)]
Copying across fix for #1547 from trunk

15 years agofixed typo
Dirk Stöcker [Thu, 29 Jan 2009 14:19:39 +0000 (14:19 +0000)]
fixed typo

15 years agoSet params to sane defaults if unset by client.
Thomas Wood [Fri, 23 Jan 2009 19:14:21 +0000 (19:14 +0000)]
Set params to sane defaults if unset by client.
Reject creates with no file with 400, model validations will also reject with 400 (as was existing but broken behaviour)
Closes #1510

15 years agoRequire auth on calls to /trace/create, and pass through to form if called without...
Thomas Wood [Fri, 23 Jan 2009 01:19:45 +0000 (01:19 +0000)]
Require auth on calls to /trace/create, and pass through to form if called without params. Adjust validations on traces to prevent dual error messages on description (validates_presence_of catches the empty string removed from length validation)
More changes to come for api_create
References #1510

15 years agoMove the ActiveRecord::RecordNotFound to the block, so that it catches the not found...
Shaun McDonald [Wed, 14 Jan 2009 00:17:42 +0000 (00:17 +0000)]
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.

15 years agosmall versioning fix (plus history rework in progress)
Richard Fairhurst [Sun, 11 Jan 2009 17:09:43 +0000 (17:09 +0000)]
small versioning fix (plus history rework in progress)

15 years agoRevert last commit - too many test failures
Thomas Wood [Wed, 31 Dec 2008 16:43:44 +0000 (16:43 +0000)]
Revert last commit - too many test failures

15 years agoDateTime => Time for consistency in changeset code, ok by shaun.
Thomas Wood [Wed, 31 Dec 2008 16:33:02 +0000 (16:33 +0000)]
DateTime => Time for consistency in changeset code, ok by shaun.

15 years agoOnly show changesets that are actually closed in the index view.
Thomas Wood [Wed, 31 Dec 2008 16:14:39 +0000 (16:14 +0000)]
Only show changesets that are actually closed in the index view.

16 years agoremoved comments which apparently no-one bothers to read anyway. since no-one reads...
Matt Amos [Tue, 23 Dec 2008 15:59:56 +0000 (15:59 +0000)]
removed comments which apparently no-one bothers to read anyway. since no-one reads the comments, changed changeset model to use Time instead of DateTime. will probably have to change it back later, when someone else who doesn't read comments comes along.

16 years agoMake browse controller index show recently closed changesets, rather than recently...
Thomas Wood [Tue, 23 Dec 2008 15:47:06 +0000 (15:47 +0000)]
Make browse controller index show recently closed changesets, rather than recently changed nodes.

16 years agoPass the to_user to the view. Tests may follow. Closes #1394
Thomas Wood [Tue, 23 Dec 2008 15:08:18 +0000 (15:08 +0000)]
Pass the to_user to the view. Tests may follow. Closes #1394

16 years agosession management on only for :list
Richard Fairhurst [Tue, 23 Dec 2008 13:09:36 +0000 (13:09 +0000)]
session management on only for :list

16 years agoview changesets by user
Richard Fairhurst [Tue, 23 Dec 2008 13:06:07 +0000 (13:06 +0000)]
view changesets by user

16 years agoRelations support
Richard Fairhurst [Thu, 18 Dec 2008 09:20:58 +0000 (09:20 +0000)]
Relations support

16 years agoremove debug box
Richard Fairhurst [Thu, 18 Dec 2008 00:36:01 +0000 (00:36 +0000)]
remove debug box

16 years agoPotlatch for API 0.6 now saving ways happily with node versioning... I think
Richard Fairhurst [Thu, 18 Dec 2008 00:32:02 +0000 (00:32 +0000)]
Potlatch for API 0.6 now saving ways happily with node versioning... I think

16 years agosome more putway fixes - this actually creates new ways with 0.6 Potlatch now
Richard Fairhurst [Wed, 17 Dec 2008 00:30:29 +0000 (00:30 +0000)]
some more putway fixes - this actually creates new ways with 0.6 Potlatch now

16 years agoFix UTF-8 encoding error char in source file that RichardF introduced
Shaun McDonald [Tue, 16 Dec 2008 16:40:59 +0000 (16:40 +0000)]
Fix UTF-8 encoding error char in source file that RichardF introduced

16 years agobit more putway stuff
Richard Fairhurst [Tue, 16 Dec 2008 00:40:04 +0000 (00:40 +0000)]
bit more putway stuff

16 years agoyet more rewriting of putway...
Richard Fairhurst [Tue, 16 Dec 2008 00:23:11 +0000 (00:23 +0000)]
yet more rewriting of putway...

16 years agoAdd validations for diary entry lat/lons and tests for diary entry validations. Close...
Thomas Wood [Mon, 15 Dec 2008 23:24:09 +0000 (23:24 +0000)]
Add validations for diary entry lat/lons and tests for diary entry validations. Closes #1395

16 years agoSome extra stubs in the amf controller test
Shaun McDonald [Mon, 15 Dec 2008 19:27:52 +0000 (19:27 +0000)]
Some extra stubs in the amf controller test

16 years agoFix the transactions, need to set anything that will be returned to nil outside the...
Shaun McDonald [Mon, 15 Dec 2008 19:20:24 +0000 (19:20 +0000)]
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.

16 years agobug fix. Adding some transactions to amf controller, and adding the missing version...
Shaun McDonald [Mon, 15 Dec 2008 18:57:12 +0000 (18:57 +0000)]
bug fix. Adding some transactions to amf controller, and adding the missing version to putway method signature.

16 years agoReturn, rather than allow a second render to happen. Closes #1407
Shaun McDonald [Sun, 14 Dec 2008 23:16:27 +0000 (23:16 +0000)]
Return, rather than allow a second render to happen. Closes #1407

16 years agoresync from rails_port 11795:12304
Shaun McDonald [Fri, 12 Dec 2008 19:29:27 +0000 (19:29 +0000)]
resync from rails_port 11795:12304

16 years agoLog the request on a few requests when there is a bad request, probably should do...
Shaun McDonald [Fri, 12 Dec 2008 19:04:28 +0000 (19:04 +0000)]
Log the request on a few requests when there is a bad request, probably should do this in a few more places. This makes it easier to see why we are getting errors/bad requests.

16 years agoremoving debug statement
Shaun McDonald [Fri, 12 Dec 2008 18:56:22 +0000 (18:56 +0000)]
removing debug statement

16 years agoImproving the not found handling of preferences. adding a user preference test. addin...
Shaun McDonald [Fri, 12 Dec 2008 18:54:03 +0000 (18:54 +0000)]
Improving the not found handling of preferences. adding a user preference test. adding some utility methods to the  test helper

16 years agoAdd some extra indexes.
Tom Hughes [Fri, 12 Dec 2008 15:43:02 +0000 (15:43 +0000)]
Add some extra indexes.

16 years agoOptimise lookup of traces with a given tag.
Tom Hughes [Fri, 12 Dec 2008 15:17:14 +0000 (15:17 +0000)]
Optimise lookup of traces with a given tag.

16 years agocapture the too many way nodes error, and give the user an error message
Shaun McDonald [Fri, 12 Dec 2008 11:24:40 +0000 (11:24 +0000)]
capture the too many way nodes error, and give the user an error message

16 years agoMaking amf controller act more like the xml apis
Shaun McDonald [Thu, 11 Dec 2008 17:22:15 +0000 (17:22 +0000)]
Making amf controller act more like the xml apis

16 years agoDon't give an error when you access the login page when you are logged in. Instead...
Shaun McDonald [Thu, 11 Dec 2008 15:05:53 +0000 (15:05 +0000)]
Don't give an error when you access the login page when you are logged in. Instead take you to the page in the referer or the home page.

16 years agosome more progress towards making amf_controller do version checking of nodes before...
Shaun McDonald [Thu, 11 Dec 2008 10:38:36 +0000 (10:38 +0000)]
some more progress towards making amf_controller do version checking of nodes before deleting them

16 years agosome further progress to amf controller checking the version numbers.
Shaun McDonald [Wed, 10 Dec 2008 18:07:30 +0000 (18:07 +0000)]
some further progress to amf controller checking the version numbers.

16 years agoAdded missing version to the pure rails AMF controller. More stringent tests on which...
Matt Amos [Wed, 10 Dec 2008 14:31:07 +0000 (14:31 +0000)]
Added missing version to the pure rails AMF controller. More stringent tests on whichways.

16 years agoSome fixes to the rails part of the AMF controller and associated test.
Matt Amos [Wed, 10 Dec 2008 13:23:21 +0000 (13:23 +0000)]
Some fixes to the rails part of the AMF controller and associated test.

16 years agoSome improvements for the XML parsing, as there are somethings that we don't need...
Shaun McDonald [Tue, 9 Dec 2008 18:44:11 +0000 (18:44 +0000)]
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.

16 years agocount -> size for compatibility with ruby 1.8.6
Shaun McDonald [Mon, 8 Dec 2008 15:47:29 +0000 (15:47 +0000)]
count -> size for compatibility with ruby 1.8.6

16 years agothe user id may be negative, so that osmosis can create changesets for users that...
Shaun McDonald [Mon, 8 Dec 2008 15:32:29 +0000 (15:32 +0000)]
the user id may be negative, so that osmosis can create changesets for users that are anonymous, which it uses a negative id for, as a special id.

16 years agoAdding the ability to see the min/max lat/lon for a changeset in the data browser...
Shaun McDonald [Mon, 8 Dec 2008 15:30:19 +0000 (15:30 +0000)]
Adding the ability to see the min/max lat/lon for a changeset in the data browser. Adding file for the nice message that should show when a user is missing in the message controller.

16 years agoAdding some amf create poi tests. Minor bugfix tweaks to the amf controller
Shaun McDonald [Mon, 8 Dec 2008 14:22:34 +0000 (14:22 +0000)]
Adding some amf create poi tests. Minor bugfix tweaks to the amf controller

16 years agoFix for the refactoring commited yesterday, based on review by Dave Stubbs
Shaun McDonald [Fri, 5 Dec 2008 11:08:58 +0000 (11:08 +0000)]
Fix for the refactoring commited yesterday, based on review by Dave Stubbs

16 years agoRefactoring the amf controller, and all models so that save_with_history! is now...
Shaun McDonald [Thu, 4 Dec 2008 17:30:17 +0000 (17:30 +0000)]
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.

16 years agoturning the session off for the changeset controller, to come in line with the other...
Shaun McDonald [Thu, 4 Dec 2008 14:36:21 +0000 (14:36 +0000)]
turning the session off for the changeset controller, to come in line with the other api controllers

16 years agoAdding missing fixtures to test helper.
Matt Amos [Wed, 3 Dec 2008 18:24:00 +0000 (18:24 +0000)]
Adding missing fixtures to test helper.

16 years agoDeal with active record not found exceptions when creating message. Some tidying...
Shaun McDonald [Wed, 3 Dec 2008 12:56:02 +0000 (12:56 +0000)]
Deal with active record not found exceptions when creating message. Some tidying of html. For some reason in rails 2.1.2 having a comment at the end of a line, in the view,  means that the closing tag needs to be on the next line.

16 years agoadding link to download the full changeset xml
Shaun McDonald [Tue, 2 Dec 2008 18:44:50 +0000 (18:44 +0000)]
adding link to download the full changeset xml

16 years agoActually set the instance var when closing the changeset
Shaun McDonald [Mon, 1 Dec 2008 18:47:03 +0000 (18:47 +0000)]
Actually set the instance var when closing the changeset

16 years agoensure that uploads that don't supply a lat and lon for a node. Adding related test...
Shaun McDonald [Mon, 1 Dec 2008 18:32:54 +0000 (18:32 +0000)]
ensure that uploads that don't supply a lat and lon for a node. Adding related test and fixing other tests.

16 years agobetter handling of duplicate tags. Extra validation in the tests.
Shaun McDonald [Fri, 28 Nov 2008 17:38:23 +0000 (17:38 +0000)]
better handling of duplicate tags. Extra validation in the tests.

16 years agoChanged duplicate tags test to test the correct code path - was previously failing...
Matt Amos [Fri, 28 Nov 2008 12:33:18 +0000 (12:33 +0000)]
Changed duplicate tags test to test the correct code path - was previously failing in libxml, rather than the duplicate tags check.

16 years agoAdding pagination to the changesets, thus allowing you to browe large changesets...
Shaun McDonald [Thu, 27 Nov 2008 17:06:43 +0000 (17:06 +0000)]
Adding pagination to the changesets, thus allowing you to browe large changesets, without MySQL complaining about memory. Probably needs some fine tuning. You currently can only page one of nodes, ways, and relations, without manually setting the relations. Fixing deprection notice for the classic_pagination plugin.

16 years agoAdding test to check that users can't update changesets that they don't own.
Matt Amos [Wed, 26 Nov 2008 15:03:50 +0000 (15:03 +0000)]
Adding test to check that users can't update changesets that they don't own.

16 years agoMoved transaction boundary to cover used-by tests on deletion so that the database...
Matt Amos [Wed, 26 Nov 2008 14:49:56 +0000 (14:49 +0000)]
Moved transaction boundary to cover used-by tests on deletion so that the database can help prevent race conditions.

16 years agoMoved changeset consistency checks to library code.
Matt Amos [Wed, 26 Nov 2008 12:56:42 +0000 (12:56 +0000)]
Moved changeset consistency checks to library code.

16 years agoRenaming the include action to expand_bbox in the changeset controller.
Shaun McDonald [Wed, 26 Nov 2008 11:36:10 +0000 (11:36 +0000)]
Renaming the include action to expand_bbox in the changeset controller.

16 years agoAdd a delete method for the user model.
Tom Hughes [Tue, 25 Nov 2008 23:53:21 +0000 (23:53 +0000)]
Add a delete method for the user model.

16 years agoSome improvements to the error messages that are returned by the api.
Shaun McDonald [Tue, 25 Nov 2008 18:59:35 +0000 (18:59 +0000)]
Some improvements to the error messages that are returned by the api.

16 years agoMore model validations. Fixing one test.
Shaun McDonald [Tue, 25 Nov 2008 17:23:47 +0000 (17:23 +0000)]
More model validations. Fixing one test.

16 years agovarious fixes/enhancements, including a couple to the 0.5 version
Richard Fairhurst [Tue, 25 Nov 2008 00:15:30 +0000 (00:15 +0000)]
various fixes/enhancements, including a couple to the 0.5 version

16 years agovarious fixes/enhancements, including a couple to the 0.5 version
Richard Fairhurst [Tue, 25 Nov 2008 00:15:30 +0000 (00:15 +0000)]
various fixes/enhancements, including a couple to the 0.5 version

16 years agoMake the role in relations optional, with a test to make sure it is. Also start movin...
Shaun McDonald [Mon, 24 Nov 2008 18:55:24 +0000 (18:55 +0000)]
Make the role in relations optional, with a test to make sure it is. Also start moving the errors reading the xml to exceptions, thus making it possible to give meaningful error messages, when bad xml is sent (More work is required on this including doing the same for nodes and ways). With the latest gems update it seems that the lib xml handling was broken, using the newer method. Adding the content type for the exceptions.

16 years agocosmetic tweaks to diary interface. icon for new entries link
Harry Wood [Mon, 24 Nov 2008 00:40:04 +0000 (00:40 +0000)]
cosmetic tweaks to diary interface. icon for new entries link

16 years agoFixed bug in changeset idle timeout. Fixed another with a spurious require.
Matt Amos [Fri, 21 Nov 2008 12:53:09 +0000 (12:53 +0000)]
Fixed bug in changeset idle timeout. Fixed another with a spurious require.

16 years agoCloses #1350 through updating amf_controller to use the newer closed_at method of...
Shaun McDonald [Thu, 20 Nov 2008 21:23:44 +0000 (21:23 +0000)]
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.

16 years agoChangeset tag unit tests
Shaun McDonald [Wed, 19 Nov 2008 18:00:52 +0000 (18:00 +0000)]
Changeset tag unit tests

16 years agoMore tag validations, and finishing the node/way/relation tests.
Shaun McDonald [Wed, 19 Nov 2008 17:23:15 +0000 (17:23 +0000)]
More tag validations, and finishing the node/way/relation tests.

16 years agoRemember whether the user set the public checkbox on GPX upload as a user preference...
Shaun McDonald [Tue, 18 Nov 2008 20:22:09 +0000 (20:22 +0000)]
Remember whether the user set the public checkbox on GPX upload as a user preference. Closes #827

16 years agoRelation Tag testing. Also sort the belong_to/has_many for user/changeset/old_way.
Shaun McDonald [Tue, 18 Nov 2008 18:50:24 +0000 (18:50 +0000)]
Relation Tag testing. Also sort the belong_to/has_many for user/changeset/old_way.

16 years agoRequire the user to be logged in for those methods which make no
Tom Hughes [Tue, 18 Nov 2008 17:23:40 +0000 (17:23 +0000)]
Require the user to be logged in for those methods which make no
sense otherwise.

16 years agoFix syntax of status only renders. Closes #1345.
Tom Hughes [Tue, 18 Nov 2008 17:19:37 +0000 (17:19 +0000)]
Fix syntax of status only renders. Closes #1345.

16 years agoValidations on the way tags, with unit tests
Shaun McDonald [Tue, 18 Nov 2008 16:21:32 +0000 (16:21 +0000)]
Validations on the way tags, with unit tests

16 years agoMake the dates and times that the server deals with UTC. This is probably required...
Shaun McDonald [Mon, 17 Nov 2008 19:11:54 +0000 (19:11 +0000)]
Make the dates and times that the server deals with UTC. This is probably required for changeset, as they could auto close instantly when the clocks go forward by one hour.

16 years agoMigration to add close-time to changesets. This replaces the boolean 'open' attribute...
Matt Amos [Mon, 17 Nov 2008 19:00:01 +0000 (19:00 +0000)]
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.

16 years agoAdding validations for the length of node tags, and the presence of the id (and versi...
Shaun McDonald [Mon, 17 Nov 2008 18:53:09 +0000 (18:53 +0000)]
Adding validations for the length of node tags, and the presence of the id (and version). More tests, including some boiler plate tests.

16 years agoMade user input parsing more robust in changeset query method. Added tests.
Matt Amos [Mon, 17 Nov 2008 15:30:46 +0000 (15:30 +0000)]
Made user input parsing more robust in changeset query method. Added tests.

16 years agoVerify that the key and value isn't getting mixed up by having them different. verify...
Shaun McDonald [Mon, 17 Nov 2008 15:00:19 +0000 (15:00 +0000)]
Verify that the key and value isn't getting mixed up by having them different. verify the error message is the same when returning the user conflict on closing changeset test.

16 years agoFixed some bugs in changeset query code. Added more test cases.
Matt Amos [Mon, 17 Nov 2008 14:32:15 +0000 (14:32 +0000)]
Fixed some bugs in changeset query code. Added more test cases.

16 years agoAdded tests for changeset close method.
Matt Amos [Mon, 17 Nov 2008 11:59:42 +0000 (11:59 +0000)]
Added tests for changeset close method.

16 years agoImplemented changeset tags updating via the update method.
Matt Amos [Mon, 17 Nov 2008 11:45:50 +0000 (11:45 +0000)]
Implemented changeset tags updating via the update method.

16 years agoAltered tests on AMF controller so that they give failures instead of errors. Return...
Matt Amos [Mon, 17 Nov 2008 11:12:48 +0000 (11:12 +0000)]
Altered tests on AMF controller so that they give failures instead of errors. Return format seems to have changed, so someone who knows more about AMF controller should have a look.

16 years agochangeset comments and a couple of other small fixes
Richard Fairhurst [Sun, 16 Nov 2008 13:30:02 +0000 (13:30 +0000)]
changeset comments and a couple of other small fixes

16 years agoFreezing composite primary key so that we can apply TomH's patch to it, and that...
Shaun McDonald [Sat, 15 Nov 2008 01:11:27 +0000 (01:11 +0000)]
Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test.

16 years agofinished Rails-friendly amf_controller. Note that this requires Tom's patched composi...
Richard Fairhurst [Fri, 14 Nov 2008 17:36:38 +0000 (17:36 +0000)]
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

16 years agoMore unit test stubs
Shaun McDonald [Fri, 14 Nov 2008 17:28:16 +0000 (17:28 +0000)]
More unit test stubs

16 years agoUnit tests work again. Fixed the set fixture class that I should. Adding 2 length...
Shaun McDonald [Fri, 14 Nov 2008 16:26:56 +0000 (16:26 +0000)]
Unit tests work again. Fixed the set fixture class that I should. Adding 2 length checks to the user preference controller.

16 years agoAdding some more unit test stubs that need filling out. Adding changeset tags fixture...
Shaun McDonald [Fri, 14 Nov 2008 02:06:04 +0000 (02:06 +0000)]
Adding some more unit test stubs that need filling out. Adding changeset tags fixture. Indentation fix in way model.

16 years agoAdding some more diary entry tests. Making the RSS feed links more portable, by using...
Shaun McDonald [Thu, 13 Nov 2008 17:20:40 +0000 (17:20 +0000)]
Adding some more diary entry tests. Making the RSS feed links more portable, by using the SERVER_URL constant. Fixing the validation for the length of the language of diary entries until the i18n branch is integrated.

16 years agoCovering the case of an entry not being found. More diary entry tests.
Shaun McDonald [Wed, 12 Nov 2008 18:48:58 +0000 (18:48 +0000)]
Covering the case of an entry not being found. More diary entry tests.

16 years agoreplaced "wtf does this do" comment by something explaining what it does.
Frederik Ramm [Wed, 12 Nov 2008 00:11:57 +0000 (00:11 +0000)]
replaced "wtf does this do" comment by something explaining what it does.

16 years agomore diary entry test
Shaun McDonald [Tue, 11 Nov 2008 18:33:08 +0000 (18:33 +0000)]
more diary entry test