aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
Commit message (Collapse)AuthorAgeLines
* Rework the temporary storing of a csv file of public body info between a dry ↵Louise Crow2012-08-20-29/+67
| | | | run and real load. Use a temp file, not the session for the data. Also fixes #503.
* Whether a rule is a regex rule should not affect the redirect that happens ↵Louise Crow2012-08-14-2/+0
| | | | after you create it.
* Fix bug preventing CSV upload. Fixes #525 (needs tests!)Seb Bacon2012-07-19-7/+7
|
* Oh dear, a "revert revert revert" that reverts the "revert revert" that ↵Seb Bacon2012-07-17-9/+2
| | | | | | | | should never have been pushed in the first place. Sorry! Revert "Revert "Revert "In the API, when parsing posted responses, assume all multipart mail parts that are Tempfiles are attachments""" This reverts commit 49ff1a1c0304cd292d3eae80dc0b91b2f83727b9.
* 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
* Silly syntax bugRobin Houston2012-06-04-2/+2
| | | | | | Backslashes are interpreted twice inside backticks, once by Ruby and a second time by the shell, so you need twice as many as you think you do.
* Fix admin debug methodRobin Houston2012-06-04-6/+4
| | | | | | | | | | | > 10) admin debug (https://secure.mysociety.org/admin/foi/debug) - "you > are" - sentence that isn't finished > > 11) admin debug (https://secure.mysociety.org/admin/foi/debug) - > versioning incorrect & URLs to github malformed: > Alaveteli version: 0.5.2-297-g4ec7f6e > Alaveteli branch: (no > Alaveteli commit: 4ec7f6edbf2c00abc8464eafc889047f43533f90
* Log an event when a request is hiddenRobin Houston2012-06-04-1/+9
|
* Allow subject to be specified when request hiddenRobin Houston2012-06-03-1/+2
| | | | When a request is hidden by an admin, allow the subject line to be specified.
* 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-2/+2
| | | | | | | 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.
* Make the logic that tells you about other countries' Alavetelis prefer the ↵Seb Bacon2012-05-30-0/+3
| | | | browser language; and make the tests pass.
* Test for user turning email alerts off. Also includes a fix not to rely on ↵Seb Bacon2012-05-30-1/+1
| | | | HTTP_REFERER for subsequent redirect.
* Make it possible to view other people's activities on their own walls.Seb Bacon2012-05-30-5/+5
|