- Ruby dependencies are now handled by Bundler
- Support for invalidating accelerator cache -- this makes it much less likely, when using Varnish, that users will be presented with stale content. Fixes issue #436
- Adding a
GA_CODE
togeneral.yml
will cause the relevant Google Analytics code to be added to your rendered pages - It is now possible to have more than one theme installed. The
behaviour of multiple themes is now layered in the reverse order
they're listed in the config file. See the variable
THEME_URLS
ingeneral.yml-example
for an example. - A new, experimental theme for the administrative interface. It's currently packaged as a standalone theme, but will be merged into the core once it's been tested and iterated in production a few times.
- Alert subscriptions are now referred to as "following" a request (or group of requests) throughout the UI. When a user "follows" a request, updates regarding that request are posted on a new "wall" page. Now they have a wall, users can opt not to receive alerts by email.
- New features to support fast post-moderation of bad requests: a button for users to report potentially unsuitable requests, and a form control in the administrative interface that hides a request and sends the user an email explaining why.
-
Existing installations will need to install the Bundler gem. See
INSTALL.md
for details. -
As a result of using bundler, the list of software packages that should be installed has changed. On Debian, you can run:
sudo apt-get install `cut -d " " -f 1 config/packages | grep -v "^#"`
This gist shows the changes to
config/packages
since the previous release. -
Because dependencies are now handled by Bundler, when you next run the
rails-post-deploy
script, it will download, compile and install various things. Part of this is compiling xapian, which may take a long time (subsequent deployments should be much faster) -
To support invalidating the Varnish cache, ensure that there's a value for
VARNISH_HOST
ingeneral.yml
(normally this would belocalhost
). You will also need to update your Varnish server to support PURGE requests. The example configuration provided atconfig/varnish-alaveteli.vcl
will work for Varnish 3 and above. If you leaveVARNISH_HOST
blank, it will have no effect. Finally, you should install thepurge-varnish
init script that's provided inugly
format atconfig/purge-varnish-debian.ugly
to ensure the purge queue is emptied regularly. -
Administrators are now assumed to log in using standard user accounts with superuser privileges (see 'Administrator Privileges' in
INSTALL.md
). The old-style admin account (using credentials fromgeneral.yml
) is now known as the "emergency user". Deployments that previously bypassed admin authentication should set the newSKIP_ADMIN_AUTH
config variable totrue
. -
If you want to try out the new administrator theme, copy the sample
THEME_URLS
config fromgeneral.yml-example
and run./script/rails-post-deploy
. If you don't like it, turn it off again by removing the line referring to the theme (adminbootstraptheme
) -- but email the mailing list first, explaining why!
This is a hotfix to fix occasional problems importing public body CSVs
This release was mainly to address issue #418, a regression introduced in 0.5, which was causing deployment problems:
- Setting
STAGING_SITE: 0
ingeneral.yml
and runningscript/rails-post-deploy
will ensure the correct behaviour in production environments - It should now be safe to run
rake spec
on a production server
There is one minor new feature in this release:
- Administrators can follow the auto-login URLs forwarded in emails from users who want support, and they will remain logged in as themselves.
We now have a most of a Czech translation (thanks Josef Pospisil!)
Finally, this release also addresses a number of small bugs, including the (potentially) important issue #408.
As usual, there is a full list of changes on github
- On a production server, ensure that
STAGING_SITE
is set to0
, and then runscript/rails-post-deploy
as usual.
- It should now be possible to develop the software on OSX
- Base design refactored: CSS simplified and reduced, base design colours removed, now provided in example Alaveteli theme override
- It is now possible to rebuild the xapian index for specific terms, rather than having to drop and rebuild the entire database every time (as previously). See rake xapian:rebuild_index for more info.
- When listing authorities, show all authorities in default locale, rather than only those in the currently selected locale.
- Ensure incoming emails are only ever parsed once (should give a performance boost)
- Added a simple rate-limiting feature: restrict the number of requests users can make per day, except if explicitly unrestricted in the admin interface
- Full list of changes on github
- IMPORTANT! We now depend on Xapian 1.2, which means you may need to install Xapian from backports. See issue #159 for more info.
- Themes created for 0.4 and below should be changed to match the new format (although the old way should continue to work):
- You should create a resources folder at
<yourtheme>/public/
and symlink to it from the main rails app. See theinstall.rb
inalaveteli-theme
example theme for details. - Your styles should be moved from
general/custom_css.rhtml
to a standalone stylesheet in<yourtheme>/public/stylesheets/
- The partial at
general/_before_head_end.rhtml
should be changed in the theme to include this stylesheet
- You should create a resources folder at
- issue #281 fixes some bugs relating to display of internationalised emails. To fix any wrongly displayed emails, you'll need to run the script at
script/clear-caches
so that the caches can be regenerated - During this release, a bug was discovered in pdftk 1.44 which caused it to loop forever. Until it's incorporated into an official release, you'll need to patch it yourself or use the Debian package compiled by mySociety (see link in issue 305)
- Ensure you have values for new config variables (see
config/general.yml-example
):- EXCEPTION_NOTIFICATIONS_FROM
- EXCEPTION_NOTIFICATIONS_TO
- The new optional config variable MAX_REQUESTS_PER_USER_PER_DAY can be set to limit the number of requests each user can make per day.
- The recommended Varnish config has changed, so that we ignore more cookies. You should review your Varnish config with respect to the example at
config/varnish-alaveteli.vcl
. - Consider setting elinks global config as described in the "Troubleshooting" section of INSTALL.md
- Complete overhaul of design, including improved search, modern look and feel, more twitter links, etc
- A banner alerts visitors from other countries to existing sites in their country, or exhorts them to make their own
- Bounce emails that result from user alerts are automatically processed and hard bouncing accounts do not continue to receive alerts. See the new instructions in INSTALL-exim4.md for details of how to set this up.
- Logged in users now have the ability to download a zipfile of the entire correspondence for a request
- Improved UI for responding to requests. The user now has a single option to "reply" at the bottom of a request, and can adjust who they are replying to on the next page
- Full list of changes on github
- Remember to
rake db:migrate
andgit submodule update
- Ensure you have values for new config variables (see
config/general.yml-example
):- FORWARD_NONBOUNCE_RESPONSES_TO
- TRACK_SENDER_EMAIL
- TRACK_SENDER_NAME
- HTML_TO_PDF_COMMAND
- NEW_RESPONSE_REMINDER_AFTER_DAYS
- FORCE_REGISTRATION_ON_NEW_REQUEST
- The config variable
FRONTPAGE_SEARCH_EXAMPLES
is no longer used, so you should remove it to avoid confusion. - Execute
script/rebuild-xapian-index
to create new xapian index terms used in latest version of search (can take a long time) - Install wkhtmltopdf to enable PDFs in downloadable zipfiles. A static binary is recommended on Linux in order to run the command headless: http://code.google.com/p/wkhtmltopdf/downloads/list
- Ensure your webserver can serve up generated files by symlinking
cache/zips/download
topublic/download
(this is also done by therails-post-deploy
script). If you're using Passenger + Apache, you'll need to add aPassengerResolveSymlinksInDocumentRoot on
directive to the configuration.- Note that the zipfile download functionality will currently hang if you're running Alaveteli single-threaded, as it creates a new request to the server to get the print stylesheet version!
- Configure your MTA to handle bounce emails from alerts (see INSTALL-exim4.md)
- New search filters / UI on request page, authorities page, and search page. Upgrades require a rebuild of the Xapian index (
./script/xapian-index-rebuild
). Design isn't beautiful; to be fixed in next release. - Introduce reCaptcha for people apparently coming from foreign countries (to combat spam) (requires values for new config variables
ISO_COUNTRY_CODE
andGAZE_URL
, and existing config variablesRECAPTCHA_PUBLIC_KEY
andRECAPTCHA_PRIVATE_KEY
) - Better admin interface for editing multiple translations of a public body at once