aboutsummaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeLines
* No tabs for indentationRobin Houston2012-01-26-1/+1
|
* indentationRobin Houston2012-01-26-31/+31
|
* Fix #364 properly: third time lucky!Robin Houston2012-01-26-1/+1
|
* Fix #364 properly (?)Robin Houston2012-01-26-1/+1
|
* Fix #364Robin Houston2012-01-26-1/+1
|
* Clean up the indentationRobin Houston2012-01-26-95/+95
|
* Fix #372Robin Houston2012-01-26-1/+1
|
* Remove trailing spacesRobin Houston2012-01-26-1/+1
|
* Simplify search logic so it doesn't depend on sessions. Also fixes #338Seb Bacon2012-01-25-49/+24
|
* Make sure we show user's alerts on their profile page. Fixes #342Seb Bacon2012-01-25-41/+41
|
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkSeb Bacon2012-01-25-33/+5
|\ | | | | | | | | Conflicts: app/controllers/request_controller.rb
| * Remove references to removed database columnsRobin Houston2012-01-24-24/+2
| | | | | | | | | | Remove the references to raw_emails.data_text and data_binary, which have not existed since the summer.
| * Remove misleading copy-pasted commentRobin Houston2012-01-24-9/+1
| |
| * Logging for fragment cacheRobin Houston2012-01-21-0/+2
| |
| * bug fixRobin Houston2012-01-20-1/+1
| |
* | Return a 404 for missing user profile pictures. Fixes #363Seb Bacon2012-01-24-1/+2
| |
* | Ensure short cache keys for interlock. Fixes #362Seb Bacon2012-01-24-2/+3
| |
* | Bug: we are causing a 500 when trying to raise 404 because the arguments to ↵Seb Bacon2012-01-24-1/+2
|/ | | | the exception constructor are wrong.
* Don't allow users to page beyond a certain number of results (because in ↵Seb Bacon2012-01-20-6/+9
| | | | large databases, the sorting of such large batches causes an extreme slowdown).
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkRobin Houston2012-01-19-2/+2
|\
| * Don't obscure user searches on request listing page behind cache. Fixes #256Robin Houston2012-01-19-2/+2
| |
* | 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-36/+60
|\
| * Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkRobin Houston2012-01-19-20/+37
| |\
| | * Merge branch 'release/0.5' into wdtkRobin Houston2012-01-19-15/+19
| | |\ | | | | | | | | | | | | | | | | Conflicts: app/views/public_body/_search_ahead.rhtml
| | | * Return a 404 for broken attachment urls. Fixes #351.Seb Bacon2012-01-18-1/+2
| | | |
| | | * Don't raise an error if the user deletes a track through the UI. Fixes #353.Seb Bacon2012-01-18-8/+7
| | | |
| | | * Catch timeouts and other extra errors when connection to 3rd party websites ↵Seb Bacon2012-01-18-1/+1
| | | | | | | | | | | | | | | | fails.
| | | * Ensure request typeahead search is tested properly (and fix a validation error).Seb Bacon2012-01-18-1/+1
| | | |
| | | * Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5Seb Bacon2012-01-18-31/+17
| | | |\
| | | * | Fix paging bug for type ahead search. This wasn't caught because the spec ↵Seb Bacon2012-01-18-5/+8
| | | | | | | | | | | | | | | | | | | | didn't call "integrate_views", so the rendering part was mocked by RSpec instead of executed.
| | * | | Merge branch 'wdtk' of https://github.com/sebbacon/alaveteli into wdtkRobin Houston2012-01-19-10/+17
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: app/controllers/application_controller.rb
| | * | | | 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.
| * | | | | Whitespace cleanupRobin Houston2012-01-19-6/+6
| | |/ / / | |/| | |
| * | | | Forbid very slow-to-load results pagesRobin Houston2012-01-19-0/+7
| | | | | | | | | | | | | | | | | | | | Another temporary patch to protect the live site.
| * | | | Disable Xapian wildcardsRobin Houston2012-01-19-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not use FLAG_WILDCARD or FLAG_PARTIAL anywhere, because wildcard searches can crash the whole server as per http://trac.xapian.org/ticket/350 (e.g. http://www.whatdotheyknow.com/body/search_ahead?query=app will crash the server prior to this commit.) This is a temporary fix while we investigate the possibilities of the set_max_wildcard_expansion() method, which should make it possible to alleviate this issue.
| * | | | Clean up whitespace & indentationRobin Houston2012-01-18-10/+10
| |/ / /
* | | | Show some info about the Alaveteli version currently running. Fixes #319.Seb Bacon2012-01-19-0/+8
| | | |
* | | | Use an atomic write when storing email data.Seb Bacon2012-01-19-1/+1
| | | |
* | | | Don't choke on very long filenames when caching attachments. Fixes #349.Seb Bacon2012-01-19-1/+4
| | | |
* | | | Always show the right search snippet. Fixes #352.Seb Bacon2012-01-19-1/+21
|/ / /
* | | Also disable paging for type-ahead search resultsRobin Houston2012-01-17-1/+0
| | | | | | | | | | | | Same problem as previous commit to this (wdtk) branch.
* | | Disable paginationRobin Houston2012-01-17-1/+0
| |/ |/| | | | | | | Pagination for authority search results in the new request workflow seems to be broken very badly, so disable it for now.
* | Merge branch 'wdtk' into release/0.5Robin Houston2012-01-17-31/+17
|\ \ | |/ |/|
| * Force the 'C' locale for elinksRobin Houston2012-01-17-2/+2
| | | | | | | | | | The behaviour of elinks is locale-dependent. This patch forces LANG=C which makes the behaviour consistent across platforms.
| * Comment typoRobin Houston2012-01-17-1/+1
| |
| * Explicitly specify little-endian UCS-2Robin Houston2012-01-17-2/+2
| | | | | | | | | | because for some reason iconv is assuming big-endian on my MacBook Pro (OS X 10.7.2) unless told explicitly, and this causes test failure.
| * Use AlaveteliExternalCommand for unrtfRobin Houston2012-01-17-3/+1
| |
| * Use AlaveteliExternalCommand for pdf recompressionRobin Houston2012-01-17-7/+3
| |
| * Replace all `which command` callsRobin Houston2012-01-17-12/+8
| | | | | | | | | | | | | | | | | | | | The trouble with `which command` is twofold: - It spawns a whole shell just to find out the path to a binary, every time; - The results are environment-dependent, since they depend on $PATH. It would be better to specify the search path in the configuration file where everything else is specified rather than in the environment. This commit replaces it with the new mechanism from AlaveteliExternalCommand.