Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Don't save a public body version when updating the stats. | Louise Crow | 2013-09-05 | -1/+3 |
| | ||||
* | Don't re-index body when updating stats | Louise Crow | 2013-09-05 | -0/+1 |
| | ||||
* | Add a verbosity flag to public body stats task | Louise Crow | 2013-09-05 | -1/+3 |
| | ||||
* | Merge branch 'hotfix/0.13.0.2' into rails-3-develop | Louise Crow | 2013-09-04 | -1/+1 |
|\ | ||||
| * | Add a timeout to document conversion with wvtext - it can hang.0.13.0.2hotfix/0.13.0.2 | Louise Crow | 2013-09-04 | -1/+1 |
| | | ||||
* | | Merge branch 'hotfix/0.13.0.1' into rails-3-develop | Louise Crow | 2013-09-04 | -1/+1 |
|\| | ||||
| * | Fix wrong method name.hotfix/0.13.0.1 | Louise Crow | 2013-08-28 | -1/+1 |
| | | ||||
* | | Merge remote-tracking branch 'origin/remove-old-i18n-patches' into ↵ | Louise Crow | 2013-09-04 | -105/+0 |
|\ \ | | | | | | | | | | rails-3-develop | |||
| * | | Remove apparently unneeded I18n customization | Mark Longair | 2013-08-28 | -105/+0 |
| |/ | | | | | | | | | | | The tests still pass with this code removed, so remove it - if it's still needed, it should be readded with tests that would fail without. | |||
* | | Merge branch 'body-statistics' into rails-3-develop | Louise Crow | 2013-09-04 | -0/+54 |
|\ \ | |/ |/| | ||||
| * | Add a config option to enable the public body statistics page | Mark Longair | 2013-08-20 | -0/+1 |
| | | ||||
| * | Improve calculation of PublicBody statistics columns | Mark Longair | 2013-08-20 | -18/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On PublicBody, we don't need to update info_requests_count because that's already done with :counter_cache. On the other hand, info_requests_successful_count and info_requests_not_held_count can't be updated easily with counter_cache (since they need conditions to be attached). Instead we update them in post_save and post_destroy, as suggested here: http://blog.douglasfshearer.com/post/17495285851/custom-counter-cache-with-conditions This also adds tests to ensure that the after_(save|destroy) callbacks are called and that they modify the counts correctly. | |||
| * | Make the minimum requests for statistics configurable | Mark Longair | 2013-08-20 | -0/+1 |
| | | | | | | | | This adds the MINIMUM_REQUESTS_FOR_STATISTICS config option. | |||
| * | Add a page with experimental statistics on public bodies | Mark Longair | 2013-08-20 | -0/+67 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The statistics on the status of the requests to a particular public body are too slow to calculate on-the-fly, so this commit adds: * Extra columns on public_bodies to store counts of the successful, not held, and overdue request counts for each public body. * A rake task which should be run periodically to update the overdue request count column. If Javascript is not available, the summary statistics are shown as tables. If Javascript is available, graphs are drawn with Flot. | |||
* | | Mark all events for the fixed requests as needing a reindex.release/0.13 | Louise Crow | 2013-08-20 | -9/+16 |
|/ | ||||
* | Merge branch 'feature/further-request-event-fixes' into rails-3-develop | Louise Crow | 2013-08-15 | -0/+30 |
|\ | ||||
| * | Add task for cleaning up bad request histories. | Louise Crow | 2013-08-15 | -0/+30 |
| | | ||||
* | | Only check commonlib, don't try to split the response into segments (as @mhl ↵ | Louise Crow | 2013-08-08 | -7/+8 |
| | | | | | | | | points out, the case where the initial character is a space is somewhat confusing), just grab the first character of the whole string and check it against expected values. | |||
* | | Call it an error, not a warning. | Louise Crow | 2013-07-30 | -4/+4 |
| | | ||||
* | | Get first character in a way that will work in Ruby 1.8 and 1.9 | Louise Crow | 2013-07-30 | -1/+1 |
| | | ||||
* | | Add a rake task to print a warning if the state of a submodule is not what ↵ | Louise Crow | 2013-07-30 | -0/+27 |
|/ | | | | we expect it to be. | |||
* | Merge branch 'feature/localisation-fixes' into rails-3-develop | Louise Crow | 2013-07-29 | -7/+39 |
|\ | ||||
| * | Move some more config into AlaveteliLocalization so that it can be called ↵ | Louise Crow | 2013-07-24 | -0/+8 |
| | | | | | | | | outside initialization e.g. in tests. | |||
| * | Clarify comment. | Louise Crow | 2013-07-23 | -1/+1 |
| | | ||||
| * | Patch Globalize to compensate for the way gettext_i18n_rails patches ↵ | Louise Crow | 2013-07-23 | -6/+17 |
| | | | | | | | | 118n.locale in the handling of locales with underscores. Fixes #999. | |||
| * | Extract code for setting locales in FastGettext and I18n | Louise Crow | 2013-07-18 | -0/+13 |
| | | ||||
* | | Merge branch 'hotfix/0.12.0.1' into rails-3-develop | Louise Crow | 2013-07-29 | -0/+9 |
|\ \ | |/ |/| | | | | | | | Conflicts: locale/he_IL/app.po locale/nb_NO/app.po | |||
| * | Backport https://github.com/mikel/mail/pull/405 to prevent stack overflow ↵0.12.0.1hotfix/0.12.0.1 | Louise Crow | 2013-07-26 | -0/+9 |
| | | | | | | | | errors when parsing large mails with envelopes on memory limited systems. | |||
* | | Add test case and fix for unrecognized encoding in subject line | Louise Crow | 2013-06-25 | -0/+15 |
| | | ||||
* | | Handle the case where an encoding is extracted that iconv doesn't handle. | Louise Crow | 2013-06-25 | -1/+4 |
|/ | ||||
* | Merge branch 'hotfix/0.11.0.13' into rails-3-develop | Louise Crow | 2013-06-17 | -1/+1 |
|\ | | | | | | | | | Conflicts: spec/mailers/outgoing_mailer_spec.rb | |||
| * | Fix a security vulnerability: eval used in quoting display name0.11.0.12 | Mark Longair | 2013-06-17 | -1/+1 |
| | | | | | | | | | | | | | | | | | | This use of eval allows arbitrary remote code execution on parsing of a maliciously formed email. Two tests are updated to match the behaviour of the new code to return the display name - these introduce extra escaping, so should be innocous. | |||
* | | Add a rake task to re-extract any missing attachments | Mark Longair | 2013-06-12 | -0/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can see the number of emails that would be reparsed by doing: bundle exec rake temp:reextract_missing_attachments To actually reparse the incoming emails and rextract attachments for any that were missing, you would do: bundle exec rake temp:reextract_missing_attachments[commit] (In fact, the 'commit' can be any non-empty string.) | |||
* | | Merge branch 'hotfix/0.11.0.7' into rails-3-develop | Louise Crow | 2013-06-10 | -39/+69 |
|\| | | | | | | | | | Conflicts: spec/models/info_request_spec.rb | |||
| * | Add extra debug linehotfix/0.11.0.7 | Louise Crow | 2013-06-10 | -0/+1 |
| | | ||||
| * | Fix syntax errors, add some debug output. | Louise Crow | 2013-06-10 | -8/+22 |
| | | ||||
| * | Add a task for cleaning up user accounts that were created with a space in ↵ | Louise Crow | 2013-06-10 | -0/+65 |
| | | | | | | | | the email address. | |||
| * | Remove old temp tasks. | Louise Crow | 2013-06-10 | -50/+0 |
| | | ||||
* | | Allow the donation url to be configured. Closes #909. | Louise Crow | 2013-06-07 | -0/+1 |
| | | ||||
* | | Merge remote-tracking branch 'origin/themes-install-refactor' into ↵ | Louise Crow | 2013-06-05 | -5/+7 |
|\ \ | | | | | | | | | | rails-3-develop | |||
| * | | themes:install: minor refactoring of checking out a ref | Mark Longair | 2013-05-24 | -5/+7 |
| | | | ||||
* | | | Merge branch 'release/0.11' into rails-3-develop | Louise Crow | 2013-06-04 | -3/+31 |
|\ \ \ | | |/ | |/| | ||||
| * | | Backport ruby 1.9 fix for trailing = sign in message headers from mail 2.5release/0.11 | Louise Crow | 2013-06-04 | -0/+16 |
| | | | ||||
| * | | Parse the 'to' address as if on a real mail to trigger quoted string encoding. | Louise Crow | 2013-06-03 | -1/+3 |
| | | | ||||
| * | | Fix for subject lines with invalid UTF-8 as the last character | Mark Longair | 2013-06-03 | -2/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to be the bug mentioned here: http://po-ru.com/diary/fixing-invalid-utf-8-in-ruby-revisited/ That explains that some versions of Iconv don't ignore invalid characters when converting to UTF-8 even with //IGNORE if that invalid character happens to be at the end of the string. In fact, as Matthew Somerville pointed out, with some versions of iconv (e.g. 1.14 on Mac OS, apparently) it's necessary to add and remove more than one space at the end, in case the first character of the byte sequence indicates a long sequence. We add and remove 4 to be on the safe side. | |||
* | | | Merge remote-tracking branch ↵ | Louise Crow | 2013-06-04 | -7/+5 |
|\ \ \ | |/ / |/| | | | | | 'openaustralia_github/inline_search_method_refactor' into rails-3-develop | |||
| * | | Inline method InfoRequest.full_search | Matthew Landauer | 2013-03-25 | -7/+5 |
| | | | ||||
* | | | Remove the (we think) now unneeded will_paginate customization | Mark Longair | 2013-05-29 | -59/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | We believe that this customization is no longer needed, and in any case would need to be rewritten for will_paginate 3.0.4. If any pagination bugs do arise, a test should be added that reproduces that problem, since currently the tests pass without this extension. | |||
* | | | Merge branch 'tmail-to-mail-tests' into rails-3-develop | Mark Longair | 2013-05-28 | -12/+303 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merge brings in a number of tests and fixes for the handling of mail under Mail / Rails 3 instead of TMail / Rails 2. Conflicts: config/initializers/alaveteli.rb | |||
| * | | | Suppress STDERR noise from the tnef binary | Mark Longair | 2013-05-22 | -1/+1 |
| | | | |