aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
Commit message (Collapse)AuthorAgeLines
* Record URL and PID *before* a request is processedRobin Houston2012-01-19-0/+1
| | | | | | | (If DEBUG_RECORD_MEMORY is enabled) This is useful for tracking down bugs that cause Rails to go into an infinite or very long loop, as the recent Xapian wildcard bug does.
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkSeb Bacon2012-01-19-8/+24
|\
| * Merge branch 'release/0.5' into wdtkRobin Houston2012-01-19-3/+6
| |\ | | | | | | | | | | | | Conflicts: app/views/public_body/_search_ahead.rhtml
| | * Catch timeouts and other extra errors when connection to 3rd party websites ↵Seb Bacon2012-01-18-1/+1
| | | | | | | | | | | | fails.
| | * Fix paging bug for type ahead search. This wasn't caught because the spec ↵Seb Bacon2012-01-18-2/+5
| | | | | | | | | | | | didn't call "integrate_views", so the rendering part was mocked by RSpec instead of executed.
| * | Limit Xapian wildcard expansionsRobin Houston2012-01-19-5/+18
| |/ | | | | | | | | | | | | | | | | | | | | Wildcard searches in Xapian can expand uncontrollably, consuming all available RAM and crashing the server. This has been a real problem on WhatDoTheyKnow.com. The underlying issue is tracked in http://trac.xapian.org/ticket/350 This changeset imposes a limit on wildcard expansion. The type-ahead search will first try a wildcard query, and if that fails because of too much expansion will fall back to a plain non-wildcard search.
* / Don't choke on very long filenames when caching attachments. Fixes #349.Seb Bacon2012-01-19-1/+4
|/
* Actually do a proper ORed and partial match query, rather than fix parsing ↵Seb Bacon2012-01-17-10/+18
| | | | errors ad hoc as I find them that result from the workaround code. Fixes #328 (for good, I hope).
* Fail silently if third party services are broken or unavailable. Fixes #354.Seb Bacon2012-01-17-1/+11
|
* Fix bug introduced in cec2c545e0a10e0641c4ee67839c88d872b394b8, related to ↵Seb Bacon2012-01-13-1/+1
| | | | issue #343.
* Show internal_review (and some other) items in the "unresolved" list. Fixes ↵Seb Bacon2012-01-13-1/+1
| | | | #344.
* Ensure we show "all requests" in order that they were last updated. FIxes #343.Seb Bacon2012-01-13-1/+1
|
* Correction to commit 4808347cb65556756d38b60b25fa9761f92c4513Seb Bacon2012-01-13-1/+0
|
* Fix further special character searches as per issue #328Seb Bacon2012-01-13-0/+1
|
* Further fix for issue #328.Seb Bacon2012-01-12-2/+2
|
* Return 403 when attachment "folders" are spidered. Fixes #340Seb Bacon2012-01-12-1/+5
|
* Fix problem with typeahead searches containing " - " characters and similar. ↵Seb Bacon2012-01-11-0/+21
| | | | Closes #328
* Ignore last-seen-item variables for the purposes of varnish caching. Fixes ↵Seb Bacon2012-01-09-4/+4
| | | | issue #324.
* Send email notifications on exceptionsSeb Bacon2012-01-09-1/+5
|
* Remove temporary patch, found a way of adding code from themes without new ↵David Cabo2011-09-23-14/+0
| | | | controller classes
* Ugly hack to fix _() in production when themes define controllers (kind of)David Cabo2011-09-20-1/+15
|
* Only store last visited public body for logged in users. Otherwise it ↵Seb Bacon2011-09-16-5/+9
| | | | breaks caching rather a lot, for little benefit.
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developDavid Cabo2011-09-03-3/+13
|\
| * Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-3/+13
| | | | | | | | emails. Also internationalize more strings at the same time. Fixes #163.
* | Merge branch 'asktheeu-new-design' into develop (update New Request workflow ↵David Cabo2011-09-01-1/+3
|\ \ | |/ |/| | | to match new wireframes)
| * Merge branch 'master' of github.com:sebbacon/alaveteli into asktheeuDavid Cabo2011-08-12-8/+17
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: locale/cy/app.po locale/de/app.po locale/es/app.po locale/fr/app.po locale/sq/app.po locale/sr/app.po locale/sr@latin/app.po
| * | Move log-in point to before Preview and fix modal sign-in and sign-up redirectsDavid Cabo2011-08-11-1/+3
| | |
* | | Merge branch 'develop' into feature/add-recaptchaSeb Bacon2011-08-30-2/+9
|\ \ \
| * | | Additional changes omitted from commit ↵Seb Bacon2011-08-30-2/+9
| | | | | | | | | | | | | | | | 9d8388c03d0faeaca29d233a340c58bd65f28a97 (distinguish 404s and 500s), fixes #161.
* | | | Present a reCaptcha on the signup form to foreign visitors (judging from ↵Seb Bacon2011-08-30-0/+11
|/ / / | | | | | | | | | their IP address). Fixes #157 (at least as a starter).
* | | Add tests & fixes for new search/filtering functionalitySeb Bacon2011-08-29-2/+2
| | |
* | | Fixes to get tests to pass following addition of new search / filter ↵Seb Bacon2011-08-29-1/+1
| | | | | | | | | | | | functionality
* | | Further work in progress on better search functionalitySeb Bacon2011-08-29-32/+49
| | |
* | | more work in progress on search formsSeb Bacon2011-08-29-23/+49
| | |
* | | First stab at filtering on the "View requests" pageSeb Bacon2011-08-29-0/+55
| |/ |/|
* | I18n'd hardcoded WhatDoTheyKnow strings, mostly in mails. Use named variable ↵David Cabo2011-08-11-6/+7
| | | | | | | | substitution in gettext strings.
* | Introduce config setting to ignore browser language settingsSeb Bacon2011-08-08-1/+5
| |
* | Ensure we use sensible fallbacks for setting the default / initial locale ↵Seb Bacon2011-08-08-1/+1
| | | | | | | | for a user. (Partially) fixes #114
* | Fail silently if there's no user matching one referenced in the current ↵Seb Bacon2011-08-03-1/+5
|/ | | | session. Fixes #105
* Add cache headers to various pages (in three categories: short, medium, and ↵Seb Bacon2011-07-25-1/+23
| | | | long).
* Add a flag to turn off logging memory usage, as (a) this is a debug setting, ↵Seb Bacon2011-07-25-6/+11
| | | | and (b) it's not cross-platform anyway (causes issues for people developing on OS X)
* Move various hard-coded strings to config fileSeb Bacon2011-07-07-2/+1
|
* I18n string for controllersFaton Selishta2011-06-30-1/+1
|
* Specific code for our requirements (kosovo law, our request etc..)Faton Selishta2011-06-02-1/+1
|
* move locale-setting logic locally (are likely to want to override it)Seb Bacon2011-03-10-11/+18
|
* make site_name a globally available helperSeb Bacon2011-03-10-0/+10
|
* top-level gettext functions already availableSeb Bacon2011-03-10-0/+3
|
* make site_name a globally available helperSeb Bacon2011-03-10-0/+8
|
* top-level gettext functions already availableSeb Bacon2011-03-10-1/+0
|
* initial, basic i18n support with gettextSeb Bacon2011-03-10-1/+1
|