]> git.openstreetmap.org Git - rails.git/log
rails.git
16 years agoAdding a restriction to prevent more than 2000 nodes to be added to any way. Tests...
Shaun McDonald [Mon, 3 Nov 2008 00:12:18 +0000 (00:12 +0000)]
Adding a restriction to prevent more than 2000 nodes to be added to any way. Tests still need to be written. Capabilities api request also updated.

16 years agoAdd a description meta tag for the all web pages. Wording probably needs to be improved.
Shaun McDonald [Fri, 31 Oct 2008 18:02:12 +0000 (18:02 +0000)]
Add a description meta tag for the all web pages. Wording probably needs to be improved.

16 years agoStarting the gpx trace testing with additional fixtures
Shaun McDonald [Thu, 30 Oct 2008 18:50:45 +0000 (18:50 +0000)]
Starting the gpx trace testing with additional fixtures

16 years agoAdded custom validator for UTF-8 strings.
Matt Amos [Wed, 29 Oct 2008 16:27:15 +0000 (16:27 +0000)]
Added custom validator for UTF-8 strings.

16 years agoadd a comment about why the error handler is required, as per mail from TomH. Also...
Shaun McDonald [Wed, 29 Oct 2008 15:45:48 +0000 (15:45 +0000)]
add a comment about why the error handler is required, as per mail from TomH. Also adding the option so that we are using the old style of migrations, rather than the 2.1+ migrations.

16 years agoBetter error message and test for invalid UTF-8 sequences.
Matt Amos [Wed, 29 Oct 2008 15:33:23 +0000 (15:33 +0000)]
Better error message and test for invalid UTF-8 sequences.

16 years agoPut back the units on all the zero values. Just because you can remove
Tom Hughes [Wed, 29 Oct 2008 13:49:45 +0000 (13:49 +0000)]
Put back the units on all the zero values. Just because you can remove
something doesn't mean it's a good idea...

16 years agoFix for bug #1242, css foreground set + css shorthands used
Hugh Barnes [Wed, 29 Oct 2008 13:05:14 +0000 (13:05 +0000)]
Fix for bug #1242, css foreground set + css shorthands used

16 years agoUpdating to use Rails 2.1.2. Moving the gem dependancies to the config/environment...
Shaun McDonald [Tue, 28 Oct 2008 20:42:48 +0000 (20:42 +0000)]
Updating to use Rails 2.1.2. Moving the gem dependancies to the config/environment.rb file. Moving the vendor/plugins externals into our svn.

16 years agomessage title shouldn't accept invalid utf-8 sequences - test currently fails
Andy Allan [Tue, 28 Oct 2008 18:34:05 +0000 (18:34 +0000)]
message title shouldn't accept invalid utf-8 sequences - test currently fails

16 years agoMade full test a bit more thorough.
Matt Amos [Tue, 28 Oct 2008 15:01:17 +0000 (15:01 +0000)]
Made full test a bit more thorough.

16 years agoAdded tests for relations for way/relation and a bit of DRYing up.
Matt Amos [Tue, 28 Oct 2008 14:49:51 +0000 (14:49 +0000)]
Added tests for relations for way/relation and a bit of DRYing up.

16 years agoAdding stub functional test files for all the controllers that should have tests...
Shaun McDonald [Tue, 28 Oct 2008 12:49:51 +0000 (12:49 +0000)]
Adding stub functional test files for all the controllers that should have tests written for them.

16 years agoMoving all the functional tests to the Rails 2 way, which uses less code by having...
Shaun McDonald [Tue, 28 Oct 2008 12:27:10 +0000 (12:27 +0000)]
Moving all the functional tests to the Rails 2 way, which uses less code by having an additional sub-class to take care of the duplicate code in every test. There is a bug in rails 2.0.2, which means that super doesn't get called in the setup method in the functional tests. This is fixed in Rails 2.1.2, thus a version bump should really be done.

16 years agoPrepare for Rails 2.1+, as we will no longer be able to use a symbol in the set_fixtu...
Shaun McDonald [Mon, 27 Oct 2008 18:45:28 +0000 (18:45 +0000)]
Prepare for Rails 2.1+, as we will no longer be able to use a symbol in the set_fixture_class method, instead we must use a Class. This change doesn't affect Rails 2.0.2, as currently used. All tests still work. :-)

16 years agoImplemented osmChange diff downloads for changesets and a couple of tests.
Matt Amos [Mon, 27 Oct 2008 17:50:28 +0000 (17:50 +0000)]
Implemented osmChange diff downloads for changesets and a couple of tests.

16 years agoUpdated comment to reflect implementation.
Matt Amos [Mon, 27 Oct 2008 16:48:09 +0000 (16:48 +0000)]
Updated comment to reflect implementation.

16 years agocover the other extreme in the map bounary sanitizeation. Ading some documentation...
Shaun McDonald [Sun, 26 Oct 2008 23:43:37 +0000 (23:43 +0000)]
cover the other extreme in the map bounary sanitizeation. Ading some documentation, which is parsed when running rake doc:app. Fixing up a couple of tests.

16 years agoBots Disallow /edit* & /login*, Nothing to see here... move right along.
Grant Slater [Sun, 26 Oct 2008 17:26:39 +0000 (17:26 +0000)]
Bots Disallow /edit* & /login*, Nothing to see here... move right along.

16 years agofix broken YAML
Richard Fairhurst [Fri, 24 Oct 2008 14:35:01 +0000 (14:35 +0000)]
fix broken YAML

16 years agoAdded tests for changeset upload code. Refactored diff reading code and put it into...
Matt Amos [Thu, 23 Oct 2008 15:14:17 +0000 (15:14 +0000)]
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).

16 years agoPotlatch 0.10f
Richard Fairhurst [Thu, 23 Oct 2008 08:42:07 +0000 (08:42 +0000)]
Potlatch 0.10f

16 years agoFixing the error messages
Shaun McDonald [Wed, 22 Oct 2008 09:40:16 +0000 (09:40 +0000)]
Fixing the error messages

16 years agoAdding new browse controller test, which is mostly stubs just now. Also adding the...
Shaun McDonald [Tue, 21 Oct 2008 16:18:18 +0000 (16:18 +0000)]
Adding new browse controller test, which is mostly stubs just now. Also adding the version number of the recently changed nodes in the data browser.

16 years agomaking it clearer when a test case fails, as to which test case it is that is failing...
Shaun McDonald [Tue, 21 Oct 2008 14:28:52 +0000 (14:28 +0000)]
making it clearer when a test case fails, as to which test case it is that is failing. Adding some more bboxes for testing.

16 years agoAdded min_lat > max_lat test.
Matt Amos [Tue, 21 Oct 2008 14:00:08 +0000 (14:00 +0000)]
Added min_lat > max_lat test.

16 years agoRevert r11194 as it doesn't work as the trace_name member does return
Tom Hughes [Tue, 21 Oct 2008 12:16:12 +0000 (12:16 +0000)]
Revert r11194 as it doesn't work as the trace_name member does return
the correct result until after the trace is saved.

16 years agoRefactored test a bit to make it nicer.
Matt Amos [Tue, 21 Oct 2008 11:40:06 +0000 (11:40 +0000)]
Refactored test a bit to make it nicer.

16 years agoAdded test for relations_for_node where the relation had been deleted.
Matt Amos [Tue, 21 Oct 2008 11:38:13 +0000 (11:38 +0000)]
Added test for relations_for_node where the relation had been deleted.

16 years agoAdded tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed...
Matt Amos [Tue, 21 Oct 2008 10:52:52 +0000 (10:52 +0000)]
Added tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed ways fixture where most recent history != current.

16 years agoRemoved debugging code.
Matt Amos [Tue, 21 Oct 2008 09:31:36 +0000 (09:31 +0000)]
Removed debugging code.

16 years agoMaking the capabilities api version indipendent
Shaun McDonald [Mon, 20 Oct 2008 20:40:06 +0000 (20:40 +0000)]
Making the capabilities api version indipendent

16 years agoAdding some api tests for both the map and trackpoints requests. Needs some better...
Shaun McDonald [Mon, 20 Oct 2008 15:05:12 +0000 (15:05 +0000)]
Adding some api tests for both the map and trackpoints requests. Needs some better bboxes. Adding new changeset controller fnctional tests.

16 years agomore testing of the api. Changing the generator so that it is a constant to come...
Shaun McDonald [Sun, 19 Oct 2008 07:09:04 +0000 (07:09 +0000)]
more testing of the api. Changing the generator so that it is a constant to come in line with the server url and the api version. Adding tracepoints per page to the capabilities api call. Better error message for api call.

16 years agoAltered a functional test on way_tags.
Matt Amos [Fri, 17 Oct 2008 11:21:40 +0000 (11:21 +0000)]
Altered a functional test on way_tags.

16 years agoMore functional tests, this time for way_tags.
Matt Amos [Fri, 17 Oct 2008 11:06:58 +0000 (11:06 +0000)]
More functional tests, this time for way_tags.

16 years agoFixed fixtures and added new tests for ways and way_nodes.
Matt Amos [Thu, 16 Oct 2008 13:02:09 +0000 (13:02 +0000)]
Fixed fixtures and added new tests for ways and way_nodes.

16 years agoadding the Last-Modified response header to the version action
Shaun McDonald [Thu, 16 Oct 2008 07:11:28 +0000 (07:11 +0000)]
adding the Last-Modified response header to the version action

16 years agoset the db encoding to utf-8, otherwise data is stored incorrectly in db. Can be...
Andy Allan [Wed, 15 Oct 2008 16:56:56 +0000 (16:56 +0000)]
set the db encoding to utf-8, otherwise data is stored incorrectly in db. Can be seen by roundtrip truncating at 255 bytes instead of 255 chars. Connection setting (here) is independant of mysql setup

16 years agoAdding a lower and upper length on various web site varchar fields. Fixes one test.
Shaun McDonald [Wed, 15 Oct 2008 16:20:43 +0000 (16:20 +0000)]
Adding a lower and upper length on various web site varchar fields. Fixes one test.

16 years agoChecking foreign key constraints on message recipients and senders
Andy Allan [Wed, 15 Oct 2008 15:23:56 +0000 (15:23 +0000)]
Checking foreign key constraints on message recipients and senders

16 years agoutf-8 wide-char testing of message title - this will come in useful for other things...
Andy Allan [Wed, 15 Oct 2008 13:17:10 +0000 (13:17 +0000)]
utf-8 wide-char testing of message title - this will come in useful for other things e.g. k/v pairs

16 years agoAdded more fixtures and tests for node versioning calls.
Matt Amos [Wed, 15 Oct 2008 11:12:26 +0000 (11:12 +0000)]
Added more fixtures and tests for node versioning calls.

16 years agomore work on the data browser to show the changesets. Also showing the version number...
Shaun McDonald [Tue, 14 Oct 2008 18:33:03 +0000 (18:33 +0000)]
more work on the data browser to show the changesets. Also showing the version number. Would be good to have an additional route for showing a specific version of the node/way/relation from the changeset.

16 years agoCleaned up some unreachable code. Added first test on the 'old' node controller.
Matt Amos [Tue, 14 Oct 2008 16:40:17 +0000 (16:40 +0000)]
Cleaned up some unreachable code. Added first test on the 'old' node controller.

16 years agoAdded some more functional tests for way and relation delete methods.
Matt Amos [Tue, 14 Oct 2008 14:34:17 +0000 (14:34 +0000)]
Added some more functional tests for way and relation delete methods.

16 years agoFixed up delete methods on nodes, ways and relations to return the new version number...
Matt Amos [Tue, 14 Oct 2008 14:27:12 +0000 (14:27 +0000)]
Fixed up delete methods on nodes, ways and relations to return the new version number and added some more tests.

16 years agoFix race condition adding traces. Closes #1201.
Tom Hughes [Mon, 13 Oct 2008 23:27:49 +0000 (23:27 +0000)]
Fix race condition adding traces. Closes #1201.

16 years agoDisable the query cache.
Tom Hughes [Mon, 13 Oct 2008 23:13:34 +0000 (23:13 +0000)]
Disable the query cache.

16 years agoadding changeset stuff for the data browser
Shaun McDonald [Mon, 13 Oct 2008 20:48:58 +0000 (20:48 +0000)]
adding changeset stuff for the data browser

16 years agoAdded a bunch more tests on the API 0.6. Fixed node/way/relation from_xml code to...
Matt Amos [Mon, 13 Oct 2008 17:50:15 +0000 (17:50 +0000)]
Added a bunch more tests on the API 0.6. Fixed node/way/relation from_xml code to disallow duplicate tag keys.

16 years agonow you will actually save the changeset on updating ways. Showing the changeset...
Shaun McDonald [Mon, 13 Oct 2008 17:05:52 +0000 (17:05 +0000)]
now you will actually save the changeset on updating ways. Showing the changeset in the data browser detail.

16 years agofix so that changeset will be closed without an exception due to double validation
Shaun McDonald [Mon, 13 Oct 2008 16:11:57 +0000 (16:11 +0000)]
fix so that changeset will be closed without an exception due to double validation

16 years agoAll API 0.6 functional tests now pass.
Matt Amos [Mon, 13 Oct 2008 15:46:22 +0000 (15:46 +0000)]
All API 0.6 functional tests now pass.

16 years agoFixed up way controller tests for API 0.6.
Matt Amos [Mon, 13 Oct 2008 15:40:32 +0000 (15:40 +0000)]
Fixed up way controller tests for API 0.6.

16 years agoCreating consistency check for creation of nodes, way and relations. Moving some...
Shaun McDonald [Mon, 13 Oct 2008 15:39:21 +0000 (15:39 +0000)]
Creating consistency check for creation of nodes, way and relations. Moving some creation code from the controller to the model, and adding error handling on create errors.

16 years agoFixed problems with the relations functional tests.
Matt Amos [Mon, 13 Oct 2008 15:23:48 +0000 (15:23 +0000)]
Fixed problems with the relations functional tests.

16 years agoFixed xml method of old way model.
Matt Amos [Mon, 13 Oct 2008 14:38:32 +0000 (14:38 +0000)]
Fixed xml method of old way model.

16 years agomoving the check consistency to it's own file so that checks will be able to be loade...
Shaun McDonald [Mon, 13 Oct 2008 14:34:04 +0000 (14:34 +0000)]
moving the check consistency to it's own file so that checks will be able to be loaded into the way and relation models, without loading the node stuff.

16 years agoFix to_xml method of old_relation model.
Matt Amos [Mon, 13 Oct 2008 14:29:30 +0000 (14:29 +0000)]
Fix to_xml method of old_relation model.

16 years agoFixed node functional tests. A couple of changes to the old_node model and node contr...
Matt Amos [Mon, 13 Oct 2008 14:08:31 +0000 (14:08 +0000)]
Fixed node functional tests. A couple of changes to the old_node model and node controller for changesets.

16 years agoMake adding relations work again. Fix from RichardF.
Tom Hughes [Mon, 13 Oct 2008 12:46:00 +0000 (12:46 +0000)]
Make adding relations work again. Fix from RichardF.

16 years agofixing the data browser to be able to cope with the changeset change. changeset brows...
Shaun McDonald [Mon, 13 Oct 2008 12:08:26 +0000 (12:08 +0000)]
fixing the data browser to be able to cope with the changeset change. changeset browsing still needs to be implemented. Also giving a nice error message for 404 not found instead of rendering nothing.

16 years agodisable z12
Richard Fairhurst [Mon, 13 Oct 2008 06:50:02 +0000 (06:50 +0000)]
disable z12

16 years agoSend the new amf/read API call to the bulkapi queue - the write method
Tom Hughes [Sun, 12 Oct 2008 23:28:52 +0000 (23:28 +0000)]
Send the new amf/read API call to the bulkapi queue - the write method
will fall through the main API queue.

16 years agoLog the IP address used to create an account.
Tom Hughes [Sun, 12 Oct 2008 23:20:28 +0000 (23:20 +0000)]
Log the IP address used to create an account.

16 years agoPotlatch 0.10e
Richard Fairhurst [Sun, 12 Oct 2008 23:11:37 +0000 (23:11 +0000)]
Potlatch 0.10e

16 years agoadditional consistency checks. making the error message for the number of nodes use...
Shaun McDonald [Sun, 12 Oct 2008 22:32:51 +0000 (22:32 +0000)]
additional consistency checks. making the error message for the number of nodes use the configured number of nodes, rather than a hard coded number. minor improvements to the way controller functional tests. Not sure if they should be turned into integration tests.

16 years agoDisambiguate order clause.
Tom Hughes [Sun, 12 Oct 2008 18:42:34 +0000 (18:42 +0000)]
Disambiguate order clause.

16 years agoHide diary entries and comments made by deleted users.
Tom Hughes [Sun, 12 Oct 2008 18:38:54 +0000 (18:38 +0000)]
Hide diary entries and comments made by deleted users.

16 years agofix indentation. Get teh api version from the constant, rather than hard coding it...
Shaun McDonald [Fri, 10 Oct 2008 18:24:07 +0000 (18:24 +0000)]
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.

16 years agoreverting the javascript change in changeset 10926, that needs to be specific to...
Shaun McDonald [Fri, 10 Oct 2008 13:27:21 +0000 (13:27 +0000)]
reverting the javascript change in changeset 10926, that needs to be specific to each rails setup (if run out of another dir), until we turn the file into an erb that can insert the rails root into the javascript file

16 years agoSome comment about where to add code to get some more of the functional changesets...
Shaun McDonald [Fri, 10 Oct 2008 07:58:33 +0000 (07:58 +0000)]
Some comment about where to add code to get some more of the functional changesets working.

16 years agoBlock bots from /trace/, so they don't attempt to eat all the GPX data.
Grant Slater [Thu, 9 Oct 2008 18:31:36 +0000 (18:31 +0000)]
Block bots from /trace/, so they don't attempt to eat all the GPX data.

16 years agomoving the conistency checks for updates and deletes to library, hopefully got the...
Shaun McDonald [Thu, 9 Oct 2008 16:22:05 +0000 (16:22 +0000)]
moving the conistency checks for updates and deletes to library, hopefully got the updates and deletes working now.

16 years agoBackporting the change that I made to the api06 branch to bring the classic_paginatio...
Shaun McDonald [Thu, 9 Oct 2008 13:40:08 +0000 (13:40 +0000)]
Backporting the change that I made to the api06 branch to bring the classic_pagination into our svn. This will make it easier for people to setup a rails version of the server.

16 years agoSet the displayProjection on the map.
Tom Hughes [Thu, 9 Oct 2008 11:51:51 +0000 (11:51 +0000)]
Set the displayProjection on the map.

16 years agoSmall fixes to unit tests where user_id has become changeset_id.
Matt Amos [Thu, 9 Oct 2008 10:19:16 +0000 (10:19 +0000)]
Small fixes to unit tests where user_id has become changeset_id.

16 years agoMake data browser work with OpenLayers 2.7.
Tom Hughes [Wed, 8 Oct 2008 23:38:45 +0000 (23:38 +0000)]
Make data browser work with OpenLayers 2.7.

16 years agoadding the controller code to be able to get a specific version of a node, way or...
Shaun McDonald [Wed, 8 Oct 2008 18:03:41 +0000 (18:03 +0000)]
adding the controller code to be able to get a specific version of a node, way or relation.  Add some node checks on update. Some code indentation cleanup.

16 years agoFix the data config, so that the development database is not the same as the test...
Shaun McDonald [Wed, 8 Oct 2008 15:42:42 +0000 (15:42 +0000)]
Fix the data config, so that the development database is not the same as the test database. Make a good stab at getting the creates and updates for relations working, adding some new error exceptions. Some code indentation cleanup.

16 years agosome useful notes in code for ideas that require implementing.
Shaun McDonald [Tue, 7 Oct 2008 23:49:53 +0000 (23:49 +0000)]
some useful notes in code for ideas that require implementing.

16 years agoAdding the classic_pagination to svn as the svn external is no longer working
Shaun McDonald [Tue, 7 Oct 2008 22:59:59 +0000 (22:59 +0000)]
Adding the classic_pagination to svn as the svn external is no longer working

16 years agoUpdating the fixtures for the new changesets
Shaun McDonald [Tue, 7 Oct 2008 22:40:28 +0000 (22:40 +0000)]
Updating the fixtures for the new changesets

16 years agofolder empty and components are dead and gone with rails 2 anyway, so deleting this...
Shaun McDonald [Tue, 7 Oct 2008 22:11:05 +0000 (22:11 +0000)]
folder empty and components are dead and gone with rails 2 anyway, so deleting this folder.

16 years agoMore changes from the live server.
Tom Hughes [Mon, 6 Oct 2008 23:31:41 +0000 (23:31 +0000)]
More changes from the live server.

16 years agoCommit updated dispatch rules from live server.
Tom Hughes [Mon, 6 Oct 2008 23:27:36 +0000 (23:27 +0000)]
Commit updated dispatch rules from live server.

16 years agoUpdate cross domain policy to only allow API access.
Tom Hughes [Mon, 6 Oct 2008 23:21:57 +0000 (23:21 +0000)]
Update cross domain policy to only allow API access.

16 years agoadd railway=platform
Richard Fairhurst [Sun, 5 Oct 2008 22:20:04 +0000 (22:20 +0000)]
add railway=platform

16 years agoslight fix to prevent empty tag values
Richard Fairhurst [Sun, 5 Oct 2008 14:51:43 +0000 (14:51 +0000)]
slight fix to prevent empty tag values

16 years agoPotlatch 0.10d
Richard Fairhurst [Sun, 5 Oct 2008 00:21:35 +0000 (00:21 +0000)]
Potlatch 0.10d

16 years agoUpdate to OpenLayers 2.7.
Tom Hughes [Sat, 4 Oct 2008 23:45:08 +0000 (23:45 +0000)]
Update to OpenLayers 2.7.

16 years agoMake sure the zoom level is valid when positioning the map. Closes #1158.
Tom Hughes [Sat, 4 Oct 2008 23:44:41 +0000 (23:44 +0000)]
Make sure the zoom level is valid when positioning the map. Closes #1158.

16 years agoFix test for errors from geocoder.ca to work properly. Closes #1213.
Tom Hughes [Sat, 4 Oct 2008 23:20:58 +0000 (23:20 +0000)]
Fix test for errors from geocoder.ca to work properly. Closes #1213.

16 years agoFixing a bug in my foreign keys. I can now upload and download nodes and ways using...
Shaun McDonald [Fri, 3 Oct 2008 17:09:58 +0000 (17:09 +0000)]
Fixing a bug in my foreign keys. I can now upload and download nodes and ways using JOSM in the new API.

16 years agoChanging if not to unless to make code more readable.
Shaun McDonald [Fri, 3 Oct 2008 13:57:20 +0000 (13:57 +0000)]
Changing if not to unless to make code more readable.

16 years agochanging the belongs_to and has_many items in the models to reflect the new foriegn...
Shaun McDonald [Tue, 30 Sep 2008 18:21:56 +0000 (18:21 +0000)]
changing the belongs_to and has_many items in the models to reflect the new foriegn keys in the db and the fact that a (old)node/way/relation now belong to a changeset, which in turn has a user.

16 years agowrong foreign key command in the migration
Shaun McDonald [Tue, 30 Sep 2008 15:52:54 +0000 (15:52 +0000)]
wrong foreign key command in the migration

16 years agowrong foreign key command in the migration
Shaun McDonald [Tue, 30 Sep 2008 15:44:55 +0000 (15:44 +0000)]
wrong foreign key command in the migration

16 years agousing the wrong field name in one of the migrations
Shaun McDonald [Tue, 30 Sep 2008 15:24:25 +0000 (15:24 +0000)]
using the wrong field name in one of the migrations