Tom Hughes
03fb042591
Merge branch 'master' into openid
2010-07-28 21:39:46 +01:00
Tom Hughes
723cb57e6d
Don't put MemoryLimit class in the OSM module as it breaks autoloading
2010-07-19 18:15:40 +01:00
Tom Hughes
5e2b8d087c
Make memory limits configurable and make them work with passenger
2010-07-19 18:01:42 +01:00
Tom Hughes
8abe7ec6ed
Fix typo that stopped monkey patch working
2010-07-19 12:36:30 +01:00
Tom Hughes
6a3cadb52d
Merge branch 'master' into openid
2010-06-16 21:18:44 +01:00
Tom Hughes
c38de8027f
Correct name of ActiveRecord
2010-06-15 17:12:55 +01:00
Tom Hughes
8af14faa49
Make database offline mode work
2010-06-15 10:07:39 +01:00
Tom Hughes
f980e7e4a6
Completely replace rails' version of pk_and_sequence_for
...
Falling back to the rails code for pk_and_sequence_for doesn't work
because we still wind up retrying the slow version of the query for
tables with no primary key. So just replace it instead.
2010-06-14 13:00:49 +01:00
Tom Hughes
a0af70cfb4
Monkey patch rails to make system table query efficient
...
Rails tries to query the system tables to find the primary key
and it's controlling sequence, but it doesn't specify that it is
looking for objects of class "pg_class" so the pg_depend table
has to be sequentially scanned instead of being accessed using
the index.
Tests on the production database show that the time taken for
this query drops from 3.5s to 15ms if the index is used.
2010-06-14 12:43:39 +01:00
Tom Hughes
dc35b597a2
Merge branch 'master' into openid
...
Conflicts:
config/locales/is.yml
2010-06-07 22:24:24 +01:00
Tom Hughes
d516198bbe
Update to rails 2.3.8
...
Update site to use rails 2.3.8 which also allows us to drop the
globalize2 plugin as the core rails i18n code can now do fallback
and pluralization.
2010-05-26 19:54:10 +01:00
Tom Hughes
a108e9290c
Update OpenID authentication plugin to latest version
2010-05-16 10:41:23 +01:00
Tom Hughes
691f759da4
Update various files to match current rails versions
2010-05-13 10:54:16 +01:00
Tom Hughes
546250f60b
Load wiki link data at startup and shorten some file names
2010-04-20 21:05:22 +01:00
Tom Hughes
aa90ace7b4
Add placeholder file for nb translations and arrange to merge nb and
...
no translations at startup.
2010-03-18 22:33:05 +00:00
Tom Hughes
94f19ce3b3
Use a better HTML sanitizer that makes sure the HTML is well formed and
...
can add rel="nofollow" to links.
2010-03-06 15:38:13 +00:00
Tom Hughes
07172166da
Monkey patch rails to work around stupid I18n bug where it looks up
...
time.formats in the locale and then looks for the requested format in
that hash, thereby not doing fallback correctly. To make things worse
it then defaults to just using the requested format name as the format...
2010-03-01 00:55:27 +00:00
Tom Hughes
ee5735d550
Fixed warning.
2010-01-13 13:41:13 +00:00
Tom Hughes
70bb55b35e
Handle Timeout::Error exceptions which are caught by ActiveRecord.
2010-01-11 09:55:55 +00:00
Tom Hughes
6af3f93761
Update the :en and :sl pluralizers to default to :other if a more
...
specific key does not exist. This then allows r16613 to be reverted
as there is no need to distinguish the cases. Fixes #2087 .
2009-07-21 20:23:07 +00:00
Tom Hughes
9830cb27e1
Add custom pluralizer for Slovenian. Fixes #2049 .
2009-07-13 08:47:59 +00:00
Tom Hughes
c82fedb0d6
Remove asset tag monkey patch as it is no longer having any effect
...
due to rails changes.
2009-06-26 13:08:36 +00:00
Tom Hughes
983dbb5353
Removed patch for rails 2.2 bug.
2009-06-04 09:22:31 +00:00
Tom Hughes
0bb18dd2be
Removed available_locales monkey patch as rails 2.3 has it already.
2009-06-04 08:56:40 +00:00
Tom Hughes
a493d3676d
Log missing translations.
2009-05-31 17:10:03 +00:00
Tom Hughes
5294e4d989
Send notification messages in the target user's language.
2009-05-31 16:10:53 +00:00
Tom Hughes
3d906fe8c6
Merge 15165:15373 from trunk.
2009-05-31 11:32:32 +00:00
Shaun McDonald
ae70ea2858
Remove the languages hash since we are now storing the languages in a table. Translated the posted by line in diary entry list.
2009-05-27 15:50:55 +00:00
Tom Hughes
68eeaabb9d
Altered to match rails 2.3.2 implementation.
2009-05-22 23:49:08 +00:00
Shaun McDonald
6fe22d41a9
Reverting config file that shouldn't have been committed.
2009-05-22 18:41:33 +00:00
Shaun McDonald
53b4d645d8
First stage of i18n. Some migrations and extra plugins.
2009-05-22 18:36:17 +00:00
Matt Amos
95c6974763
Disabled automatic parsing of XML to a hash in request bodies for a modest 15% speedup.
2009-05-21 23:48:34 +00:00
Tom Hughes
4f6dc55683
Check for wrapped timeout errors properly.
2009-05-21 21:55:30 +00:00
Shaun McDonald
d4954bc7b1
Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call.
2009-05-21 14:05:09 +00:00
Tom Hughes
e3cbeeae94
Monkey patch rails to ensure OSM::APITimeoutError exceptions are not lost.
2009-05-21 09:57:21 +00:00
Tom Hughes
d6e605414d
Set a custom return path so that we can ignore bounces.
2009-05-09 12:17:10 +00:00
Tom Hughes
72b05157ae
Remove old code to exit after 10000 requests as the memory limit code
...
should do a better job of controlling things.
2009-04-26 23:14:20 +00:00
Tom Hughes
1bd3710134
Increase the hard memory limit and set a lower soft limit that does a
...
clean restart between requests.
2009-04-26 16:56:40 +00:00
Tom Hughes
66c95aa3f9
Work out which session store class to use automatically.
2009-04-16 20:29:18 +00:00
Shaun McDonald
90ec90f13d
reverting last change, which included posgres config specific things
2009-04-13 00:10:37 +00:00
Shaun McDonald
2c52b06716
Remove duplication that is in the test helper. Adding tests for the passing of no content, and the wrong method used. Also ensuring that there has been a changeset added to the db when it is created.
2009-04-13 00:04:24 +00:00
Tom Hughes
c8ee135104
Merge 12304:14009 from trunk.
2009-03-08 13:02:37 +00:00
Tom Hughes
07c1cd6b98
Update to use libxml 1.0.0 gem.
2009-03-08 11:34:46 +00:00
Paul Gillard
302fd06d46
2009-02-10 22:50:13 +00:00
Paul Gillard
3f30bc53f5
Ensure homepage source validates.
2009-02-10 22:42:45 +00:00
Shaun McDonald
0ff1214f86
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.
2008-11-24 18:55:24 +00:00
Shaun McDonald
d74e2196a0
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.
2008-11-15 01:11:27 +00:00
Richard Fairhurst
3065af398d
0.6-friendly Potlatch (work in progress). DO NOT SET POTLATCH_USE_SQL=false as it won't work
2008-11-09 23:50:03 +00:00
Shaun McDonald
bf29550db8
Resyncing from head 10895:11795
2008-11-08 11:52:58 +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