Release 0.24.0.0
Highlighted Features
- Stopped enforcing line lengths in plain text emails for a better experience
when using small screen clients such as mobile phones (Liz Conlan) - Added Google Analytics tracking code to log an event when a widget button
is clicked (Liz Conlan) - Fix crash when neither Geoip nor Gaze are configured (Alfonso Cora)
- Added a system of checkboxes to allow admins to delete multiple incoming
messages (ie spam) that are associated with a request (Liz Conlan) - Added a new cron job to run the holding pen cleanup task once a week.
(Liz Conlan) - Improved the holiday reminder email that gets sent to site admins once a year
(Liz Conlan) - Extracted
ResponseController#show_response
in to several actions in a new
FollowupsController
(Liz Conlan, Gareth Rees) - Added links to AskTheEU from Alaveteli sites
installed in an EU country (Gareth Rees) - Stopped generating code coverage reports locally. You can still view code
coverage reports on https://coveralls.io/github/mysociety/alaveteli
(Gareth Rees) - Added
OutgoingMessage::Template
module and extracted templates to classes
in this module (Gareth Rees) - Added some experimental methods for sending requests to an external reviewer
(Gareth Rees) - Added some experimental methods for retrieving exim mail server logs for a
specificOutgoingMessage
(Gareth Rees) - Improved the organisation of the items in the admin nav bar (Gareth Rees)
- Global and Public Body censor rules can now be managed through the admin UI
(Gareth Rees) - Added non-destructive methods to apply censor rules and text masks (Gareth
Rees). - Improve handling of long translations in logged in nav (Zarino Zappia)
- Better support for setting up a thin cluster (Liz Conlan)
- Added onscreen instructions to the Vagrant box (Liz Conlan)
- The UK-specific
SPECIAL_REPLY_VERY_LATE_AFTER_DAYS
has been removed. See
mysociety/whatdotheyknow-theme#287 for how we've
re-implemented this in WhatDoTheyKnow. - Stop outgoing messages being displayed with forced line breaks (Liz Conlan).
- Reduce risk of duplicate request urls (Liz Conlan).
- Better image for pages when shared on Facebook (Zarino Zappia)
- Official support added for ruby 2.1.5 and 2.3.0 (Louise Crow)
- Ported the graph generation shell scripts to Ruby (Liz Conlan)
- Official support added for Debian Jessie (Liz Conlan)
- Improved some translation strings and added some missing wrappers (Gareth
Rees) - Deprecated some UK-specific code (Gareth Rees)
- Improve speed of the 'old unclassified' requests query by adding a cached
field to InfoRequest to keep track of when the last public response was
made (Liz Conlan). - Improved error messages in
script/switch-theme.rb
(Zarino Zappia)
Upgrade Notes
-
The following methods have been replaced:
CensorRule#apply_to_text!
:CensorRule#apply_to_text
CensorRule#apply_to_binary!
:CensorRule#apply_to_binary
IncomingMessage#apply_masks!
:IncomingMessage#apply_masks
InfoRequest#apply_censor_rules_to_text!
:InfoRequest#apply_censor_rules_to_text
InfoRequest#apply_censor_rules_to_binary!
:InfoRequest#apply_censor_rules_to_binary
AlaveteliTextMasker#apply_masks!
:AlaveteliTextMasker#apply_masks
AlaveteliTextMasker#apply_pdf_masks!
:AlaveteliTextMasker#apply_pdf_masks
AlaveteliTextMasker#apply_binary_masks!
:AlaveteliTextMasker#apply_binary_masks
AlaveteliTextMasker#apply_text_masks!
:AlaveteliTextMasker#apply_text_masks
Note that you will need to assign the return value from the new methods, e.g:
- censor_rule.apply_to_text!(text)
+ censored_text = censor_rule.apply_to_text(text)
- To switch to running multiple thin servers with nginx:
- stop the running processes using
service alaveteli stop
- regenerate your SysVinit daemon file using the instructions at:
http://alaveteli.org/docs/installing/manual_install/#thin (but don't restart the site yet!) - Edit the upstream alaveteli directive in your
/etc/nginx/sites-available/alaveteli_https
(or/etc/nginx/sites-available/alaveteli
if you are not running your site over SSL) file
as per http://alaveteli.org/docs/installing/manual_install/#running-over-ssl so that nginx knows how to use
the extra server processes - restart your site with
service alaveteli start
- stop the running processes using
- There's been a minor change to
config/sysvinit-passenger.example
. You should
regenerate this file: http://alaveteli.org/docs/installing/manual_install/#passenger - Add a 256x256 image named
logo-opengraph.png
to
YOUR_THEME_ROOT/assets/images
, to be shown next to pages from your site when
shared on Facebook. - The crontab needs to be regenerated to include the new modifications:
http://alaveteli.org/docs/installing/manual_install/#generate-crontab - 5af81d9 includes a migration that runs over all info requests in the
database. This might take some time, so you should ideally schedule this
outside of busy periods.