aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
Commit message (Collapse)AuthorAgeLines
* 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
|
* Simplify the "Send follow up" / "Reply" UI: only offer singe "Write a reply" ↵Seb Bacon2011-09-15-1/+4
| | | | option, and on the next page, give the user the opportunity to change the recipient from the default (the last valid sender of a message) to any other valid recipient. Closes #35.
* I18n'ize some stringsFaton Selishta2011-09-05-3/+3
|
* Merge branch 'asktheeu-new-design' into develop (update New Request workflow ↵David Cabo2011-09-01-2/+5
|\ | | | | | | to match new wireframes)
| * Remove hardcoded status list from InfoRequestEvent, use InfoRequest one insteadDavid Cabo2011-08-24-2/+5
| |
* | First stab at filtering on the "View requests" pageSeb Bacon2011-08-29-1/+2
|/
* When displaying information about how overdue something is, use values from ↵Seb Bacon2011-08-12-0/+2
| | | | the config file, rather than hard coded ones. Fixes #130.
* Guess holding pen emails based on having a correct hash and an incorrect id. ↵Seb Bacon2011-08-08-10/+27
| | | | Closes #117
* Log the reason why an incoming mail is routed to the holding pen, and ↵Seb Bacon2011-08-03-4/+11
| | | | display it to administrators. Closes #107.
* Rescue NameErrors when attempting to load custom states (for the case where ↵Seb Bacon2011-07-25-1/+1
| | | | the file exists, but it's empty)
* Merge branch 'master' of github.com:sebbacon/alaveteliSeb Bacon2011-07-25-1/+1
|\
| * catch MissingSourceFile instead of NameError when including custom states, ↵David Cabo2011-07-23-1/+1
| | | | | | | | in order to handle the case when file is not present
* | Don't bother stripping whitespace when checking old requests: it's an ↵Seb Bacon2011-07-25-8/+1
|/ | | | expensive operation with a relatively small benefit.
* Store raw_emails in the filesystem, not in the database. They don't need to ↵Seb Bacon2011-07-22-2/+2
| | | | | | be in the database (we never write to them, for example), and they bloat it unecessarily, making backups etc difficult. NOTE: this migration could take a *very* long time.
* Fix bug that meant plugin custom states weren't being loadedSeb Bacon2011-07-13-2/+2
|
* Refactor custom states loading (use class methods where appropriate, ↵Seb Bacon2011-07-12-21/+13
| | | | simplify main code at the cost (small) of test legibility)
* ensure we don't load custom states from plugins when running testsSeb Bacon2011-07-12-1/+7
|
* Improve factoring out of custom states code (refactor a little, add tests)Seb Bacon2011-07-12-34/+51
|
* As a first attempt, in a dumb way, factor out jurisdiction-specific states ↵Seb Bacon2011-07-07-6/+14
| | | | to themes
* Changes required to get selishta (Kosovo) fork merges to pass tests. ↵Seb Bacon2011-07-06-1/+2
| | | | Includes new "REPLY_LATE_AFTER_DAYS" config option.
* initial merge of Kosovan branch; still need to get tests passing, factor out ↵Seb Bacon2011-07-06-17/+29
|\ | | | | | | Kosovan-specific code
| * I18n string for modelsFaton Selishta2011-06-30-17/+17
| |
| * Specific code for our requirements (kosovo law, our request etc..)Faton Selishta2011-06-02-2/+14
| |