aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
Commit message (Collapse)AuthorAgeLines
* Limit pagination on similar pages in line with new upper limit on page offset.Louise Crow2012-12-17-0/+2
|
* Only serve up 'similar' pages up to the offset we use for list.Louise Crow2012-12-17-0/+5
|
* Put download zips in a predictable location - sharded folders based on ↵Louise Crow2012-12-13-1/+4
| | | | request ID, rather than distributing them across the download directories by the generated SHA. Preserve the uniqueness of the subdirectory.
* Use helper method for download path, and use Rails.root instead of file ↵Louise Crow2012-12-13-1/+1
| | | | location.
* Check that a request is publicly visible before generating a download link.Louise Crow2012-12-13-9/+15
|
* Don't offer or allow viewing of an HTML version of a response attachment if ↵Louise Crow2012-12-13-0/+6
| | | | the request is hidden, or requester_only. Google docs viewer won't be able to access it, and our own conversion process currently can produce image files that will then be publicly viewable directly from the webserver (see config/httpd.conf). If necessary we can revisit this code to enable admins and requesters to view the HTML version created by our own conversion without adding these files to a path that is served directly by the web server.
* Handle the default blank string passed by Configuration moduleLouise Crow2012-10-25-1/+1
|
* Handle a blank convert command more explicitly.Louise Crow2012-10-25-1/+1
|
* Don't keep recalculating the request statusLouise Crow2012-10-23-14/+15
|
* Remove svn tags that are out of date as we are now using gitMatthew Landauer2012-10-09-2/+0
|
* Inline ConfigHelper force_registration_on_new_requestMatthew Landauer2012-09-25-1/+1
|
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-7/+6
|
* Record a status update by someone other than the request owner as a request ↵Louise Crow2012-09-11-6/+6
| | | | classification.
* Don't allow status updates on external requests from the front end interface ↵Louise Crow2012-08-23-1/+14
| | | | | | (they can still be changed from the admin interface). Final part of fix for #562.
* Don't error on a request to followup an external request.Louise Crow2012-08-23-0/+7
| | | | Partial solution to #562.
* Fail with NotFound if request slug doesn't existRobin Houston2012-08-20-19/+9
| | | | Closes #554.
* Do not send email for external requestsRobin Houston2012-08-20-1/+1
|
* When displaying attachments, only cache them out to files if they are ↵Louise Crow2012-08-16-3/+12
| | | | visible to everyone, so can be served up from a file cache without authentication.
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-06-23-4/+9
|\ | | | | | | | | | | | | | | Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
| * Only extend the cache time on InfoRequest views for sites with Varnish ↵Seb Bacon2012-06-20-1/+7
| | | | | | | | purging set up
| * Increase the time a page is cached for sites that are using Varnish. ↵Seb Bacon2012-06-20-1/+1
| | | | | | | | Relatedly, document the consequences of getting the Varnish config wrong; and make it easier to grep for problems with Varnish in the log.
| * Revert "Set a "Content-Disposition: attachment" header when downloading ↵Seb Bacon2012-06-15-2/+1
| | | | | | | | | | | | | | | | files. Closes #428" This reverts commit 506af7a640f63b17000ccfc5e1344bbc3039c913. See issue #428 for a discussion
| * Make emails requesting admin attention appear to come from the user who ↵Seb Bacon2012-06-12-1/+1
| | | | | | | | requested the attention, not the user who made the original request.
* | Improve explanationRobin Houston2012-06-06-2/+4
| | | | | | | | | | I struggled to understand this comment. I hope the new wording is clearer.
* | Redirect numeric request URLs in JSON mode tooRobin Houston2012-06-06-1/+1
|/ | | | | | URLs such as http://localhost:3000/en/request/106.json should be redirected to the corresponding named URL, including the .json on the end.
* Prevent spiders from reporting requestsRobin Houston2012-06-03-0/+6
| | | | | | | Make the "report request" button submit a POST rather than a GET request. Also restrict this action to logged-in users. Fixes #501.
* File.dirname(__FILE__) is not necessarily absoluteRobin Houston2012-06-03-1/+1
| | | | | | | It’s weird that there’s so much code here that implicitly assumes File.dirname(__FILE__) is an absolute path, because really in general it very much is not! This assumption was invalidated by the recent bundler-awareness changes.
* Test for reporting functionalitySeb Bacon2012-05-24-1/+3
|
* First stab at new feature. Adds new box in sidebar for reporting an issue, a ↵Seb Bacon2012-05-24-0/+11
| | | | | | new "needs admin attention"-type state to InfoRequests, a flag indicating that a request has ever been marked as needing admin attention, and a controller method and route for setting this state & flag. Also adds the reason something needs admin attention to the subject of the email that gets sent to administrators. Neeeds tests.
* Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-50/+50
| | | | wombleton:feature/440_sparkly_admin_css)
* Don't cache results from pages with different locales using the same key. ↵Seb Bacon2012-05-04-1/+1
| | | | Fixes #454
* Admin users clicking confirmation linksRobin Houston2012-03-13-1/+7
| | | | Fixes #446. See issue for details.
* Set a "Content-Disposition: attachment" header when downloading files. ↵Seb Bacon2012-02-15-1/+2
| | | | Closes #428
* Trailing whitespaceRobin Houston2012-02-10-1/+1
|
* Make /similar/request/NONESUCH a 404 not 500 errorRobin Houston2012-02-10-1/+3
| | | | Fixes #421.
* Change wording of rate-limited pageRobin Houston2012-02-05-0/+2
| | | | | Include information about what the per-day limit is, and when the user can next make a request. Fixes #412.
* issue #351 reduxRobin Houston2012-02-01-1/+4
| | | | Corrected diagnosis, test & fix for issue #351. Fixes #351.
* Keep message text if user is rate-limitedRobin Houston2012-01-31-4/+19
| | | | | | | If a user cannot make new requests because they are rate-limited, and they compose a request whilst logged out, include the text of the request in the message that explains about the rate limit so it is not lost.
* Rate limitingRobin Houston2012-01-29-2/+6
| | | | | | Add the capability to specify a limit to the number of requests a user can make per day, which can be turned off for specific users in the admin interface.
* Fix #372Robin Houston2012-01-26-1/+1
|
* Remove trailing spacesRobin Houston2012-01-26-1/+1
|
* Ensure short cache keys for interlock. Fixes #362Seb Bacon2012-01-24-1/+2
|
* 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-5/+8
| | | | large databases, the sorting of such large batches causes an extreme slowdown).
* Don't obscure user searches on request listing page behind cache. Fixes #256Robin Houston2012-01-19-1/+1
|
* Merge branch 'release/0.5' into wdtkRobin Houston2012-01-19-1/+2
|\ | | | | | | | | Conflicts: app/views/public_body/_search_ahead.rhtml
| * Return a 404 for broken attachment urls. Fixes #351.Seb Bacon2012-01-18-1/+2
| |
* | Forbid very slow-to-load results pagesRobin Houston2012-01-19-0/+7
|/ | | | Another temporary patch to protect the live site.
* Don't allow directory listings (better fix for and closes #340).Seb Bacon2012-01-17-10/+7
|
* include "return" or the rest of the controller still gets executed... ↵Seb Bacon2012-01-14-1/+1
| | | | Belongs with commit a39f71ee21739eb754688f185c59c3a7f209aaa8