Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Make prominence states a constant so we can access them elsewhere. | Louise Crow | 2013-09-16 | -5/+2 |
| | ||||
* | Slightly nicer action names. | Louise Crow | 2013-09-16 | -9/+9 |
| | ||||
* | Move incoming message admin to its own controller. | Louise Crow | 2013-09-16 | -130/+165 |
| | | | | | Make specs that depend on multiple controllers and models interacting integration specs. | |||
* | Move outgoing message admin actions to their own controller. | Louise Crow | 2013-09-16 | -48/+65 |
| | | | | Eventually this should use standard RESTful routing. | |||
* | Don't index hidden and requester_only incoming messages. | Louise Crow | 2013-09-16 | -0/+72 |
| | ||||
* | Remove unused hidden correspondence template. | Louise Crow | 2013-09-16 | -33/+0 |
| | ||||
* | Add prominence reason. | Louise Crow | 2013-09-16 | -9/+22 |
| | | | | | | | | | | Conflicts: app/views/request/_incoming_correspondence.html.erb Conflicts: spec/integration/view_request_spec.rb | |||
* | Adding prominence_reason to IncomingMessage. | Louise Crow | 2013-09-16 | -0/+8 |
| | ||||
* | Add messages for hidden and requester_only states. | Louise Crow | 2013-09-16 | -19/+128 |
| | | | | Different messages for normal user, requester and admin user. | |||
* | Refactor some common setup steps in integration tests into a DSL. | Louise Crow | 2013-09-16 | -60/+114 |
| | | | | Add a failing test for what should happen on request hiding. | |||
* | Refactor common logic about prominence and access. | Louise Crow | 2013-09-16 | -16/+15 |
| | | | | Move it into the Ability module. | |||
* | Add a method to ask whether a user can view an incoming message. | Louise Crow | 2013-09-16 | -0/+67 |
| | ||||
* | Rename method to make it a bit more generic | Louise Crow | 2013-09-16 | -5/+5 |
| | | | | A super user will be able to see all hidden things, not just requests. | |||
* | Refactor correspondence template into partials. | Louise Crow | 2013-09-16 | -81/+63 |
| | ||||
* | Add response_event helper | Louise Crow | 2013-09-16 | -0/+18 |
| | | | | | Add a convenience method for getting the 'response' event associated with an incoming message. | |||
* | Add prominence to incoming message. | Louise Crow | 2013-09-16 | -0/+34 |
| | ||||
* | Re-annotate models with database fields | Louise Crow | 2013-09-16 | -143/+561 |
| | ||||
* | Remove prominence. | Louise Crow | 2013-09-16 | -36/+10 |
| | | | | | | | Add a migration to remove the unused column 'prominence' from info_request_events, remove validation of prominence, remove unused InfoRequestEvent.user_can_view? method. Remove references to InfoRequestEvent.prominence. | |||
* | Preserve string "Tags (separated by a space):", removed in ↵ | Louise Crow | 2013-07-31 | -1/+1 |
| | | | | f89e2c3d5cee5e3bf2bd2227254fa0edb09aeb53, as there are lots of translations for this already, and we'll probably be re-introducing it with more features around tagging. | |||
* | Remove unused line of code | Louise Crow | 2013-07-30 | -1/+0 |
| | ||||
* | Use first argument to script when not running in daemon mode. Fixes #1023. | Louise Crow | 2013-07-30 | -1/+1 |
| | ||||
* | Add some notes about how to fix existing email addresses with spaces. | Louise Crow | 2013-07-30 | -2/+1 |
| | ||||
* | Add a note on how to start mailcatcher. | Louise Crow | 2013-07-30 | -1/+2 |
| | ||||
* | Handle the case of a name that hits the character limits and has been ↵ | Louise Crow | 2013-07-29 | -7/+27 |
| | | | | suffixed with a number. | |||
* | Update commonlib to get fix for ↵ | Louise Crow | 2013-07-29 | -0/+6 |
| | | | | https://github.com/mysociety/alaveteli/issues/282 and https://github.com/opennorth/alaveteli/issues/2. Note, this will not fix https://github.com/mysociety/alaveteli/issues/902, which would require a change in request title validation in https://github.com/mysociety/alaveteli/blob/rails-3-develop/app/models/info_request.rb#L34. | |||
* | Merge branch 'feature/localisation-fixes' into rails-3-develop | Louise Crow | 2013-07-29 | -168/+190 |
|\ | ||||
| * | Prepare the xapian database before running tests that rely on it existing. | Louise Crow | 2013-07-29 | -0/+5 |
| | | ||||
| * | Move some more config into AlaveteliLocalization so that it can be called ↵ | Louise Crow | 2013-07-24 | -13/+14 |
| | | | | | | | | outside initialization e.g. in tests. | |||
| * | Clarify comment. | Louise Crow | 2013-07-23 | -1/+1 |
| | | ||||
| * | Use FastGettext.locale, not I18n.locale as the latter will return hyphens, ↵ | Louise Crow | 2013-07-23 | -1/+1 |
| | | | | | | | | not underscores as we use in our URLs. | |||
| * | Patch Globalize to compensate for the way gettext_i18n_rails patches ↵ | Louise Crow | 2013-07-23 | -6/+49 |
| | | | | | | | | 118n.locale in the handling of locales with underscores. Fixes #999. | |||
| * | Add loading of raw emails - test depends on this. | Louise Crow | 2013-07-23 | -0/+1 |
| | | ||||
| * | Use AlaveteliConfiguration wrapper in test so we can be more specific about ↵ | Louise Crow | 2013-07-23 | -1/+1 |
| | | | | | | | | the method to be stubbed and avoid side effects. | |||
| * | Extract code for setting locales in FastGettext and I18n | Louise Crow | 2013-07-18 | -19/+22 |
| | | ||||
| * | Switch routing-filter (which takes locale out of the params and puts it in ↵ | Louise Crow | 2013-07-18 | -144/+113 |
| | | | | | | | | the URL) off by default in model, controller, and helper tests. This means we can supply the locale as a param. Turn it on specifically for a couple of controller tests that test routing, and change other url localization tests into integration tests. | |||
| * | gettext_i18n_rails patches I18n.locale= so that it changes underscores in ↵ | Louise Crow | 2013-07-18 | -1/+1 |
| | | | | | | | | locale names (as used in the gettext world) to the dashes that I18n prefers. So for locales that include an underscore the equality test was returning false. Use FastGettext.locale instead to be consistent. Fixes #998. | |||
* | | Merge branch 'hotfix/0.12.0.1' into rails-3-develop | Louise Crow | 2013-07-29 | -0/+16 |
|\ \ | | | | | | | | | | | | | | | | Conflicts: locale/he_IL/app.po locale/nb_NO/app.po | |||
| * | | Backport https://github.com/mikel/mail/pull/405 to prevent stack overflow ↵0.12.0.1hotfix/0.12.0.1 | Louise Crow | 2013-07-26 | -0/+16 |
| | | | | | | | | | | | | errors when parsing large mails with envelopes on memory limited systems. | |||
| * | | Merge branch 'release/0.12'0.12 | Louise Crow | 2013-06-26 | -857/+5390 |
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: locale/he_IL/app.po locale/hr_HR/app.po locale/nb_NO/app.po locale/uk/app.po | |||
* | | | | Prevent erroneous internal error messages with multibyte characters under ↵ | Louise Crow | 2013-07-25 | -3/+14 |
| | | | | | | | | | | | | | | | | ruby 1.8 by using mb_chars for length comparison - it counts multibyte characters. | |||
* | | | | New version of commonlib | Louise Crow | 2013-07-25 | -0/+0 |
| | | | | ||||
* | | | | Update commonlib. | Louise Crow | 2013-07-24 | -0/+0 |
| | | | | ||||
* | | | | Merge branch 'feature/similar-fixes' into rails-3-develop | Louise Crow | 2013-07-23 | -9/+14 |
|\ \ \ \ | ||||
| * | | | | Change concatenated header and title strings to full, properly escaped ↵ | Louise Crow | 2013-07-22 | -8/+13 |
| | | | | | | | | | | | | | | | | | | | | strings that are available for translation. Fixes #1003. | |||
| * | | | | Supply correct parameter for similar requests page. Fixes #1002. | Louise Crow | 2013-07-22 | -1/+1 |
| | |_|/ | |/| | | ||||
* | | | | Merge remote-tracking branch ↵ | Louise Crow | 2013-07-23 | -16/+220 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'openaustralia_github/tests_set_described_state' into rails-3-develop Conflicts: spec/models/info_request_spec.rb | |||
| * | | | | Now record a state_update event *whenever* a user classifies a request | Matthew Landauer | 2013-04-20 | -15/+16 |
| | | | | | ||||
| * | | | | How we would handle event states if we added a state_update event whenever a ↵ | Matthew Landauer | 2013-04-20 | -18/+42 |
| | | | | | | | | | | | | | | | | | | | | user classifies a request | |||
| * | | | | Access events in tests as an array | Matthew Landauer | 2013-04-20 | -42/+43 |
| | | | | | ||||
| * | | | | Simple solution to bugs shown up in tests in last 2 commits | Matthew Landauer | 2013-04-18 | -1/+1 |
| | | | | |