Chris Lowis by Chris Lowis

Week 492

This week was a little bit slower due to illness and leave but we made good progress on our client project.

Modern Slavery Registry

We continued our short sprint for the Business and Human Rights Resource Centre on their Modern Slavery Registry. Chris continued to get the application ready to migrate to AWS. The registry fetches snapshots of uploaded Modern Slavery statements so that they can be referred to even if the publishing organisation moves or removes them. PDF files are stored as-is while HTML statements are stored as text and as rendered snapshots.

The statements were being stored as binary blobs in a column in the Postgres database. Unfortunately as the registry has grown this has meant that the database has grown to around 3GB - costing a lot to host on Heroku and making it difficult to migrate to AWS. Chris made a first pass at the problem by reducing the sizes of some of the larger snapshots. He then made some changes to allow the app to be run under Vagrant so that he could start experimenting with how to move the binary blobs in the database to S3.

He also upgraded the application to Rails 5.2 so that we could take advantage of the new ActiveStorage library to handle file uploads. Meanwhile Ben continued to work on the CloudFormation code we need to provision the infrastructure on AWS.

Other good things

  • We met with a potential client on Tuesday and it looks positive that we’ll be able to do some work for them in July.
  • We spent some more time on our side project adding some features to a simple web-based application we’ve written in Elm.
  • James went to the Isle of Wight festival.
  • I had a chat with our friends at about a potential Digital Outcomes and Specialists bid.

If you have any feedback on this article, please get in touch!

Historical comments can be found here.