rails.git
10 years agopass common API error text through to Potlatch so it can be shown to the user
Richard Fairhurst [Fri, 24 Apr 2009 17:44:52 +0000 (17:44 +0000)]
pass common API error text through to Potlatch so it can be shown to the user

10 years agolots of relations changes for speed and version management
Richard Fairhurst [Fri, 24 Apr 2009 14:46:52 +0000 (14:46 +0000)]
lots of relations changes for speed and version management

10 years agoPatching better 412 error messages from mis-commit on old api06 branch.
Matt Amos [Fri, 24 Apr 2009 10:08:15 +0000 (10:08 +0000)]
Patching better 412 error messages from mis-commit on old api06 branch.

10 years agoBackout broken attempt at making case insensitive authentication work
Tom Hughes [Thu, 23 Apr 2009 23:46:45 +0000 (23:46 +0000)]
Backout broken attempt at making case insensitive authentication work
on Postgres. As implemented this forces a table scan to authenticate
users which is ridiculous to save people pressing the shift key.

10 years agoThe render method needs to be last, otherwise the error header won't get set. Needs...
Shaun McDonald [Thu, 23 Apr 2009 21:03:59 +0000 (21:03 +0000)]
The render method needs to be last, otherwise the error header won't get set. Needs tests.

10 years agoHack a way to make the email and display name case insensitive for logging in, based...
Shaun McDonald [Thu, 23 Apr 2009 19:20:08 +0000 (19:20 +0000)]
Hack a way to make the email and display name case insensitive for logging in, based on a suggestion by firefishy to use ILIKE. Changes requested from users on mailing list. Includes some tests to check the case insensitivity of the username, and and e-mail address on login.

10 years agoAdded better error messages on 412 precondition failed.
Matt Amos [Thu, 23 Apr 2009 18:39:36 +0000 (18:39 +0000)]
Added better error messages on 412 precondition failed.

10 years agofix another way-node/Way-Node problem in amf_controller; add WinIE JS compatibility...
Richard Fairhurst [Thu, 23 Apr 2009 17:54:17 +0000 (17:54 +0000)]
fix another way-node/Way-Node problem in amf_controller; add WinIE JS compatibility via ExternalInterface (we can use this later to alert for a commit message if none is provided)

10 years agochange updatelinks params so that Potlatch can pass in the view bbox. Also check...
Harry Wood [Thu, 23 Apr 2009 14:38:40 +0000 (14:38 +0000)]
change updatelinks params so that Potlatch can pass in the view bbox. Also check if it's missing. closes #1738

10 years agoactually delete nodes on deleteway (might help)
Richard Fairhurst [Thu, 23 Apr 2009 12:01:42 +0000 (12:01 +0000)]
actually delete nodes on deleteway (might help)

10 years agofix nodes bug
Richard Fairhurst [Thu, 23 Apr 2009 08:32:26 +0000 (08:32 +0000)]
fix nodes bug

10 years agolighttpd increase server.max-fds from 1024 (default) to 8192 after lighttpd deadlock.
Grant Slater [Thu, 23 Apr 2009 02:00:15 +0000 (02:00 +0000)]
lighttpd increase server.max-fds from 1024 (default) to 8192 after lighttpd deadlock.

10 years agofix word-wrap in "close changeset" dialogue
Richard Fairhurst [Wed, 22 Apr 2009 23:57:37 +0000 (23:57 +0000)]
fix word-wrap in "close changeset" dialogue

10 years agoremove debug stuff
Richard Fairhurst [Wed, 22 Apr 2009 19:42:22 +0000 (19:42 +0000)]
remove debug stuff

10 years agochange relation_member 'type' case, to match change in database
Richard Fairhurst [Wed, 22 Apr 2009 17:47:06 +0000 (17:47 +0000)]
change relation_member 'type' case, to match change in database

10 years agoFix multiple issues with links to /history from the homepage. Thanks to Ed Avis for...
Thomas Wood [Wed, 22 Apr 2009 17:08:04 +0000 (17:08 +0000)]
Fix multiple issues with links to /history from the homepage. Thanks to Ed Avis for bringing this to our attention.

10 years agoFixing the create relation test, which now also tests to make sure that private users...
Shaun McDonald [Wed, 22 Apr 2009 14:38:23 +0000 (14:38 +0000)]
Fixing the create relation test, which now also tests to make sure that private users cannot edit.

10 years agoUse postgres interval syntax.
Tom Hughes [Wed, 22 Apr 2009 13:41:17 +0000 (13:41 +0000)]
Use postgres interval syntax.

10 years agoThe active flag is still an integer for some reason, not a boolean.
Tom Hughes [Wed, 22 Apr 2009 13:34:12 +0000 (13:34 +0000)]
The active flag is still an integer for some reason, not a boolean.
Closes #1727.

10 years agoadding the maximum number of elements in a changeset to the capabilities call, includ...
Shaun McDonald [Wed, 22 Apr 2009 11:03:22 +0000 (11:03 +0000)]
adding the maximum number of elements in a changeset to the capabilities call, including test update

10 years agobit more debug
Richard Fairhurst [Wed, 22 Apr 2009 08:37:55 +0000 (08:37 +0000)]
bit more debug

10 years agoadd temporary relations debug code
Richard Fairhurst [Wed, 22 Apr 2009 08:25:33 +0000 (08:25 +0000)]
add temporary relations debug code

10 years agoremove Bavaria
Richard Fairhurst [Wed, 22 Apr 2009 07:41:21 +0000 (07:41 +0000)]
remove Bavaria

10 years agofixing some of the relation tests. Some adjustments to the fixtures.
Shaun McDonald [Wed, 22 Apr 2009 00:42:23 +0000 (00:42 +0000)]
fixing some of the relation tests. Some adjustments to the fixtures.

10 years agoibid
Richard Fairhurst [Tue, 21 Apr 2009 23:59:27 +0000 (23:59 +0000)]
ibid

10 years agothere is not HTML attribute named "padding". either use "cellpadding" (this patch...
Frederik Ramm [Tue, 21 Apr 2009 23:55:02 +0000 (23:55 +0000)]
there is not HTML attribute named "padding". either use "cellpadding" (this patch), or use the CSS attribute (i.e. style="padding: 0px").

10 years agoQuick and dirty fix for relation tags issue.
Matt Amos [Tue, 21 Apr 2009 23:40:27 +0000 (23:40 +0000)]
Quick and dirty fix for relation tags issue.

10 years agomodified "user" link in "recent changes" list to point directly to user's list of...
Frederik Ramm [Tue, 21 Apr 2009 23:38:43 +0000 (23:38 +0000)]
modified "user" link in "recent changes" list to point directly to user's list of changes which is what you expect in this context, rather than going to that user's user page and having to click "edits" there.

10 years agofix id/relid inconsistency
Richard Fairhurst [Tue, 21 Apr 2009 23:36:53 +0000 (23:36 +0000)]
fix id/relid inconsistency

10 years agoFixed search controller to have some chance of working.
Tom Hughes [Tue, 21 Apr 2009 23:35:19 +0000 (23:35 +0000)]
Fixed search controller to have some chance of working.

10 years agoForce selection to fail when no traces match the tag.
Tom Hughes [Tue, 21 Apr 2009 21:54:44 +0000 (21:54 +0000)]
Force selection to fail when no traces match the tag.

10 years agoDon't generate an IN condition with an empty list.
Tom Hughes [Tue, 21 Apr 2009 21:51:02 +0000 (21:51 +0000)]
Don't generate an IN condition with an empty list.

10 years agoUse correct names for member types.
Tom Hughes [Tue, 21 Apr 2009 21:37:27 +0000 (21:37 +0000)]
Use correct names for member types.

10 years agoFix bbox display again, how do we keep mixing our lons and lats?
Thomas Wood [Tue, 21 Apr 2009 21:30:37 +0000 (21:30 +0000)]
Fix bbox display again, how do we keep mixing our lons and lats?

10 years agoAdding more tests for updating relation tags.
Matt Amos [Tue, 21 Apr 2009 20:33:16 +0000 (20:33 +0000)]
Adding more tests for updating relation tags.

10 years agoExtra test for updating relation tags.
Matt Amos [Tue, 21 Apr 2009 19:53:14 +0000 (19:53 +0000)]
Extra test for updating relation tags.

10 years agoMore test fixes after fixture changes.
Matt Amos [Tue, 21 Apr 2009 19:51:43 +0000 (19:51 +0000)]
More test fixes after fixture changes.

10 years agoFixed formatting and stuff in fixtures.
Matt Amos [Tue, 21 Apr 2009 18:37:24 +0000 (18:37 +0000)]
Fixed formatting and stuff in fixtures.

10 years agoSlight performance improvement (a reported 2s) by skipping db query if no bbox is...
Thomas Wood [Tue, 21 Apr 2009 18:04:43 +0000 (18:04 +0000)]
Slight performance improvement (a reported 2s) by skipping db query if no bbox is passed in on /history
Thanks apmon for the report.

10 years agoAdd new fixtures for testing multiple tags on a relation.
Shaun McDonald [Tue, 21 Apr 2009 17:54:59 +0000 (17:54 +0000)]
Add new fixtures for testing multiple tags on a relation.

10 years agoPedantic change to descriptive text - "Recently closed" to "Recently edited"
Thomas Wood [Tue, 21 Apr 2009 17:35:54 +0000 (17:35 +0000)]
Pedantic change to descriptive text - "Recently closed" to "Recently edited"

10 years agoAdd an expiry header to trace images.
Tom Hughes [Tue, 21 Apr 2009 17:10:35 +0000 (17:10 +0000)]
Add an expiry header to trace images.

10 years agoHopefully fix the old_node_controller tests.
Shaun McDonald [Tue, 21 Apr 2009 17:07:14 +0000 (17:07 +0000)]
Hopefully fix the old_node_controller tests.

10 years agoAdd a geocoder backend.
Tom Hughes [Tue, 21 Apr 2009 15:08:36 +0000 (15:08 +0000)]
Add a geocoder backend.

10 years agoArrays have a length method, not a count method.
Tom Hughes [Tue, 21 Apr 2009 11:36:41 +0000 (11:36 +0000)]
Arrays have a length method, not a count method.

10 years agoMake error messages more helpful
Richard Fairhurst [Tue, 21 Apr 2009 11:27:03 +0000 (11:27 +0000)]
Make error messages more helpful

10 years agoSplit out subscript to see which one is erroring
Richard Fairhurst [Tue, 21 Apr 2009 10:14:28 +0000 (10:14 +0000)]
Split out subscript to see which one is erroring

10 years agoConnect up the versioned capabilities call again.
Tom Hughes [Tue, 21 Apr 2009 09:32:19 +0000 (09:32 +0000)]
Connect up the versioned capabilities call again.

10 years agoFix MySQL dependency
Richard Fairhurst [Tue, 21 Apr 2009 09:24:07 +0000 (09:24 +0000)]
Fix MySQL dependency

10 years agoAdd missing image.
Tom Hughes [Tue, 21 Apr 2009 08:51:23 +0000 (08:51 +0000)]
Add missing image.

10 years agoRemove reference to non-existent images.
Tom Hughes [Tue, 21 Apr 2009 08:08:02 +0000 (08:08 +0000)]
Remove reference to non-existent images.

10 years agoSwitch database config to postgresql.
Tom Hughes [Tue, 21 Apr 2009 07:56:52 +0000 (07:56 +0000)]
Switch database config to postgresql.

10 years agoUpdate lighttpd config for 0.6 api.
Tom Hughes [Tue, 21 Apr 2009 07:54:00 +0000 (07:54 +0000)]
Update lighttpd config for 0.6 api.

10 years agoRemove explicit load of mysql and rails automatically loads the
Tom Hughes [Tue, 21 Apr 2009 07:52:47 +0000 (07:52 +0000)]
Remove explicit load of mysql and rails automatically loads the
right database driver already.

10 years agoImprove comments.
Tom Hughes [Tue, 21 Apr 2009 07:51:26 +0000 (07:51 +0000)]
Improve comments.

10 years agonginx fix expiry to actually work on images/javascripts/etc
Grant Slater [Tue, 21 Apr 2009 02:42:29 +0000 (02:42 +0000)]
nginx fix expiry to actually work on images/javascripts/etc

10 years agoPull in block rules from the lighttpd config.
Tom Hughes [Mon, 20 Apr 2009 21:14:39 +0000 (21:14 +0000)]
Pull in block rules from the lighttpd config.

10 years agoEnsure :not_found status is returned, catching RecordNotFound doesn't work as isnt...
Thomas Wood [Mon, 20 Apr 2009 20:58:42 +0000 (20:58 +0000)]
Ensure :not_found status is returned, catching RecordNotFound doesn't work as isnt raised when finding :first.

10 years agoGive munin access to some statistics.
Tom Hughes [Mon, 20 Apr 2009 20:14:05 +0000 (20:14 +0000)]
Give munin access to some statistics.

10 years agoExpose relation version to api and fix remaining server status typo in old_relation...
Thomas Wood [Mon, 20 Apr 2009 19:44:58 +0000 (19:44 +0000)]
Expose relation version to api and fix remaining server status typo in old_relation controller.

10 years agoIncrease fastcgi timeout to 300s for bulk api requests.
Tom Hughes [Mon, 20 Apr 2009 19:30:23 +0000 (19:30 +0000)]
Increase fastcgi timeout to 300s for bulk api requests.

10 years agoRemove trailing whitespace.
Tom Hughes [Mon, 20 Apr 2009 19:25:10 +0000 (19:25 +0000)]
Remove trailing whitespace.

10 years agoStrip asset tags from user images.
Tom Hughes [Mon, 20 Apr 2009 19:22:38 +0000 (19:22 +0000)]
Strip asset tags from user images.

10 years agoFix bug introduced in r14610 (.downcase in wrong place)
Thomas Wood [Mon, 20 Apr 2009 19:13:52 +0000 (19:13 +0000)]
Fix bug introduced in r14610 (.downcase in wrong place)
No need to sanitise type of relation member, since will only be a Node, Way, or Relation and not user-provided.

10 years agoDetabify.
Tom Hughes [Mon, 20 Apr 2009 18:57:05 +0000 (18:57 +0000)]
Detabify.

10 years agonginx fixes, including http://api.openstreetmap/0.6/... support
Grant Slater [Mon, 20 Apr 2009 18:45:20 +0000 (18:45 +0000)]
nginx fixes, including api.openstreetmap/0.6/... support

10 years agoRemove location block from abuse placeholder so it applies server wide.
Tom Hughes [Mon, 20 Apr 2009 17:32:33 +0000 (17:32 +0000)]
Remove location block from abuse placeholder so it applies server wide.

10 years agofix bug in the case of the action in the data browser when linking to relation members
Shaun McDonald [Mon, 20 Apr 2009 17:28:01 +0000 (17:28 +0000)]
fix bug in the case of the action in the data browser when linking to relation members

10 years agoRestrict 7 day expiry on /export to just the embed.html page.
Tom Hughes [Mon, 20 Apr 2009 17:27:12 +0000 (17:27 +0000)]
Restrict 7 day expiry on /export to just the embed.html page.

10 years agoReturn 404 for unknown API versions instead of 403.
Tom Hughes [Mon, 20 Apr 2009 17:17:00 +0000 (17:17 +0000)]
Return 404 for unknown API versions instead of 403.

10 years agoApply patch by Lars from osm dev list with the typo
Shaun McDonald [Mon, 20 Apr 2009 17:15:28 +0000 (17:15 +0000)]
Apply patch by Lars from osm dev list with the typo

10 years agoStrip asset tags from public files.
Tom Hughes [Mon, 20 Apr 2009 17:09:26 +0000 (17:09 +0000)]
Strip asset tags from public files.

10 years agoMove access_log configuration.
Tom Hughes [Mon, 20 Apr 2009 17:00:52 +0000 (17:00 +0000)]
Move access_log configuration.

10 years agoTidy things up and fix a few errors.
Tom Hughes [Mon, 20 Apr 2009 16:59:12 +0000 (16:59 +0000)]
Tidy things up and fix a few errors.

10 years agoRemove tabs.
Tom Hughes [Mon, 20 Apr 2009 16:39:24 +0000 (16:39 +0000)]
Remove tabs.

10 years agoAdd missing semicolon.
Tom Hughes [Mon, 20 Apr 2009 16:37:48 +0000 (16:37 +0000)]
Add missing semicolon.

10 years agoRemove private data.
Tom Hughes [Mon, 20 Apr 2009 16:37:36 +0000 (16:37 +0000)]
Remove private data.

10 years agoConvert to unix newlines.
Tom Hughes [Mon, 20 Apr 2009 16:37:12 +0000 (16:37 +0000)]
Convert to unix newlines.

10 years agonginx syntax tweaks
Grant Slater [Mon, 20 Apr 2009 15:38:48 +0000 (15:38 +0000)]
nginx syntax tweaks

10 years agoRewrite /0.n/... as /api/0.n/... for the api virtual host.
Tom Hughes [Mon, 20 Apr 2009 15:16:38 +0000 (15:16 +0000)]
Rewrite /0.n/... as /api/0.n/... for the api virtual host.

10 years agoAdd some extra indexes to the changesets table.
Tom Hughes [Mon, 20 Apr 2009 14:54:05 +0000 (14:54 +0000)]
Add some extra indexes to the changesets table.

10 years agocorrect nginx syntax
Grant Slater [Mon, 20 Apr 2009 14:37:46 +0000 (14:37 +0000)]
correct nginx syntax

10 years agoinitial untest nginx config. API 0.6 tweaking still required.
Grant Slater [Mon, 20 Apr 2009 14:20:33 +0000 (14:20 +0000)]
initial untest nginx config. API 0.6 tweaking still required.

10 years agoAdd missing files from api06 merge.
Tom Hughes [Mon, 20 Apr 2009 14:09:35 +0000 (14:09 +0000)]
Add missing files from api06 merge.

10 years agoAdd changeset indexes to nodes, ways and relations.
Tom Hughes [Mon, 20 Apr 2009 13:39:20 +0000 (13:39 +0000)]
Add changeset indexes to nodes, ways and relations.

10 years agoAdd a user index to the changeset table.
Tom Hughes [Mon, 20 Apr 2009 13:31:57 +0000 (13:31 +0000)]
Add a user index to the changeset table.

10 years agoadd mongrel_cluster config for potential usage later
Grant Slater [Mon, 20 Apr 2009 13:25:28 +0000 (13:25 +0000)]
add mongrel_cluster config for potential usage later

10 years agoMerge vendor tree from api06 branch.
Tom Hughes [Mon, 20 Apr 2009 09:17:10 +0000 (09:17 +0000)]
Merge vendor tree from api06 branch.

10 years agoRemove plugin externals.
Tom Hughes [Mon, 20 Apr 2009 09:13:21 +0000 (09:13 +0000)]
Remove plugin externals.

10 years agoMerge api06 branch to trunk.
Tom Hughes [Mon, 20 Apr 2009 09:12:03 +0000 (09:12 +0000)]
Merge api06 branch to trunk.

10 years agoAdd condition for user not found in trace controller.
Thomas Wood [Sun, 19 Apr 2009 21:22:34 +0000 (21:22 +0000)]
Add condition for user not found in trace controller.
Closes #1710

10 years agoFix map in IE by deferring Vector layer addition to page load (note that deferred...
Thomas Wood [Sun, 19 Apr 2009 21:03:41 +0000 (21:03 +0000)]
Fix map in IE by deferring Vector layer addition to page load (note that deferred script running is _not_ the same as onload), also only add the Vector layer as required, so to save some overhead.
I've trimmed down the unrequired options on the layer, they're defaulted from the map.
Thanks firefishy for the report.

10 years agoReverse order of marker and vector layers to stop the vector layer
Tom Hughes [Sun, 19 Apr 2009 11:12:28 +0000 (11:12 +0000)]
Reverse order of marker and vector layers to stop the vector layer
grabbing all the mouse clicks. Closes #1718.

10 years agoDon't register a setHome handler unless we have the flag checkbox
Tom Hughes [Sun, 19 Apr 2009 11:00:37 +0000 (11:00 +0000)]
Don't register a setHome handler unless we have the flag checkbox
prsent on the page.

10 years agoSend replies to the right user. Closes #1720.
Tom Hughes [Sun, 19 Apr 2009 10:36:04 +0000 (10:36 +0000)]
Send replies to the right user. Closes #1720.

10 years agoFixing some of the tests, adding the new tests to make sure that you can't edit when...
Shaun McDonald [Sat, 18 Apr 2009 17:17:22 +0000 (17:17 +0000)]
Fixing some of the tests, adding the new tests to make sure that you can't edit when your not a public user

10 years agoRemove trailing comma to make IE happy.
Tom Hughes [Sat, 18 Apr 2009 16:45:45 +0000 (16:45 +0000)]
Remove trailing comma to make IE happy.

10 years agoReject uploads unless the user has made their edits pubic.
Tom Hughes [Thu, 16 Apr 2009 21:50:20 +0000 (21:50 +0000)]
Reject uploads unless the user has made their edits pubic.

10 years agoFixed to work with merged changes to api availability checks.
Tom Hughes [Thu, 16 Apr 2009 21:38:29 +0000 (21:38 +0000)]
Fixed to work with merged changes to api availability checks.

10 years agoHandle MySQL/Postgres boolean differences.
Tom Hughes [Thu, 16 Apr 2009 21:16:09 +0000 (21:16 +0000)]
Handle MySQL/Postgres boolean differences.