aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
Commit message (Collapse)AuthorAgeLines
* Allow external requests to be hidden from the admin interface.Louise Crow2012-08-22-6/+10
|
* Use user_name instead of user.name to handle external requests.Louise Crow2012-08-22-4/+7
|
* Don't pass a page param of less than one through to Xapian, treat it as a ↵Louise Crow2012-08-21-3/+6
| | | | param of 1. Fixes #557.
* Fail with NotFound if request slug doesn't existRobin Houston2012-08-20-23/+13
| | | | Closes #554.
* Do not send email for external requestsRobin Houston2012-08-20-1/+1
|
* Merge branch 'wdtk' into developLouise Crow2012-08-16-11/+32
|\ | | | | | | | | | | | | Conflicts: app/controllers/admin_request_controller.rb config/httpd.conf spec/models/info_request_spec.rb
| * 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.
| * Method spacing.Louise Crow2012-08-16-0/+3
| |
| * Fix typo in comment.Louise Crow2012-08-16-8/+17
| |
* | Default to dry run and don't raise an error when this page is visited normallyHenare Degan2012-08-11-7/+2
| |
* | Revert "Revert "Revert "In the API, when parsing posted responses, assume ↵Robin Houston2012-08-01-9/+2
| | | | | | | | | | | | all multipart mail parts that are Tempfiles are attachments""" This reverts commit 49ff1a1c0304cd292d3eae80dc0b91b2f83727b9.
* | Move variable restore to an ensure blockRobin Houston2012-08-01-8/+12
| | | | | | | | | | | | I think this whole thing is redundant anyway, since the locale is set at the start of each request, but if we’re going to save/restore this value then we might as well do so correctly.
* | Set locale even for errorsRobin Houston2012-08-01-0/+7
| | | | | | | | | | | | | | | | | | | | | | The locale was not being set correctly for error pages, causing some order-dependent test failures, e.g.: script/spec spec/controllers/services_controller_spec.rb spec/integration/errors_spec.rb was failing. Many many many thanks to Louise Crow for tracking this one down!
* | Revert "Revert "In the API, when parsing posted responses, assume all ↵Seb Bacon2012-07-17-2/+9
| | | | | | | | | | | | multipart mail parts that are Tempfiles are attachments"" This reverts commit d4a700da1760fc2ba09cf19613a995569e4965ea.
* | Merge branch 'feature/public-body-api-2a' into developRobin Houston2012-07-16-3/+4
|\ \
| * | Revert "In the API, when parsing posted responses, assume all multipart mail ↵Robin Houston2012-07-16-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parts that are Tempfiles are attachments" This change makes the tests fail, I think, and doesn’t have (IMHO) a desperately strong rationale, so let’s try it without for now. This reverts commit 4490482cedf362390b25efe453232ac1b7dfce99.
| * | In the API, when parsing posted responses, assume all multipart mail parts ↵Seb Bacon2012-07-11-2/+9
| | | | | | | | | | | | that are Tempfiles are attachments
| * | Calls to API that are expected to return JSON are always expected to return ↵Seb Bacon2012-07-09-2/+3
| | | | | | | | | | | | something, even when there are no errors.
| * | Ensure (at least in the most basic cases) that views support recent ↵Seb Bacon2012-07-09-1/+1
| | | | | | | | | | | | "external request" changes (mainly that InfoRequests no longer necessarily have a User).
* | | Factor popup banner out into own partial, for easier setting/unsetting ↵Seb Bacon2012-07-13-0/+4
| | | | | | | | | | | | (including from themes). Fixes #524
* | | Support regular expressions in CensorRules; also support 'global' ↵Seb Bacon2012-07-13-0/+2
| |/ |/| | | | | CensorRules that aren't attached to a User or Request or Public Body (but don't expose this in the admin UI). Fixes #33
* | Include request_id as well as event_id in the JSONRobin Houston2012-07-05-0/+1
|/
* JSON new events feedRobin Houston2012-07-04-21/+48
|
* Atom feed of request eventsRobin Houston2012-07-04-5/+15
| | | | | | | | | | We need not only new requests, but new outgoing correspondence of any sort. The idea is that this feed will contain any event that would have triggered an email to be sent to the public body, so can be used as an alternative, equivalent way to stay up-to-date with happenings on WDTK (or the Alaveteli installation of choice).
* Atom feed approximately working (?)Robin Houston2012-07-04-1/+1
|
* WIP new requests feedRobin Houston2012-07-04-0/+14
|
* Unset any "using_admin" flag when logging outSeb Bacon2012-06-27-0/+1
|
* Show the admin navigation bar when browsing the main site. Fixes #512Seb Bacon2012-06-27-1/+1
|
* Don't allow non-superusers to access admin interface (eek!) Fixes #515Seb Bacon2012-06-27-2/+5
|
* 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
| * Merge branch 'master' into developSeb Bacon2012-06-20-4/+9
| |\
| | * 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.
* | | Merge branch 'feature/public-body-api' into developRobin Houston2012-06-20-3/+174
|\ \ \ | |/ / |/| |
| * | API controller tests all passRobin Houston2012-06-18-3/+3
| | |
| * | WIP APIRobin Houston2012-06-07-28/+8
| | |
| * | WIP attachment uploading via APIRobin Houston2012-06-06-1/+21
| | |
| * | API: Some testing of show_requestRobin Houston2012-06-06-0/+1
| | |
| * | API: we can add a response to a requestRobin Houston2012-06-06-0/+81
| | |
| * | more commentsRobin Houston2012-06-06-0/+3
| | |
| * | Just include all the error messagesRobin Houston2012-06-06-5/+1
| | | | | | | | | | | | I can’t see any way the error could be triggered by the caller, anyway.
| * | Improve explanationRobin Houston2012-06-06-2/+4
| | | | | | | | | | | | | | | I struggled to understand this comment. I hope the new wording is clearer.
| * | API create_request method is workingRobin Houston2012-06-06-18/+40
| | | | | | | | | | | | | | | | | | "when using the API", it "should create a new request from a POST", AND IT DOES!
| * | Work in progress on getting new APIController test to pass. They don't, yet!Seb Bacon2012-06-06-1/+21
| | |
| * | Reorder methodsRobin Houston2012-06-06-4/+4
| | |
| * | Authenticated APIRobin Houston2012-06-06-0/+46
| | | | | | | | | | | | | | | | | | An authenticated API for public bodies. So far just one method is implemented, which gives the details of a request in JSON format.
| * | 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.
* / After a dry-run, cause the public body "import" button to use the data ↵Seb Bacon2012-06-12-9/+13
|/ | | | uploaded in the dry-run. Fixes #507