aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
Commit message (Collapse)AuthorAgeLines
* 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
* Redirect /list/recent requests to /list/all.Seb Bacon2012-01-14-1/+4
|
* Further refinement for issue #340Seb Bacon2012-01-13-2/+2
|
* Merge branch 'release/0.5' of https://github.com/sebbacon/alaveteli into ↵Robin Houston2012-01-12-10/+16
|\ | | | | | | | | | | | | release/0.5 Conflicts: app/controllers/request_controller.rb
| * Further fix for issue #328.Seb Bacon2012-01-12-2/+1
| |
| * Return 404 for non-existent 'details' pages. Fixes #325Seb Bacon2012-01-12-4/+7
| |
| * Return 403 when attachment "folders" are spidered. Fixes #340Seb Bacon2012-01-12-3/+7
| |
* | Set a variable the view relies onRobin Houston2012-01-12-0/+1
|/
* Fix problem with typeahead searches containing " - " characters and similar. ↵Seb Bacon2012-01-11-7/+1
| | | | Closes #328
* Fix zip-attachment functionalitySeb Bacon2012-01-06-1/+2
|
* Don't wildcard search public bodies when making a request (it causes ↵Seb Bacon2012-01-06-2/+1
| | | | performance issues and isn't useful here anyway)
* Ensure we only parse emails when needed by referring to a new last_parsed ↵Seb Bacon2011-12-21-0/+1
| | | | field on incoming_messages. Currently mails are always parsed just-in-time, but could be parsed as a queue in the future.
* Merge branch 'develop' into cache-foi-attachments-sebSeb Bacon2011-12-21-6/+8
|\ | | | | | | | | Conflicts: app/controllers/request_controller.rb