]> git.openstreetmap.org Git - rails.git/log
rails.git
15 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

15 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 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 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 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

16 years agomore diary entry tests, and a minor fix to the relation member that makes the code...
Shaun McDonald [Tue, 11 Nov 2008 18:07:59 +0000 (18:07 +0000)]
more diary entry tests, and a minor fix to the relation member that makes the code a bit more readable.

16 years agoslight more work on the diary test
Shaun McDonald [Mon, 10 Nov 2008 19:21:59 +0000 (19:21 +0000)]
slight more work on the diary test

16 years agoPostgres adapter, and make migration 022 db-agnostic
Andy Allan [Mon, 10 Nov 2008 19:14:00 +0000 (19:14 +0000)]
Postgres adapter, and make migration 022 db-agnostic

16 years agonil protection - mysql however has a default for enums, which is why it wasn't a...
Andy Allan [Mon, 10 Nov 2008 17:10:55 +0000 (17:10 +0000)]
nil protection - mysql however has a default for enums, which is why it wasn't a problem before

16 years agoMade relations ordered. Added some tests for this. Otherwise interface is unchanged.
Matt Amos [Mon, 10 Nov 2008 15:41:05 +0000 (15:41 +0000)]
Made relations ordered. Added some tests for this. Otherwise interface is unchanged.

16 years agoOoops, forgot to commit the routes for the changeset query and include calls.
Matt Amos [Mon, 10 Nov 2008 15:37:34 +0000 (15:37 +0000)]
Ooops, forgot to commit the routes for the changeset query and include calls.

16 years agoboolean correctness
Andy Allan [Mon, 10 Nov 2008 11:47:20 +0000 (11:47 +0000)]
boolean correctness

16 years agoforgot the test change from 11866
Andy Allan [Mon, 10 Nov 2008 11:39:10 +0000 (11:39 +0000)]
forgot the test change from 11866

16 years agoIn YAML yes is a boolean keyword: also fix test that was erroneously asserting success
Andy Allan [Mon, 10 Nov 2008 11:32:17 +0000 (11:32 +0000)]
In YAML yes is a boolean keyword: also fix test that was erroneously asserting success

16 years ago0.6-friendly Potlatch (work in progress). DO NOT SET POTLATCH_USE_SQL=false as it...
Richard Fairhurst [Sun, 9 Nov 2008 23:50:03 +0000 (23:50 +0000)]
0.6-friendly Potlatch (work in progress). DO NOT SET POTLATCH_USE_SQL=false as it won't work

16 years agoadding first integration for testing user diaries, as multiple controllers are requir...
Shaun McDonald [Sun, 9 Nov 2008 19:51:56 +0000 (19:51 +0000)]
adding first integration for testing user diaries, as multiple controllers are required. more work required.

16 years agoremove indexes before renaming tables (some dbs have database-level index namespaces...
Andy Allan [Sun, 9 Nov 2008 19:30:22 +0000 (19:30 +0000)]
remove indexes before renaming tables (some dbs have database-level index namespaces) and unsigned is also a mysqlism

16 years agoamf get*_history tests and related fixes
Dave Stubbs [Sun, 9 Nov 2008 18:48:16 +0000 (18:48 +0000)]
amf get*_history tests and related fixes

16 years agoa few more amf tests and associated bug fixes
Dave Stubbs [Sun, 9 Nov 2008 17:41:38 +0000 (17:41 +0000)]
a few more amf tests and associated bug fixes

16 years agofixing the tests due to a osm -> diffChange and moving to floats
Shaun McDonald [Sun, 9 Nov 2008 16:49:27 +0000 (16:49 +0000)]
fixing the tests due to a osm -> diffChange and moving to floats

16 years agoupdate nodes/ways/relation XML to include user id as well as display name
Dave Stubbs [Sun, 9 Nov 2008 16:43:09 +0000 (16:43 +0000)]
update nodes/ways/relation XML to include user id as well as display name

16 years agoreturn user id AND name with changeset get request
Frederik Ramm [Sun, 9 Nov 2008 16:12:23 +0000 (16:12 +0000)]
return user id AND name with changeset get request

16 years agomigrations: add specific method for nodes/ways/relations enum column
Andy Allan [Sun, 9 Nov 2008 16:11:42 +0000 (16:11 +0000)]
migrations: add specific method for nodes/ways/relations enum column

16 years agofix SCALE, make changeset GET use floats
Frederik Ramm [Sun, 9 Nov 2008 15:52:10 +0000 (15:52 +0000)]
fix SCALE, make changeset GET use floats

16 years agorequire auth for close
Frederik Ramm [Sun, 9 Nov 2008 13:44:08 +0000 (13:44 +0000)]
require auth for close

16 years agocosmetic tweaks to 'login' and 'create account' screens
Harry Wood [Sun, 9 Nov 2008 12:17:53 +0000 (12:17 +0000)]
cosmetic tweaks to 'login' and 'create account' screens

16 years agomini fix
Frederik Ramm [Sun, 9 Nov 2008 12:06:05 +0000 (12:06 +0000)]
mini fix

16 years agomake diff upload result a "diffResult" rather than "osm" document
Frederik Ramm [Sun, 9 Nov 2008 11:30:03 +0000 (11:30 +0000)]
make diff upload result a "diffResult" rather than "osm" document

16 years agomove index dropping to remove_index method
Andy Allan [Sun, 9 Nov 2008 11:19:46 +0000 (11:19 +0000)]
move index dropping to remove_index method

16 years agobumping the version of composite primary keys for the amf controler as there are...
Shaun McDonald [Sun, 9 Nov 2008 11:13:10 +0000 (11:13 +0000)]
bumping the version of composite primary keys for the amf controler as there are bugs in it

16 years agooops remove my test
Harry Wood [Sun, 9 Nov 2008 10:57:05 +0000 (10:57 +0000)]
oops remove my test

16 years agoUpdate DB readme for PgSQL a bit
Daniel Silverstone [Sun, 9 Nov 2008 10:41:48 +0000 (10:41 +0000)]
Update DB readme for PgSQL a bit

16 years agofix accidental commit of local config changes
Frederik Ramm [Sat, 8 Nov 2008 19:55:13 +0000 (19:55 +0000)]
fix accidental commit of local config changes

16 years agofix version number return for "modify" sections of diff uploads
Frederik Ramm [Sat, 8 Nov 2008 19:43:31 +0000 (19:43 +0000)]
fix version number return for "modify" sections of diff uploads

16 years ago1st amf_controller tests, and some basic sanity check fixes
Dave Stubbs [Sat, 8 Nov 2008 19:41:29 +0000 (19:41 +0000)]
1st amf_controller tests, and some basic sanity check fixes

16 years agoIgnore the bits in tmp/
Daniel Silverstone [Sat, 8 Nov 2008 19:33:41 +0000 (19:33 +0000)]
Ignore the bits in tmp/

16 years agoCREATE FUNCTION statement for pgsql
Daniel Silverstone [Sat, 8 Nov 2008 19:21:03 +0000 (19:21 +0000)]
CREATE FUNCTION statement for pgsql

16 years agoSupport building a postgresql binding for maptile_for_point
Daniel Silverstone [Sat, 8 Nov 2008 19:18:22 +0000 (19:18 +0000)]
Support building a postgresql binding for maptile_for_point

16 years agocosmetic tweaks to user settings form + move 'Mapper since' field onto user profile...
Harry Wood [Sat, 8 Nov 2008 19:03:25 +0000 (19:03 +0000)]
cosmetic tweaks to user settings form + move 'Mapper since' field onto user profile view

16 years agocorrecting typo on gps_points fixtures
Andy Allan [Sat, 8 Nov 2008 18:59:06 +0000 (18:59 +0000)]
correcting typo on gps_points fixtures

16 years agomove fulltext indexes to monkeypatch, since not all dbs have a fulltext analogue
Andy Allan [Sat, 8 Nov 2008 18:44:38 +0000 (18:44 +0000)]
move fulltext indexes to monkeypatch, since not all dbs have a fulltext analogue

16 years agoMove db engine changing into db adaptor monkeypatch
Andy Allan [Sat, 8 Nov 2008 18:04:36 +0000 (18:04 +0000)]
Move db engine changing into db adaptor monkeypatch

16 years agolast of the auto_increments removed from the migrations
Andy Allan [Sat, 8 Nov 2008 17:39:16 +0000 (17:39 +0000)]
last of the auto_increments removed from the migrations

16 years agoFixing boo-boo in r11802 - but you can assign integers to booleans on all dbs
Andy Allan [Sat, 8 Nov 2008 17:08:51 +0000 (17:08 +0000)]
Fixing boo-boo in r11802 - but you can assign integers to booleans on all dbs

16 years agoMoving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though
Andy Allan [Sat, 8 Nov 2008 16:47:02 +0000 (16:47 +0000)]
Moving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though

16 years agomessage with a logo and link to Contact page
Harry Wood [Sat, 8 Nov 2008 16:41:51 +0000 (16:41 +0000)]
message with a logo and link to Contact page

16 years agoBoolean correctness in migrations
Andy Allan [Sat, 8 Nov 2008 15:01:14 +0000 (15:01 +0000)]
Boolean correctness in migrations

16 years agoMake the confrm button into a confirm button
Daniel Silverstone [Sat, 8 Nov 2008 14:11:45 +0000 (14:11 +0000)]
Make the confrm button into a confirm button

16 years agoError message for version mismatch is now more informative.
Matt Amos [Sat, 8 Nov 2008 14:07:34 +0000 (14:07 +0000)]
Error message for version mismatch is now more informative.

16 years agomove bigint_pk id column into table def, no need to be an add_column
Andy Allan [Sat, 8 Nov 2008 12:30:42 +0000 (12:30 +0000)]
move bigint_pk id column into table def, no need to be an add_column

16 years agofixing one cmd that was missed in the resync
Shaun McDonald [Sat, 8 Nov 2008 12:16:42 +0000 (12:16 +0000)]
fixing one cmd that was missed in the resync

16 years agoResyncing from head 10895:11795
Shaun McDonald [Sat, 8 Nov 2008 11:52:58 +0000 (11:52 +0000)]
Resyncing from head 10895:11795

16 years agoAdding some diary fixtures and test stubs
Shaun McDonald [Sat, 8 Nov 2008 11:34:58 +0000 (11:34 +0000)]
Adding some diary fixtures and test stubs

16 years agoChange bigint id column to monkeypatching-friendly syntax
Andy Allan [Sat, 8 Nov 2008 11:01:39 +0000 (11:01 +0000)]
Change bigint id column to monkeypatching-friendly syntax

16 years agomore boolean correcting
Dave Stubbs [Sat, 8 Nov 2008 10:48:07 +0000 (10:48 +0000)]
more boolean correcting

16 years agoAdded a query method for querying bounding boxes, times and users of changesets....
Matt Amos [Fri, 7 Nov 2008 18:24:34 +0000 (18:24 +0000)]
Added a query method for querying bounding boxes, times and users of changesets. Needs (much) more testing.

16 years agofix the indentation only
Shaun McDonald [Fri, 7 Nov 2008 15:08:43 +0000 (15:08 +0000)]
fix the indentation only

16 years agosome boolean correctness work
Andy Allan [Fri, 7 Nov 2008 13:51:09 +0000 (13:51 +0000)]
some boolean correctness work

16 years agoadd fixme
Andy Allan [Fri, 7 Nov 2008 13:27:03 +0000 (13:27 +0000)]
add fixme

16 years agouse boolean flags when using boolean columns
Andy Allan [Fri, 7 Nov 2008 13:24:18 +0000 (13:24 +0000)]
use boolean flags when using boolean columns

16 years agoBooleans should be true/false - coding style comments welcome
Andy Allan [Fri, 7 Nov 2008 11:36:34 +0000 (11:36 +0000)]
Booleans should be true/false - coding style comments welcome

16 years agoD'oh! Fixed stupid errors in changeset controller.
Matt Amos [Fri, 7 Nov 2008 11:36:00 +0000 (11:36 +0000)]
D'oh! Fixed stupid errors in changeset controller.

16 years agousers fixtures should all have creation times
Andy Allan [Fri, 7 Nov 2008 11:21:46 +0000 (11:21 +0000)]
users fixtures should all have creation times

16 years agoBooleans should be true/false for compatibility with other db adapters
Andy Allan [Fri, 7 Nov 2008 11:20:25 +0000 (11:20 +0000)]
Booleans should be true/false for compatibility with other db adapters

16 years agoOoops. Added missing access control to changeset controller.
Matt Amos [Thu, 6 Nov 2008 19:10:19 +0000 (19:10 +0000)]
Ooops. Added missing access control to changeset controller.