Commit graph

1314 commits

Author SHA1 Message Date
Andy Allan
061d777266 Boolean correctness in migrations 2008-11-08 15:01:14 +00:00
Daniel Silverstone
7d786c32ed Make the confrm button into a confirm button 2008-11-08 14:11:45 +00:00
Matt Amos
22005a38a6 Error message for version mismatch is now more informative. 2008-11-08 14:07:34 +00:00
Andy Allan
204fa87064 move bigint_pk id column into table def, no need to be an add_column 2008-11-08 12:30:42 +00:00
Shaun McDonald
fb627873c2 fixing one cmd that was missed in the resync 2008-11-08 12:16:42 +00:00
Shaun McDonald
bf29550db8 Resyncing from head 10895:11795 2008-11-08 11:52:58 +00:00
Shaun McDonald
c6592045c4 Adding some diary fixtures and test stubs 2008-11-08 11:34:58 +00:00
Andy Allan
e598ee220f Change bigint id column to monkeypatching-friendly syntax 2008-11-08 11:01:39 +00:00
Dave Stubbs
67a50e848c more boolean correcting 2008-11-08 10:48:07 +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
Shaun McDonald
748a7a0a03 fix the indentation only 2008-11-07 15:08:43 +00:00
Andy Allan
c253ce3399 some boolean correctness work 2008-11-07 13:51:09 +00:00
Andy Allan
2700e5110f add fixme 2008-11-07 13:27:03 +00:00
Andy Allan
7058d836f7 use boolean flags when using boolean columns 2008-11-07 13:24:18 +00:00
Andy Allan
1140237cae Booleans should be true/false - coding style comments welcome 2008-11-07 11:36:34 +00:00
Matt Amos
527b6f76e3 D'oh! Fixed stupid errors in changeset controller. 2008-11-07 11:36:00 +00:00
Andy Allan
3cb759f085 users fixtures should all have creation times 2008-11-07 11:21:46 +00:00
Andy Allan
e156663723 Booleans should be true/false for compatibility with other db adapters 2008-11-07 11:20:25 +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
d43a327a95 Implemented changeset bounding box handling for relations, based on the conversation on the mailing list. Its a bit complex... 2008-11-06 17:56:24 +00:00
Shaun McDonald
6855b2604c Doing the update version part of the migration in chunks of 10000 instead of all at once so that MySQL doesn't choke with running out of table locks. 2008-11-06 17:15:22 +00:00
Shaun McDonald
89d8fc1bad Removing depricated config option in the development env 2008-11-06 14:20:07 +00:00
Shaun McDonald
ee1da78649 Fixing the migration so that it will better match the live databetter. 2008-11-05 18:42:38 +00:00
Shaun McDonald
e97e4df3c8 Updating the cycle map to use all zoom levels as per Andy Allan's message. 2008-11-05 17:37:14 +00:00
Matt Amos
02fbcf5f06 Added first attempt at bounding box support in changesets and tests for the same. 2008-11-04 15:52:22 +00:00
Shaun McDonald
0ca779e5bd Minor fix (integer => bigint) to one of the migrations so that they will run fully again. 2008-11-04 13:54:45 +00:00
Shaun McDonald
183ffc7864 Adding an extra test to make sure that the correct response is returned when an invalid changeset action is uploaded. 2008-11-03 18:54:19 +00:00
Shaun McDonald
e932a69bd7 Additional api tests for the changes. Also making sure that you cannot request a change of 0 length, so that you can detect erronious input. 2008-11-03 18:05:19 +00:00
Shaun McDonald
635daf1773 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. 2008-11-03 00:12:18 +00:00
Shaun McDonald
7418fc7e86 Add a description meta tag for the all web pages. Wording probably needs to be improved. 2008-10-31 18:02:12 +00:00
Shaun McDonald
9705105681 Starting the gpx trace testing with additional fixtures 2008-10-30 18:50:45 +00:00
Matt Amos
32b280eb8d Added custom validator for UTF-8 strings. 2008-10-29 16:27:15 +00:00
Shaun McDonald
b4c46ba4b8 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. 2008-10-29 15:45:48 +00:00
Matt Amos
9f3a4a5e01 Better error message and test for invalid UTF-8 sequences. 2008-10-29 15:33:23 +00:00
Tom Hughes
a770819d0b Put back the units on all the zero values. Just because you can remove
something doesn't mean it's a good idea...
2008-10-29 13:49:45 +00:00
Hugh Barnes
bd3bddc848 Fix for bug #1242, css foreground set + css shorthands used 2008-10-29 13:05:14 +00:00
Shaun McDonald
252c2f7022 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. 2008-10-28 20:42:48 +00:00
Andy Allan
38f4e17865 message title shouldn't accept invalid utf-8 sequences - test currently fails 2008-10-28 18:34:05 +00:00
Matt Amos
94cf6ece2d Made full test a bit more thorough. 2008-10-28 15:01:17 +00:00
Matt Amos
c05111fdca Added tests for relations for way/relation and a bit of DRYing up. 2008-10-28 14:49:51 +00:00
Shaun McDonald
79284559af Adding stub functional test files for all the controllers that should have tests written for them. 2008-10-28 12:49:51 +00:00
Shaun McDonald
427becc1db 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. 2008-10-28 12:27:10 +00:00
Shaun McDonald
e18c33f733 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. :-) 2008-10-27 18:45:28 +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
Shaun McDonald
b45dd63283 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. 2008-10-26 23:43:37 +00:00
Grant Slater
a46a4b4eb9 Bots Disallow /edit* & /login*, Nothing to see here... move right along. 2008-10-26 17:26:39 +00:00
Richard Fairhurst
6ad0acf29a fix broken YAML 2008-10-24 14:35:01 +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