aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
Commit message (Collapse)AuthorAgeLines
* Merge remote-tracking branch 'openaustralia_github/calendar_days' into developLouise Crow2012-09-24-3/+5
|\
| * Make the way number of days are calculated (either by calendar or working ↵Matthew Landauer2012-09-24-3/+5
| | | | | | | | days) configurable
| * Fix: configuration for very late number of days wasn't being usedMatthew Landauer2012-09-24-2/+2
| |
| * Rename methodMatthew Landauer2012-09-24-3/+3
| |
* | Add an option to disable comments on a requestRobin Houston2012-09-19-0/+2
|/ | | | Closes #30.
* Allow InfoRequest.find_old_unclassified to accept an offset param so it can ↵Louise Crow2012-09-13-2/+3
| | | | be used in conjunction with pagination.
* Add a counter cache for the number of info_requests associated with public ↵Louise Crow2012-09-12-1/+1
| | | | bodies.
* Add some more efficient methods for getting old unclassified request counts, ↵Louise Crow2012-09-11-9/+36
| | | | and random sets of small numbers of old unclassified requests.
* Merge branch 'release/0.6.3' into developLouise Crow2012-08-22-10/+14
|\ | | | | | | | | | | | | | | Conflicts: app/controllers/admin_public_body_controller.rb app/views/admin_public_body/import_csv.rhtml spec/controllers/admin_public_body_controller_spec.rb spec/models/info_request_spec.rb
| * Apply global and public body censor rules to binary files.Louise Crow2012-08-14-9/+10
| |
| * Add association between public bodies and censor rules, have info_request ↵Louise Crow2012-08-14-1/+1
| | | | | | | | apply rules from its public body.
| * Add concept of global censor rules as orthogonal to regex censor rules. ↵Louise Crow2012-08-14-12/+15
| | | | | | | | Apply global rules to every request, not regex rules.
* | Email admins about external requests tooRobin Houston2012-08-21-2/+5
| | | | | | | | | | | | | | If someone reports an external request as needing administrator attention, we should email the administrators about it. Thanks for spotting this, @crowbot.
* | Fail with NotFound if request slug doesn't existRobin Houston2012-08-20-2/+4
| | | | | | | | Closes #554.
* | Do not send email for external requestsRobin Houston2012-08-20-2/+2
| |
* | Fix testsRobin Houston2012-08-20-1/+1
| | | | | | | | | | | | | | | | | | Also make the InfoRequest#is_old_unclassified? method a little more conservative, by returning false only is the is_external? method returns true. This makes it subtly inconsistent with InfoRequest.find_old_unclassified, but it is better I think to be subtly inconsistent than to risk breaking things that used to work.
* | External requests ought not to be considered old_unclassifiedRobin Houston2012-08-20-1/+2
| | | | | | | | | | We certainly do not want to send reminder emails for such requests, for example, since we do not know the email address to send them to.
* | Merge branch 'wdtk' into developLouise Crow2012-08-16-8/+14
|\ \ | |/ |/| | | | | | | | | Conflicts: app/controllers/admin_request_controller.rb config/httpd.conf spec/models/info_request_spec.rb
| * Add method all_can_view? which can be used to determine whether it is ok to ↵Louise Crow2012-08-16-8/+14
| | | | | | | | cache the associated objects for an info request in the file cache which will be served up without authentication.
* | Fix bug that only occurs when loading sample data - sometimes an InfoRequest ↵Seb Bacon2012-07-13-1/+1
| | | | | | | | doesn't have a PublicBody at the time its slug is being calculated.
* | Support regular expressions in CensorRules; also support 'global' ↵Seb Bacon2012-07-13-6/+3
|/ | | | CensorRules that aren't attached to a User or Request or Public Body (but don't expose this in the admin UI). Fixes #33
* WIP new requests feedRobin Houston2012-07-04-3/+3
|
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-06-23-2/+2
|\ | | | | | | | | | | | | | | 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-2/+2
| |\
| | * Make emails requesting admin attention appear to come from the user who ↵Seb Bacon2012-06-12-2/+2
| | | | | | | | | | | | requested the attention, not the user who made the original request.
* | | Merge branch 'feature/public-body-api' into developRobin Houston2012-06-20-3/+40
|\ \ \ | |/ / |/| |
| * | WIP APIRobin Houston2012-06-07-2/+2
| | |
| * | Non-logged-in users can create requestsRobin Houston2012-06-06-3/+3
| | | | | | | | | | | | | | | Make the info_request validation a bit more forgiving, so that non- logged-in users may create requests.
| * | Fix indexing of info_request_eventsRobin Houston2012-06-06-0/+13
| | | | | | | | | | | | | | | Even external requests need to be indexed, for which we need a slug representing the user.
| * | API: we can add a response to a requestRobin Houston2012-06-06-0/+8
| | |
| * | External requestsRobin Houston2012-06-06-1/+17
| |/ | | | | | | | | Add data model support for “external” requests, i.e. requests added via the API rather than made using the site.
* / Remove empty unused methodRobin Houston2012-06-07-3/+0
|/
* Merge branch 'feature/easy-request-hiding-for-admin' into developSeb Bacon2012-05-28-1/+7
|\
| * Support easy hiding of requests for admins. Currently not exposed in core ↵Seb Bacon2012-05-25-1/+7
| | | | | | | | admin interface (requires adminbootstraptheme).
* | Merge branch 'develop' of github.com:sebbacon/alaveteli into developDavid Cabo2012-05-28-39/+68
|\|
| * Further annotation correctionsSeb Bacon2012-05-24-21/+22
| |
| * Re-annotate modelsSeb Bacon2012-05-24-21/+22
| |
| * First stab at new feature. Adds new box in sidebar for reporting an issue, a ↵Seb Bacon2012-05-24-2/+8
| | | | | | | | | | | | 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.
| * Merge from wombleton:feature/440_sparkly_admin_cssSeb Bacon2012-05-23-2/+6
| | | | | | | | | | | | | | Includes a couple of additional fixes: * Remember to HTML-quote things that could come from users * Fix form post action for editing users
| * Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-34/+34
| | | | | | | | wombleton:feature/440_sparkly_admin_css)
| * Don't ever create more than one entry for each URL that we want Varnish to ↵Seb Bacon2012-05-04-3/+6
| | | | | | | | purge.
| * Use routing system to work out URL of request to purge, rather than hard ↵Seb Bacon2012-05-02-1/+5
| | | | | | | | coding it.
| * More changes and refactoring to make purges work.Seb Bacon2012-04-20-13/+8
| |
| * first stab at sending PURGE requests to upstream varnish for request pages. ↵Seb Bacon2012-03-13-0/+15
| | | | | | | | Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.
* | Fix not I18n'd email address descriptionDavid Cabo2012-05-28-1/+5
|/
* Make sure acts_as_xapian is loaded only onceRobin Houston2012-01-12-1/+0
| | | | | | | | | | | This silences the warnings: warning: already initialized constant MSET_MAX_TRIES warning: already initialized constant MSET_MAX_DELAY coming from vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb and also resolves an XXXX-marked issue.
* Ensure model schema documentation is up to date.Seb Bacon2012-01-09-10/+4
|
* Ensure we only parse emails when needed by referring to a new last_parsed ↵Seb Bacon2011-12-21-1/+0
| | | | field on incoming_messages. Currently mails are always parsed just-in-time, but could be parsed as a queue in the future.
* WIP on caching attachmentsSeb Bacon2011-12-12-3/+5
|
* I18nize stringsFaton Selishta2011-11-10-10/+10
|