Skip to content

Release 0.25.0.0

Compare
Choose a tag to compare
@lizconlan lizconlan released this 19 Jul 12:01
· 8919 commits to develop since this release

Highlighted Features

  • Compress all images to improve PageSpeed (Martin Wright)
  • Prevent spam users using the "about me" page to propagate spam (Gareth Rees)
  • Format incoming message HTML with <p> and <br> tags (Liz Conlan)
  • Add an interface to calculate transaction stats per user (Gareth Rees)
  • Fixed bug in OutgoingMessage.template_changed which allowed a new request to
    be submitted without changes to the default text if:
    • the site (theme) overrode the core default text via default_letter
    • the authority name contained any characters which were encoded as
      HTMLEntities
    • a global censor rule changed the template text
      Only the first case is known to affect a live site (Liz Conlan)
  • There is now the ability to flag a request to have incoming mail rejected at
    SMTP time - requires special configuration at the MTA level. For more information on
    usage, see the documentation on spam handling (Louise Crow)
  • The raw email associated with an incoming message can now be downloaded from
    the admin page for that message without having to view the raw email first
    (Louise Crow)
  • Improve sharing options on request sidebar (Gareth Rees, Martin Wright)
  • Added a library to give a spam score to a user (Gareth Rees)
  • Add ARIA landmark roles to improve accessibility (Martin Wright)
  • Add an endpoint to view outgoing message mail server logs and display them
    in the request thread (Gareth Rees)
  • Prevent the search and list routes from processing non-HTML requests
    (Liz Conlan)
  • Add accepted formats to commonly probed routes (Gareth Rees)
  • Added a helper and new lib file to standardise click tracking with Google
    Analytics events (Liz Conlan)
  • Migrated from using the legacy ga.js Google Analytics code to the current
    "universal" analytics.js version (Liz Conlan)
  • Bug fixes for the graph generation scripts (Liz Conlan)
  • Improved DMARC handling (Louise Crow)
  • Added a workaround for a compatibility issue with Xapian character encoding
    (Louise Crow)
  • Minor accessibility improvements (Martin Wright)
  • Add a task to output a CSV of the requests made to the top 20 authorities
    (Nick Jackson)
  • Allow local code coverage to be generated by setting COVERAGE=local in the
    environment when running rspec (Liz Conlan)
  • Refactored OutgoingMailer to get "To:", "From:" and "Subject:" from the
    OutgoingMessage instance (Gareth Rees)
  • Show the delivery status of outgoing messages (Gareth Rees, Zarino Zappia)
  • Added a rake task, themes:check_help_sections to identify missing help
    templates and sections in themes that are referred to in Alaveteli. Removed
    example help templates from core to alavetelitheme. (Louise Crow)
  • Added a new config option ENABLE_ANNOTATIONS to allow turning off the
    annotations feature (comments on requests) (Steve Day, Gareth Rees)
  • Added some early-stage scripts (script/current-theme,
    script/diff-theme-override) to help with upgrading theme overrides. Both
    have a -h option with usage information (Gareth Rees)
  • Make it clearer that user's names will be displayed in public (Gareth Rees)
  • The holding pen is now hidden by default in the front end interface (Louise Crow)

Upgrade Notes

  • UserController#set_profile_about_me has been deprecated. If you have
    overridden it in your theme, you will need to port your customisations to
    UserProfile::AboutMeController. You should also update
    set_profile_about_me routes to edit_profile_about_me (for GET requests)
    and profile_about_me (for PUT requests).
  • AboutMeValidator has been deprecated. The behaviour is now directly included
    in User.
  • Run bundle exec rake themes:check_help_sections to check that your theme
    contains all the necessary help files. The example files have now been moved
    from Alaveteli to the example theme alavetelitheme.
  • The upgrade of Google Analytics affects any custom GA scripts embedded in
    template pages. You will need to go through your theme customisations to see
    whether or not you are affected. Changes include:
    • There is no longer a pageTracker object on the page, you must make your
      calls against ga instead
    • Core function calls like _getTracker and _trackEvent have been
      replaced by newer equivalents
    • The main method of tracking page views has changed from
      pageTracker._trackPageView() to ga('send', 'pageview')
    • The main method of sending tracking events has changed from
      pageTracker._trackEvent(category, action) to
      ga('send', 'event', category, action)
      Full information on how to check and adjust for these changes is available
      in Google's migration guide
  • There are some database structure updates so remember to rake db:migrate
  • This release includes an update to the commonlib submodule - you
    should be warned about this when running rails-post-deploy.